push_type_wysiwyg 0.6.0.beta.2 → 0.6.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc0d350f675c170adac91e5feff5a2cc4d37e19e
4
- data.tar.gz: 94c14ef133eadfeaf73253e814605e0d6d180d7a
3
+ metadata.gz: 61e7563eb19301a540676596a9b08aa88ef2aeee
4
+ data.tar.gz: caa56a48dff88a7a5710d87619d96d78cb243d86
5
5
  SHA512:
6
- metadata.gz: 99aeb2bd75e3d9e8b2dca9f192f5deb05dfef0a8b603b7c902b85e8d7c7f6e99a6c879cc4598453f6a04f11581e84e06af072365cc555cc387566c5bf0a78df0
7
- data.tar.gz: c96d9042247169288ef3732357f1f22aaa05d6f6fde782b3e87ae563818940b8af2eb0c77f0665d41ee9013ae82248e58168234c3dcdee788519bbf4dd95db52
6
+ metadata.gz: 9162854783fffc081116293b5d85f40900d7e6972dfd6d4e327ec3aca0fa09a1b11c8298fed5c7ef0d13a1b0d45e10c6e8a2996730cc6119c89b13636485eaf5
7
+ data.tar.gz: de89f1f966abe7365ad580e77222c695f0d33562aca1821738327835fb1ef1222083da1f71df5a44bfc57c7eda8cde7f16b367ceb9ed6d54f2901bb8874f5b6d
@@ -0,0 +1,6 @@
1
+ class Location < PushType::Structure
2
+
3
+ # Model the content by adding custom fields to the structure.
4
+ # field :body, :text, validates: { presence: true }
5
+
6
+ end
@@ -50,6 +50,6 @@ PushType.setup do |config|
50
50
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
51
51
  # }
52
52
 
53
- # config.dragonfly_secret = '450b4cf22ab11cb875a0b4738596b64cdb2ed078c154a95de169c6af0b586bea'
53
+ # config.dragonfly_secret = 'b96e70349a312515315c8397f533c5c8f64baa4c6ce1fff9ad7f022b92250e4a'
54
54
 
55
55
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 72a7aec9aac15d98e156fa31a782320e92ad2a4e7209bbb2ad711ba28d5b0411459d5b6cb3602021d2f91bb0e2b3cbba7eed04c07bf1211912a7b5bae92cb2f6
14
+ secret_key_base: 60ca5ae2a3abc542cf44f657dc3f9a5311ae4e46ae93f4d1017fc109ebfc780cc31d84ad38763f9dbc898cbdb4cf2fc3d72a5778caa1603651d41b156d7dd573
15
15
 
16
16
  test:
17
- secret_key_base: 4bfad84ec6c83448d501e0e1cdb7b00ba6eb2da89f40c078458912558021728ecc092f9d4b6482f09192fd7f31765a330ed83cd58130ac9de6ea93473b29b294
17
+ secret_key_base: 31f78d92cca4abf9ee1e3e6a262c82c3758b7168b92228ff9faea7779d48892b09a57fcf68e3c4990103cc0771f60d16ca714ce32fbffc97065d8bf2251cef0a
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151102165925) do
14
+ ActiveRecord::Schema.define(version: 20151102202765) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -1,43 +1,43 @@
1
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (7.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20151102165919)
4
+ Migrating to CreatePushTypeUsers (20151102202759)
5
5
   (0.1ms) BEGIN
6
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.3ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165919"]]
9
-  (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20151102165920)
6
+ SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202759"]]
9
+  (0.6ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20151102202760)
11
11
   (0.1ms) BEGIN
12
-  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165920"]]
14
-  (0.3ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20151102165921)
12
+  (2.3ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202760"]]
14
+  (0.4ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20151102202761)
16
16
   (0.1ms) BEGIN
17
-  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
17
+  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165921"]]
21
-  (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20151102165922)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202761"]]
21
+  (0.4ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20151102202762)
23
23
   (0.1ms) BEGIN
24
-  (1.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165922"]]
24
+  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202762"]]
26
26
   (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20151102165923)
27
+ Migrating to CreatePushTypeTaxonomies (20151102202763)
28
28
   (0.1ms) BEGIN
29
-  (1.9ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
29
+  (2.0ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
30
   (0.2ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165923"]]
32
-  (0.4ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20151102165924)
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202763"]]
32
+  (0.5ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20151102202764)
34
34
   (0.1ms) BEGIN
35
-  (0.5ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
35
+  (0.7ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
36
   (0.7ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
-  (0.6ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165924"]]
39
-  (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20151102165925)
37
+  (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202764"]]
39
+  (0.3ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20151102202765)
41
41
   (0.1ms) BEGIN
42
42
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
43
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
@@ -46,11 +46,11 @@ Migrating to AddFieldStoreDefaultValues (20151102165925)
46
46
   (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
47
   (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
-  (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102165925"]]
51
-  (0.5ms) COMMIT
49
+  (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202765"]]
51
+  (0.4ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
53
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
54
54
  FROM pg_constraint c
55
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
56
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -62,7 +62,7 @@ WHERE c.contype = 'f'
62
62
  AND t3.nspname = ANY (current_schemas(false))
63
63
  ORDER BY c.conname
64
64
 
65
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
65
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
66
66
  FROM pg_constraint c
67
67
  JOIN pg_class t1 ON c.conrelid = t1.oid
68
68
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -74,7 +74,7 @@ WHERE c.contype = 'f'
74
74
  AND t3.nspname = ANY (current_schemas(false))
75
75
  ORDER BY c.conname
76
76
  
77
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
77
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
78
78
  FROM pg_constraint c
79
79
  JOIN pg_class t1 ON c.conrelid = t1.oid
80
80
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -98,7 +98,7 @@ WHERE c.contype = 'f'
98
98
  AND t3.nspname = ANY (current_schemas(false))
99
99
  ORDER BY c.conname
100
100
  
101
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
101
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
102
102
  FROM pg_constraint c
103
103
  JOIN pg_class t1 ON c.conrelid = t1.oid
104
104
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -122,210 +122,325 @@ WHERE c.contype = 'f'
122
122
  AND t3.nspname = ANY (current_schemas(false))
123
123
  ORDER BY c.conname
124
124
  
125
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
-  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
-  (0.9ms)  SELECT schemaname || '.' || tablename
125
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
+  (1.0ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE
130
130
  tablename !~ '_prt_' AND
131
131
  tablename <> 'schema_migrations' AND
132
132
  schemaname = ANY (current_schemas(false))
133
133
  
134
-  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
135
-  (9.8ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
134
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
135
+  (11.8ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
136
136
   (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
137
-  (0.2ms) BEGIN
138
- ---------------------------------------------------------------------------
139
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
140
- ---------------------------------------------------------------------------
137
+  (0.1ms) BEGIN
138
+ --------------------------------------------------------------------------
139
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
140
+ --------------------------------------------------------------------------
141
141
   (0.1ms) SAVEPOINT active_record_1
142
142
   (0.1ms) RELEASE SAVEPOINT active_record_1
143
-  (0.1ms) SAVEPOINT active_record_1
143
+  (0.0ms) SAVEPOINT active_record_1
144
144
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-11-02 16:59:24.398183"], ["updated_at", "2015-11-02 16:59:24.398183"], ["file_ext", "png"], ["mime_type", "image/png"]]
145
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-11-02 20:28:04.903332"], ["updated_at", "2015-11-02 20:28:04.903332"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
148
+  (0.1ms) ROLLBACK
149
+  (0.1ms) BEGIN
150
+ --------------------------------------------------------------------------
151
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
152
+ --------------------------------------------------------------------------
153
+  (0.1ms) SAVEPOINT active_record_1
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.0ms) SAVEPOINT active_record_1
147
156
   (0.1ms) SAVEPOINT active_record_2
148
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-11-02 16:59:24.403778"], ["updated_at", "2015-11-02 16:59:24.403778"], ["file_ext", "png"], ["mime_type", "image/png"]]
157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-11-02 20:28:04.911705"], ["updated_at", "2015-11-02 20:28:04.911705"], ["file_ext", "png"], ["mime_type", "image/png"]]
149
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
160
+  (0.1ms) ROLLBACK
161
+  (0.1ms) BEGIN
162
+ --------------------------------------------------------------------------
163
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
164
+ --------------------------------------------------------------------------
165
+  (0.1ms) SAVEPOINT active_record_1
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (0.0ms) SAVEPOINT active_record_1
150
168
   (0.1ms) SAVEPOINT active_record_2
151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-11-02 16:59:24.406109"], ["updated_at", "2015-11-02 16:59:24.406109"], ["file_ext", "png"], ["mime_type", "image/png"]]
169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-11-02 20:28:04.915639"], ["updated_at", "2015-11-02 20:28:04.915639"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
153
-  (0.1ms) SAVEPOINT active_record_2
154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-11-02 16:59:24.408244"], ["updated_at", "2015-11-02 16:59:24.408244"], ["file_ext", "png"], ["mime_type", "image/png"]]
155
-  (0.1ms) RELEASE SAVEPOINT active_record_2
156
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
157
171
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
158
172
   (0.1ms) ROLLBACK
159
173
   (0.1ms) BEGIN
160
- ---------------------------------------------------------------------------
161
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
162
- ---------------------------------------------------------------------------
163
-  (0.1ms) SAVEPOINT active_record_1
174
+ --------------------------------------------------------------------------
175
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
176
+ --------------------------------------------------------------------------
177
+  (0.0ms) SAVEPOINT active_record_1
164
178
   (0.0ms) RELEASE SAVEPOINT active_record_1
165
179
   (0.0ms) SAVEPOINT active_record_1
166
-  (0.1ms) SAVEPOINT active_record_2
167
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-11-02 16:59:24.414269"], ["updated_at", "2015-11-02 16:59:24.414269"], ["file_ext", "png"], ["mime_type", "image/png"]]
180
+  (0.4ms) SAVEPOINT active_record_2
181
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-11-02 20:28:04.920520"], ["updated_at", "2015-11-02 20:28:04.920520"], ["file_ext", "png"], ["mime_type", "image/png"]]
168
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
183
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
184
+  (0.1ms) ROLLBACK
185
+  (0.0ms) BEGIN
186
+ --------------------------------------------------------------------------
187
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
188
+ --------------------------------------------------------------------------
189
+  (0.0ms) SAVEPOINT active_record_1
190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
191
+  (0.0ms) SAVEPOINT active_record_1
169
192
   (0.1ms) SAVEPOINT active_record_2
170
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-11-02 16:59:24.416445"], ["updated_at", "2015-11-02 16:59:24.416445"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-11-02 20:28:04.925446"], ["updated_at", "2015-11-02 20:28:04.925446"], ["file_ext", "png"], ["mime_type", "image/png"]]
171
194
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
196
+  (0.1ms) ROLLBACK
197
+  (0.1ms) BEGIN
198
+ --------------------------------------------------------------------------
199
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
200
+ --------------------------------------------------------------------------
201
+  (0.0ms) SAVEPOINT active_record_1
202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
203
+  (0.0ms) SAVEPOINT active_record_1
172
204
   (0.1ms) SAVEPOINT active_record_2
173
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-11-02 16:59:24.418629"], ["updated_at", "2015-11-02 16:59:24.418629"], ["file_ext", "png"], ["mime_type", "image/png"]]
205
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-11-02 20:28:04.930063"], ["updated_at", "2015-11-02 20:28:04.930063"], ["file_ext", "png"], ["mime_type", "image/png"]]
174
206
   (0.1ms) RELEASE SAVEPOINT active_record_2
175
-  (0.1ms) SAVEPOINT active_record_2
176
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-11-02 16:59:24.420746"], ["updated_at", "2015-11-02 16:59:24.420746"], ["file_ext", "png"], ["mime_type", "image/png"]]
177
-  (0.1ms) RELEASE SAVEPOINT active_record_2
178
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
179
207
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
180
208
   (0.1ms) ROLLBACK
181
209
   (0.1ms) BEGIN
182
- ---------------------------------------------------------------------------
183
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
184
- ---------------------------------------------------------------------------
210
+ --------------------------------------------------------------------------
211
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
212
+ --------------------------------------------------------------------------
185
213
   (0.0ms) SAVEPOINT active_record_1
186
214
   (0.0ms) RELEASE SAVEPOINT active_record_1
187
215
   (0.0ms) SAVEPOINT active_record_1
188
216
   (0.1ms) SAVEPOINT active_record_2
189
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-11-02 16:59:24.425033"], ["updated_at", "2015-11-02 16:59:24.425033"], ["file_ext", "png"], ["mime_type", "image/png"]]
217
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-11-02 20:28:04.934314"], ["updated_at", "2015-11-02 20:28:04.934314"], ["file_ext", "png"], ["mime_type", "image/png"]]
190
218
   (0.1ms) RELEASE SAVEPOINT active_record_2
219
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
+  (0.1ms) ROLLBACK
221
+  (0.1ms) BEGIN
222
+ ---------------------------------------------------------------------------
223
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
224
+ ---------------------------------------------------------------------------
225
+  (0.1ms) SAVEPOINT active_record_1
226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
227
+  (0.1ms) SAVEPOINT active_record_1
191
228
   (0.1ms) SAVEPOINT active_record_2
192
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-11-02 16:59:24.427232"], ["updated_at", "2015-11-02 16:59:24.427232"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-11-02 20:28:04.939401"], ["updated_at", "2015-11-02 20:28:04.939401"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
230
   (0.1ms) RELEASE SAVEPOINT active_record_2
194
231
   (0.1ms) SAVEPOINT active_record_2
195
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-11-02 16:59:24.429464"], ["updated_at", "2015-11-02 16:59:24.429464"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-11-02 20:28:04.941637"], ["updated_at", "2015-11-02 20:28:04.941637"], ["file_ext", "png"], ["mime_type", "image/png"]]
196
233
   (0.1ms) RELEASE SAVEPOINT active_record_2
197
234
   (0.1ms) SAVEPOINT active_record_2
198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-11-02 16:59:24.431699"], ["updated_at", "2015-11-02 16:59:24.431699"], ["file_ext", "png"], ["mime_type", "image/png"]]
235
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-11-02 20:28:04.943832"], ["updated_at", "2015-11-02 20:28:04.943832"], ["file_ext", "png"], ["mime_type", "image/png"]]
199
236
   (0.1ms) RELEASE SAVEPOINT active_record_2
237
+  (0.1ms) SAVEPOINT active_record_2
238
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-11-02 20:28:04.946050"], ["updated_at", "2015-11-02 20:28:04.946050"], ["file_ext", "png"], ["mime_type", "image/png"]]
239
+  (0.1ms) RELEASE SAVEPOINT active_record_2
240
+ PushType::Asset Load (0.5ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
200
241
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
201
242
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
202
243
   (0.1ms) ROLLBACK
203
244
   (0.1ms) BEGIN
204
245
  ---------------------------------------------------------------------------
205
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
246
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
206
247
  ---------------------------------------------------------------------------
207
248
   (0.1ms) SAVEPOINT active_record_1
208
249
   (0.0ms) RELEASE SAVEPOINT active_record_1
209
-  (0.1ms) SAVEPOINT active_record_1
250
+  (0.0ms) SAVEPOINT active_record_1
210
251
   (0.1ms) SAVEPOINT active_record_2
211
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-11-02 16:59:24.436104"], ["updated_at", "2015-11-02 16:59:24.436104"], ["file_ext", "png"], ["mime_type", "image/png"]]
252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-11-02 20:28:04.954526"], ["updated_at", "2015-11-02 20:28:04.954526"], ["file_ext", "png"], ["mime_type", "image/png"]]
212
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
213
254
   (0.1ms) SAVEPOINT active_record_2
214
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-11-02 16:59:24.438131"], ["updated_at", "2015-11-02 16:59:24.438131"], ["file_ext", "png"], ["mime_type", "image/png"]]
255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-11-02 20:28:04.957007"], ["updated_at", "2015-11-02 20:28:04.957007"], ["file_ext", "png"], ["mime_type", "image/png"]]
215
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
216
257
   (0.1ms) SAVEPOINT active_record_2
217
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-11-02 16:59:24.440108"], ["updated_at", "2015-11-02 16:59:24.440108"], ["file_ext", "png"], ["mime_type", "image/png"]]
258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-11-02 20:28:04.959216"], ["updated_at", "2015-11-02 20:28:04.959216"], ["file_ext", "png"], ["mime_type", "image/png"]]
218
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
219
260
   (0.1ms) SAVEPOINT active_record_2
220
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-11-02 16:59:24.442248"], ["updated_at", "2015-11-02 16:59:24.442248"], ["file_ext", "png"], ["mime_type", "image/png"]]
261
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-11-02 20:28:04.961630"], ["updated_at", "2015-11-02 20:28:04.961630"], ["file_ext", "png"], ["mime_type", "image/png"]]
221
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
222
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
223
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
224
-  (0.1ms) ROLLBACK
225
-  (0.1ms) BEGIN
263
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
264
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
265
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
266
+  (0.1ms) ROLLBACK
267
+  (0.1ms) BEGIN
226
268
  ---------------------------------------------------------------------------
227
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
269
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
228
270
  ---------------------------------------------------------------------------
229
-  (0.1ms) SAVEPOINT active_record_1
230
-  (0.0ms) RELEASE SAVEPOINT active_record_1
231
-  (0.0ms) SAVEPOINT active_record_1
271
+  (0.0ms) SAVEPOINT active_record_1
272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
273
+  (0.0ms) SAVEPOINT active_record_1
274
+  (0.1ms) SAVEPOINT active_record_2
275
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-11-02 20:28:04.967364"], ["updated_at", "2015-11-02 20:28:04.967364"], ["file_ext", "png"], ["mime_type", "image/png"]]
276
+  (0.1ms) RELEASE SAVEPOINT active_record_2
277
+  (0.1ms) SAVEPOINT active_record_2
278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-11-02 20:28:04.969726"], ["updated_at", "2015-11-02 20:28:04.969726"], ["file_ext", "png"], ["mime_type", "image/png"]]
279
+  (0.1ms) RELEASE SAVEPOINT active_record_2
280
+  (0.1ms) SAVEPOINT active_record_2
281
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-11-02 20:28:04.971886"], ["updated_at", "2015-11-02 20:28:04.971886"], ["file_ext", "png"], ["mime_type", "image/png"]]
282
+  (0.1ms) RELEASE SAVEPOINT active_record_2
232
283
   (0.1ms) SAVEPOINT active_record_2
233
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-11-02 16:59:24.446560"], ["updated_at", "2015-11-02 16:59:24.446560"], ["file_ext", "png"], ["mime_type", "image/png"]]
284
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-11-02 20:28:04.974084"], ["updated_at", "2015-11-02 20:28:04.974084"], ["file_ext", "png"], ["mime_type", "image/png"]]
234
285
   (0.1ms) RELEASE SAVEPOINT active_record_2
286
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
287
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
288
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
289
+  (0.1ms) ROLLBACK
290
+  (0.0ms) BEGIN
291
+ ---------------------------------------------------------------------------
292
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
293
+ ---------------------------------------------------------------------------
294
+  (0.0ms) SAVEPOINT active_record_1
295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
296
+  (0.0ms) SAVEPOINT active_record_1
235
297
   (0.1ms) SAVEPOINT active_record_2
236
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-11-02 16:59:24.449012"], ["updated_at", "2015-11-02 16:59:24.449012"], ["file_ext", "png"], ["mime_type", "image/png"]]
298
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-11-02 20:28:04.979752"], ["updated_at", "2015-11-02 20:28:04.979752"], ["file_ext", "png"], ["mime_type", "image/png"]]
237
299
   (0.1ms) RELEASE SAVEPOINT active_record_2
238
300
   (0.1ms) SAVEPOINT active_record_2
239
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-11-02 16:59:24.451117"], ["updated_at", "2015-11-02 16:59:24.451117"], ["file_ext", "png"], ["mime_type", "image/png"]]
301
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-11-02 20:28:04.982075"], ["updated_at", "2015-11-02 20:28:04.982075"], ["file_ext", "png"], ["mime_type", "image/png"]]
240
302
   (0.1ms) RELEASE SAVEPOINT active_record_2
241
303
   (0.1ms) SAVEPOINT active_record_2
242
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-11-02 16:59:24.453471"], ["updated_at", "2015-11-02 16:59:24.453471"], ["file_ext", "png"], ["mime_type", "image/png"]]
304
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-11-02 20:28:04.984238"], ["updated_at", "2015-11-02 20:28:04.984238"], ["file_ext", "png"], ["mime_type", "image/png"]]
243
305
   (0.1ms) RELEASE SAVEPOINT active_record_2
244
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
306
+  (0.1ms) SAVEPOINT active_record_2
307
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-11-02 20:28:04.986446"], ["updated_at", "2015-11-02 20:28:04.986446"], ["file_ext", "png"], ["mime_type", "image/png"]]
308
+  (0.1ms) RELEASE SAVEPOINT active_record_2
309
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
310
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
245
311
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
246
312
   (0.1ms) ROLLBACK
247
313
   (0.1ms) BEGIN
248
- --------------------------------------------------------------------------
249
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
250
- --------------------------------------------------------------------------
251
-  (0.1ms) SAVEPOINT active_record_1
252
-  (0.1ms) RELEASE SAVEPOINT active_record_1
314
+ ---------------------------------------------------------------------------
315
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
316
+ ---------------------------------------------------------------------------
253
317
   (0.1ms) SAVEPOINT active_record_1
318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
319
+  (0.0ms) SAVEPOINT active_record_1
254
320
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-11-02 16:59:24.459080"], ["updated_at", "2015-11-02 16:59:24.459080"], ["file_ext", "png"], ["mime_type", "image/png"]]
321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-11-02 20:28:04.992077"], ["updated_at", "2015-11-02 20:28:04.992077"], ["file_ext", "png"], ["mime_type", "image/png"]]
322
+  (0.1ms) RELEASE SAVEPOINT active_record_2
323
+  (0.1ms) SAVEPOINT active_record_2
324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-11-02 20:28:04.994325"], ["updated_at", "2015-11-02 20:28:04.994325"], ["file_ext", "png"], ["mime_type", "image/png"]]
325
+  (0.1ms) RELEASE SAVEPOINT active_record_2
326
+  (0.1ms) SAVEPOINT active_record_2
327
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-11-02 20:28:04.996661"], ["updated_at", "2015-11-02 20:28:04.996661"], ["file_ext", "png"], ["mime_type", "image/png"]]
256
328
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
258
-  (0.1ms) ROLLBACK
259
-  (0.1ms) BEGIN
260
- --------------------------------------------------------------------------
261
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
262
- --------------------------------------------------------------------------
263
-  (0.1ms) SAVEPOINT active_record_1
264
-  (0.0ms) RELEASE SAVEPOINT active_record_1
265
-  (0.0ms) SAVEPOINT active_record_1
266
329
   (0.1ms) SAVEPOINT active_record_2
267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-11-02 16:59:24.464834"], ["updated_at", "2015-11-02 16:59:24.464834"], ["file_ext", "png"], ["mime_type", "image/png"]]
330
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-11-02 20:28:04.998955"], ["updated_at", "2015-11-02 20:28:04.998955"], ["file_ext", "png"], ["mime_type", "image/png"]]
268
331
   (0.1ms) RELEASE SAVEPOINT active_record_2
332
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
333
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
269
334
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
270
335
   (0.1ms) ROLLBACK
271
336
   (0.1ms) BEGIN
272
- --------------------------------------------------------------------------
273
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
274
- --------------------------------------------------------------------------
337
+ ---------------------------------------------------------------------------
338
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
339
+ ---------------------------------------------------------------------------
275
340
   (0.1ms) SAVEPOINT active_record_1
276
341
   (0.1ms) RELEASE SAVEPOINT active_record_1
277
-  (0.0ms) SAVEPOINT active_record_1
342
+  (0.1ms) SAVEPOINT active_record_1
343
+  (0.1ms) SAVEPOINT active_record_2
344
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-11-02 20:28:05.006185"], ["updated_at", "2015-11-02 20:28:05.006185"], ["file_ext", "png"], ["mime_type", "image/png"]]
345
+  (0.1ms) RELEASE SAVEPOINT active_record_2
346
+  (0.1ms) SAVEPOINT active_record_2
347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-11-02 20:28:05.008547"], ["updated_at", "2015-11-02 20:28:05.008547"], ["file_ext", "png"], ["mime_type", "image/png"]]
348
+  (0.1ms) RELEASE SAVEPOINT active_record_2
278
349
   (0.1ms) SAVEPOINT active_record_2
279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-11-02 16:59:24.468847"], ["updated_at", "2015-11-02 16:59:24.468847"], ["file_ext", "png"], ["mime_type", "image/png"]]
350
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2015-11-02 20:28:05.011035"], ["updated_at", "2015-11-02 20:28:05.011035"], ["file_ext", "png"], ["mime_type", "image/png"]]
280
351
   (0.1ms) RELEASE SAVEPOINT active_record_2
352
+  (0.1ms) SAVEPOINT active_record_2
353
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-11-02 20:28:05.013157"], ["updated_at", "2015-11-02 20:28:05.013157"], ["file_ext", "png"], ["mime_type", "image/png"]]
354
+  (0.1ms) RELEASE SAVEPOINT active_record_2
355
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
281
356
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
282
357
   (0.1ms) ROLLBACK
283
358
   (0.1ms) BEGIN
284
- --------------------------------------------------------------------------
285
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
286
- --------------------------------------------------------------------------
287
-  (0.1ms) SAVEPOINT active_record_1
288
-  (0.0ms) RELEASE SAVEPOINT active_record_1
359
+ ---------------------------------------------------------------------------
360
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
361
+ ---------------------------------------------------------------------------
289
362
   (0.0ms) SAVEPOINT active_record_1
363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
364
+  (0.1ms) SAVEPOINT active_record_1
365
+  (0.1ms) SAVEPOINT active_record_2
366
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "32"], ["created_at", "2015-11-02 20:28:05.017732"], ["updated_at", "2015-11-02 20:28:05.017732"], ["file_ext", "png"], ["mime_type", "image/png"]]
367
+  (0.1ms) RELEASE SAVEPOINT active_record_2
368
+  (0.1ms) SAVEPOINT active_record_2
369
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "33"], ["created_at", "2015-11-02 20:28:05.019972"], ["updated_at", "2015-11-02 20:28:05.019972"], ["file_ext", "png"], ["mime_type", "image/png"]]
370
+  (0.1ms) RELEASE SAVEPOINT active_record_2
290
371
   (0.1ms) SAVEPOINT active_record_2
291
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-11-02 16:59:24.472959"], ["updated_at", "2015-11-02 16:59:24.472959"], ["file_ext", "png"], ["mime_type", "image/png"]]
372
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "34"], ["created_at", "2015-11-02 20:28:05.022361"], ["updated_at", "2015-11-02 20:28:05.022361"], ["file_ext", "png"], ["mime_type", "image/png"]]
292
373
   (0.1ms) RELEASE SAVEPOINT active_record_2
374
+  (0.1ms) SAVEPOINT active_record_2
375
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "35"], ["created_at", "2015-11-02 20:28:05.024418"], ["updated_at", "2015-11-02 20:28:05.024418"], ["file_ext", "png"], ["mime_type", "image/png"]]
376
+  (0.1ms) RELEASE SAVEPOINT active_record_2
377
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
293
378
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
294
379
   (0.1ms) ROLLBACK
295
380
   (0.1ms) BEGIN
296
- --------------------------------------------------------------------------
297
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
298
- --------------------------------------------------------------------------
299
-  (0.0ms) SAVEPOINT active_record_1
300
-  (0.0ms) RELEASE SAVEPOINT active_record_1
381
+ ---------------------------------------------------------------------------
382
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
383
+ ---------------------------------------------------------------------------
384
+  (0.1ms) SAVEPOINT active_record_1
385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
301
386
   (0.0ms) SAVEPOINT active_record_1
302
387
   (0.1ms) SAVEPOINT active_record_2
303
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-11-02 16:59:24.476730"], ["updated_at", "2015-11-02 16:59:24.476730"], ["file_ext", "png"], ["mime_type", "image/png"]]
388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "36"], ["created_at", "2015-11-02 20:28:05.028929"], ["updated_at", "2015-11-02 20:28:05.028929"], ["file_ext", "png"], ["mime_type", "image/png"]]
389
+  (0.1ms) RELEASE SAVEPOINT active_record_2
390
+  (0.1ms) SAVEPOINT active_record_2
391
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-11-02 20:28:05.031104"], ["updated_at", "2015-11-02 20:28:05.031104"], ["file_ext", "png"], ["mime_type", "image/png"]]
392
+  (0.1ms) RELEASE SAVEPOINT active_record_2
393
+  (0.1ms) SAVEPOINT active_record_2
394
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-11-02 20:28:05.033267"], ["updated_at", "2015-11-02 20:28:05.033267"], ["file_ext", "png"], ["mime_type", "image/png"]]
304
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
+  (0.1ms) SAVEPOINT active_record_2
397
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-11-02 20:28:05.035337"], ["updated_at", "2015-11-02 20:28:05.035337"], ["file_ext", "png"], ["mime_type", "image/png"]]
398
+  (0.1ms) RELEASE SAVEPOINT active_record_2
399
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
305
400
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
306
401
   (0.1ms) ROLLBACK
307
402
   (0.1ms) BEGIN
308
- --------------------------------------------------------------------------
309
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
310
- --------------------------------------------------------------------------
403
+ ---------------------------------------------------------------------------
404
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
405
+ ---------------------------------------------------------------------------
311
406
   (0.0ms) SAVEPOINT active_record_1
312
407
   (0.0ms) RELEASE SAVEPOINT active_record_1
313
408
   (0.0ms) SAVEPOINT active_record_1
314
409
   (0.1ms) SAVEPOINT active_record_2
315
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-11-02 16:59:24.480355"], ["updated_at", "2015-11-02 16:59:24.480355"], ["file_ext", "png"], ["mime_type", "image/png"]]
410
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-11-02 20:28:05.039856"], ["updated_at", "2015-11-02 20:28:05.039856"], ["file_ext", "png"], ["mime_type", "image/png"]]
411
+  (0.1ms) RELEASE SAVEPOINT active_record_2
412
+  (0.1ms) SAVEPOINT active_record_2
413
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-11-02 20:28:05.042162"], ["updated_at", "2015-11-02 20:28:05.042162"], ["file_ext", "png"], ["mime_type", "image/png"]]
414
+  (0.1ms) RELEASE SAVEPOINT active_record_2
415
+  (0.1ms) SAVEPOINT active_record_2
416
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-11-02 20:28:05.044406"], ["updated_at", "2015-11-02 20:28:05.044406"], ["file_ext", "png"], ["mime_type", "image/png"]]
316
417
   (0.1ms) RELEASE SAVEPOINT active_record_2
418
+  (0.1ms) SAVEPOINT active_record_2
419
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-11-02 20:28:05.046579"], ["updated_at", "2015-11-02 20:28:05.046579"], ["file_ext", "png"], ["mime_type", "image/png"]]
420
+  (0.1ms) RELEASE SAVEPOINT active_record_2
421
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
317
422
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
318
423
   (0.1ms) ROLLBACK
319
424
   (0.1ms) BEGIN
320
- --------------------------------------------------------------------------
321
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
322
- --------------------------------------------------------------------------
323
-  (0.1ms) SAVEPOINT active_record_1
324
-  (0.1ms) RELEASE SAVEPOINT active_record_1
425
+ ---------------------------------------------------------------------------
426
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
427
+ ---------------------------------------------------------------------------
325
428
   (0.0ms) SAVEPOINT active_record_1
429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
430
+  (0.1ms) SAVEPOINT active_record_1
431
+  (0.1ms) SAVEPOINT active_record_2
432
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2015-11-02 20:28:05.051049"], ["updated_at", "2015-11-02 20:28:05.051049"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
+  (0.1ms) RELEASE SAVEPOINT active_record_2
434
+  (0.1ms) SAVEPOINT active_record_2
435
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2015-11-02 20:28:05.053147"], ["updated_at", "2015-11-02 20:28:05.053147"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
+  (0.1ms) RELEASE SAVEPOINT active_record_2
326
437
   (0.1ms) SAVEPOINT active_record_2
327
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-11-02 16:59:24.484227"], ["updated_at", "2015-11-02 16:59:24.484227"], ["file_ext", "png"], ["mime_type", "image/png"]]
438
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2015-11-02 20:28:05.055321"], ["updated_at", "2015-11-02 20:28:05.055321"], ["file_ext", "png"], ["mime_type", "image/png"]]
328
439
   (0.1ms) RELEASE SAVEPOINT active_record_2
440
+  (0.1ms) SAVEPOINT active_record_2
441
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-11-02 20:28:05.057394"], ["updated_at", "2015-11-02 20:28:05.057394"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
+  (0.1ms) RELEASE SAVEPOINT active_record_2
443
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
329
444
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
330
445
   (0.1ms) ROLLBACK
331
446
   (0.1ms) BEGIN
@@ -335,280 +450,280 @@ PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anony
335
450
   (0.1ms) SAVEPOINT active_record_1
336
451
   (0.1ms) RELEASE SAVEPOINT active_record_1
337
452
   (0.1ms) SAVEPOINT active_record_1
338
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
453
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
339
454
  Processing by PushType::WysiwygMediaController#create as JSON
340
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff63ebd3350 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-10740-1njkgnr>>}}
455
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8cc3dc9568 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-v7ehvf>>}}
341
456
   (0.1ms) SAVEPOINT active_record_2
342
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-11-02 16:59:24.505198"], ["updated_at", "2015-11-02 16:59:24.505198"], ["file_ext", "png"], ["mime_type", "image/png"]]
457
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-11-02 20:28:05.078927"], ["updated_at", "2015-11-02 20:28:05.078927"], ["file_ext", "png"], ["mime_type", "image/png"]]
343
458
   (0.1ms) RELEASE SAVEPOINT active_record_2
344
- Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
459
+ Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.4ms)
345
460
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
346
461
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
347
462
   (0.1ms) ROLLBACK
348
-  (0.1ms) BEGIN
463
+  (0.0ms) BEGIN
349
464
  -------------------------------------------------------------------------------------------
350
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
465
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
351
466
  -------------------------------------------------------------------------------------------
352
-  (0.1ms) SAVEPOINT active_record_1
467
+  (0.0ms) SAVEPOINT active_record_1
353
468
   (0.1ms) RELEASE SAVEPOINT active_record_1
354
-  (0.1ms) SAVEPOINT active_record_1
469
+  (0.0ms) SAVEPOINT active_record_1
355
470
   (0.1ms) SAVEPOINT active_record_2
356
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-11-02 16:59:24.511837"], ["updated_at", "2015-11-02 16:59:24.511837"], ["file_ext", "png"], ["mime_type", "image/png"]]
471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "49"], ["created_at", "2015-11-02 20:28:05.084897"], ["updated_at", "2015-11-02 20:28:05.084897"], ["file_ext", "png"], ["mime_type", "image/png"]]
357
472
   (0.1ms) RELEASE SAVEPOINT active_record_2
358
473
   (0.1ms) SAVEPOINT active_record_2
359
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2015-11-02 16:59:24.514042"], ["updated_at", "2015-11-02 16:59:24.514042"], ["file_ext", "png"], ["mime_type", "image/png"]]
474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "50"], ["created_at", "2015-11-02 20:28:05.087111"], ["updated_at", "2015-11-02 20:28:05.087111"], ["file_ext", "png"], ["mime_type", "image/png"]]
360
475
   (0.1ms) RELEASE SAVEPOINT active_record_2
361
476
   (0.1ms) SAVEPOINT active_record_2
362
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-11-02 16:59:24.516148"], ["updated_at", "2015-11-02 16:59:24.516148"], ["file_ext", "png"], ["mime_type", "image/png"]]
477
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "51"], ["created_at", "2015-11-02 20:28:05.089346"], ["updated_at", "2015-11-02 20:28:05.089346"], ["file_ext", "png"], ["mime_type", "image/png"]]
363
478
   (0.1ms) RELEASE SAVEPOINT active_record_2
364
479
   (0.1ms) SAVEPOINT active_record_2
365
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "32"], ["created_at", "2015-11-02 16:59:24.518263"], ["updated_at", "2015-11-02 16:59:24.518263"], ["file_ext", "png"], ["mime_type", "image/png"]]
480
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "52"], ["created_at", "2015-11-02 20:28:05.091668"], ["updated_at", "2015-11-02 20:28:05.091668"], ["file_ext", "png"], ["mime_type", "image/png"]]
366
481
   (0.1ms) RELEASE SAVEPOINT active_record_2
367
482
   (0.1ms) SAVEPOINT active_record_2
368
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "33"], ["created_at", "2015-11-02 16:59:24.520300"], ["updated_at", "2015-11-02 16:59:24.520300"], ["file_ext", "png"], ["mime_type", "image/png"]]
483
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "53"], ["created_at", "2015-11-02 20:28:05.093880"], ["updated_at", "2015-11-02 20:28:05.093880"], ["file_ext", "png"], ["mime_type", "image/png"]]
369
484
   (0.1ms) RELEASE SAVEPOINT active_record_2
370
485
   (0.1ms) SAVEPOINT active_record_2
371
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-11-02 16:59:24.522700"], ["updated_at", "2015-11-02 16:59:24.522700"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-11-02 20:28:05.096395"], ["updated_at", "2015-11-02 20:28:05.096395"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
372
487
   (0.1ms) RELEASE SAVEPOINT active_record_2
373
488
   (0.1ms) SAVEPOINT active_record_2
374
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-11-02 16:59:24.524685"], ["updated_at", "2015-11-02 16:59:24.524685"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-11-02 20:28:05.098617"], ["updated_at", "2015-11-02 20:28:05.098617"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
375
490
   (0.1ms) RELEASE SAVEPOINT active_record_2
376
491
   (0.1ms) SAVEPOINT active_record_2
377
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-11-02 16:59:24.526756"], ["updated_at", "2015-11-02 16:59:24.526756"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
492
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-11-02 20:28:05.100748"], ["updated_at", "2015-11-02 20:28:05.100748"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
378
493
   (0.1ms) RELEASE SAVEPOINT active_record_2
379
494
   (0.1ms) SAVEPOINT active_record_2
380
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-11-02 16:59:24.528823"], ["updated_at", "2015-11-02 16:59:24.528823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
495
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2015-11-02 20:28:05.102936"], ["updated_at", "2015-11-02 20:28:05.102936"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
381
496
   (0.1ms) RELEASE SAVEPOINT active_record_2
382
497
   (0.1ms) SAVEPOINT active_record_2
383
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-11-02 16:59:24.530894"], ["updated_at", "2015-11-02 16:59:24.530894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
498
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-11-02 20:28:05.105623"], ["updated_at", "2015-11-02 20:28:05.105623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
384
499
   (0.1ms) RELEASE SAVEPOINT active_record_2
385
500
   (0.1ms) SAVEPOINT active_record_2
386
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "39"], ["created_at", "2015-11-02 16:59:24.533013"], ["updated_at", "2015-11-02 16:59:24.533013"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
501
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-11-02 20:28:05.107971"], ["updated_at", "2015-11-02 20:28:05.107971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
387
502
   (0.1ms) RELEASE SAVEPOINT active_record_2
388
503
   (0.1ms) SAVEPOINT active_record_2
389
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "40"], ["created_at", "2015-11-02 16:59:24.534997"], ["updated_at", "2015-11-02 16:59:24.534997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
504
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-11-02 20:28:05.110030"], ["updated_at", "2015-11-02 20:28:05.110030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
390
505
   (0.1ms) RELEASE SAVEPOINT active_record_2
391
506
   (0.1ms) SAVEPOINT active_record_2
392
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "41"], ["created_at", "2015-11-02 16:59:24.536951"], ["updated_at", "2015-11-02 16:59:24.536951"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
507
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-11-02 20:28:05.112157"], ["updated_at", "2015-11-02 20:28:05.112157"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
393
508
   (0.1ms) RELEASE SAVEPOINT active_record_2
394
509
   (0.1ms) SAVEPOINT active_record_2
395
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-11-02 16:59:24.539030"], ["updated_at", "2015-11-02 16:59:24.539030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
510
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-11-02 20:28:05.114302"], ["updated_at", "2015-11-02 20:28:05.114302"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
396
511
   (0.1ms) RELEASE SAVEPOINT active_record_2
397
512
   (0.1ms) SAVEPOINT active_record_2
398
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-11-02 16:59:24.541049"], ["updated_at", "2015-11-02 16:59:24.541049"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-11-02 20:28:05.116466"], ["updated_at", "2015-11-02 20:28:05.116466"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
399
514
   (0.1ms) RELEASE SAVEPOINT active_record_2
400
515
   (0.1ms) SAVEPOINT active_record_2
401
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-11-02 16:59:24.543128"], ["updated_at", "2015-11-02 16:59:24.543128"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-11-02 20:28:05.118914"], ["updated_at", "2015-11-02 20:28:05.118914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
402
517
   (0.1ms) RELEASE SAVEPOINT active_record_2
403
518
   (0.1ms) SAVEPOINT active_record_2
404
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-11-02 16:59:24.545576"], ["updated_at", "2015-11-02 16:59:24.545576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-11-02 20:28:05.121063"], ["updated_at", "2015-11-02 20:28:05.121063"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
405
520
   (0.1ms) RELEASE SAVEPOINT active_record_2
406
521
   (0.1ms) SAVEPOINT active_record_2
407
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-11-02 16:59:24.547706"], ["updated_at", "2015-11-02 16:59:24.547706"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-11-02 20:28:05.123191"], ["updated_at", "2015-11-02 20:28:05.123191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
408
523
   (0.1ms) RELEASE SAVEPOINT active_record_2
409
524
  Processing by PushType::WysiwygMediaController#index as JSON
410
525
  Parameters: {"filter"=>"image"}
411
- PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
526
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
412
527
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
413
- Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.7ms)
528
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.6ms)
414
529
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
415
-  (0.1ms) ROLLBACK
530
+  (0.2ms) ROLLBACK
416
531
   (0.1ms) BEGIN
417
532
  -------------------------------------------------------------------------------------------
418
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
533
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
419
534
  -------------------------------------------------------------------------------------------
420
-  (0.0ms) SAVEPOINT active_record_1
535
+  (0.1ms) SAVEPOINT active_record_1
421
536
   (0.1ms) RELEASE SAVEPOINT active_record_1
422
537
   (0.0ms) SAVEPOINT active_record_1
423
538
   (0.1ms) SAVEPOINT active_record_2
424
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-11-02 16:59:24.561320"], ["updated_at", "2015-11-02 16:59:24.561320"], ["file_ext", "png"], ["mime_type", "image/png"]]
539
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "67"], ["created_at", "2015-11-02 20:28:05.136979"], ["updated_at", "2015-11-02 20:28:05.136979"], ["file_ext", "png"], ["mime_type", "image/png"]]
425
540
   (0.1ms) RELEASE SAVEPOINT active_record_2
426
541
   (0.1ms) SAVEPOINT active_record_2
427
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-11-02 16:59:24.563560"], ["updated_at", "2015-11-02 16:59:24.563560"], ["file_ext", "png"], ["mime_type", "image/png"]]
542
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "68"], ["created_at", "2015-11-02 20:28:05.139309"], ["updated_at", "2015-11-02 20:28:05.139309"], ["file_ext", "png"], ["mime_type", "image/png"]]
428
543
   (0.1ms) RELEASE SAVEPOINT active_record_2
429
544
   (0.1ms) SAVEPOINT active_record_2
430
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "49"], ["created_at", "2015-11-02 16:59:24.565685"], ["updated_at", "2015-11-02 16:59:24.565685"], ["file_ext", "png"], ["mime_type", "image/png"]]
545
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "69"], ["created_at", "2015-11-02 20:28:05.141445"], ["updated_at", "2015-11-02 20:28:05.141445"], ["file_ext", "png"], ["mime_type", "image/png"]]
431
546
   (0.1ms) RELEASE SAVEPOINT active_record_2
432
547
   (0.1ms) SAVEPOINT active_record_2
433
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "50"], ["created_at", "2015-11-02 16:59:24.567826"], ["updated_at", "2015-11-02 16:59:24.567826"], ["file_ext", "png"], ["mime_type", "image/png"]]
548
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "70"], ["created_at", "2015-11-02 20:28:05.143642"], ["updated_at", "2015-11-02 20:28:05.143642"], ["file_ext", "png"], ["mime_type", "image/png"]]
434
549
   (0.1ms) RELEASE SAVEPOINT active_record_2
435
550
   (0.1ms) SAVEPOINT active_record_2
436
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "51"], ["created_at", "2015-11-02 16:59:24.569879"], ["updated_at", "2015-11-02 16:59:24.569879"], ["file_ext", "png"], ["mime_type", "image/png"]]
551
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "71"], ["created_at", "2015-11-02 20:28:05.145805"], ["updated_at", "2015-11-02 20:28:05.145805"], ["file_ext", "png"], ["mime_type", "image/png"]]
437
552
   (0.1ms) RELEASE SAVEPOINT active_record_2
438
553
   (0.1ms) SAVEPOINT active_record_2
439
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-11-02 16:59:24.571961"], ["updated_at", "2015-11-02 16:59:24.571961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
554
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-11-02 20:28:05.148275"], ["updated_at", "2015-11-02 20:28:05.148275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
440
555
   (0.1ms) RELEASE SAVEPOINT active_record_2
441
556
   (0.1ms) SAVEPOINT active_record_2
442
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-11-02 16:59:24.574070"], ["updated_at", "2015-11-02 16:59:24.574070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-11-02 20:28:05.151262"], ["updated_at", "2015-11-02 20:28:05.151262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
443
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
444
559
   (0.1ms) SAVEPOINT active_record_2
445
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-11-02 16:59:24.576080"], ["updated_at", "2015-11-02 16:59:24.576080"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-11-02 20:28:05.153554"], ["updated_at", "2015-11-02 20:28:05.153554"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
446
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
447
562
   (0.1ms) SAVEPOINT active_record_2
448
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-11-02 16:59:24.578205"], ["updated_at", "2015-11-02 16:59:24.578205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
563
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-11-02 20:28:05.155790"], ["updated_at", "2015-11-02 20:28:05.155790"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
449
564
   (0.1ms) RELEASE SAVEPOINT active_record_2
450
565
   (0.1ms) SAVEPOINT active_record_2
451
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-11-02 16:59:24.580338"], ["updated_at", "2015-11-02 16:59:24.580338"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
566
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-11-02 20:28:05.158197"], ["updated_at", "2015-11-02 20:28:05.158197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
452
567
   (0.1ms) RELEASE SAVEPOINT active_record_2
453
568
   (0.1ms) SAVEPOINT active_record_2
454
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2015-11-02 16:59:24.582438"], ["updated_at", "2015-11-02 16:59:24.582438"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
569
+ SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-11-02 20:28:05.160533"], ["updated_at", "2015-11-02 20:28:05.160533"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
455
570
   (0.1ms) RELEASE SAVEPOINT active_record_2
456
571
   (0.1ms) SAVEPOINT active_record_2
457
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-11-02 16:59:24.584550"], ["updated_at", "2015-11-02 16:59:24.584550"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
572
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-11-02 20:28:05.162918"], ["updated_at", "2015-11-02 20:28:05.162918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
458
573
   (0.1ms) RELEASE SAVEPOINT active_record_2
459
574
   (0.1ms) SAVEPOINT active_record_2
460
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-11-02 16:59:24.586652"], ["updated_at", "2015-11-02 16:59:24.586652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-11-02 20:28:05.164952"], ["updated_at", "2015-11-02 20:28:05.164952"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
461
576
   (0.1ms) RELEASE SAVEPOINT active_record_2
462
577
   (0.1ms) SAVEPOINT active_record_2
463
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-11-02 16:59:24.588749"], ["updated_at", "2015-11-02 16:59:24.588749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
578
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-11-02 20:28:05.167102"], ["updated_at", "2015-11-02 20:28:05.167102"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
464
579
   (0.1ms) RELEASE SAVEPOINT active_record_2
465
580
   (0.1ms) SAVEPOINT active_record_2
466
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-11-02 16:59:24.590769"], ["updated_at", "2015-11-02 16:59:24.590769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-11-02 20:28:05.169221"], ["updated_at", "2015-11-02 20:28:05.169221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
467
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
468
583
   (0.1ms) SAVEPOINT active_record_2
469
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-11-02 16:59:24.592967"], ["updated_at", "2015-11-02 16:59:24.592967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-11-02 20:28:05.171892"], ["updated_at", "2015-11-02 20:28:05.171892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
470
585
   (0.1ms) RELEASE SAVEPOINT active_record_2
471
586
   (0.1ms) SAVEPOINT active_record_2
472
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-11-02 16:59:24.595338"], ["updated_at", "2015-11-02 16:59:24.595338"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-11-02 20:28:05.174881"], ["updated_at", "2015-11-02 20:28:05.174881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
473
588
   (0.1ms) RELEASE SAVEPOINT active_record_2
474
589
   (0.1ms) SAVEPOINT active_record_2
475
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-11-02 16:59:24.597507"], ["updated_at", "2015-11-02 16:59:24.597507"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-11-02 20:28:05.177353"], ["updated_at", "2015-11-02 20:28:05.177353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
476
591
   (0.1ms) RELEASE SAVEPOINT active_record_2
477
592
  Processing by PushType::WysiwygMediaController#index as JSON
478
593
  Parameters: {"filter"=>"image"}
479
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
480
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
481
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
594
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
595
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
596
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
482
597
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
483
-  (0.2ms) ROLLBACK
598
+  (0.1ms) ROLLBACK
484
599
   (0.1ms) BEGIN
485
600
  -------------------------------------------------------------------------------------------
486
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
601
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
487
602
  -------------------------------------------------------------------------------------------
488
603
   (0.1ms) SAVEPOINT active_record_1
489
604
   (0.0ms) RELEASE SAVEPOINT active_record_1
490
-  (0.1ms) SAVEPOINT active_record_1
605
+  (0.0ms) SAVEPOINT active_record_1
491
606
   (0.1ms) SAVEPOINT active_record_2
492
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "65"], ["created_at", "2015-11-02 16:59:24.605863"], ["updated_at", "2015-11-02 16:59:24.605863"], ["file_ext", "png"], ["mime_type", "image/png"]]
607
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-11-02 20:28:05.185815"], ["updated_at", "2015-11-02 20:28:05.185815"], ["file_ext", "png"], ["mime_type", "image/png"]]
493
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
609
   (0.1ms) SAVEPOINT active_record_2
495
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "66"], ["created_at", "2015-11-02 16:59:24.608157"], ["updated_at", "2015-11-02 16:59:24.608157"], ["file_ext", "png"], ["mime_type", "image/png"]]
610
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-11-02 20:28:05.188058"], ["updated_at", "2015-11-02 20:28:05.188058"], ["file_ext", "png"], ["mime_type", "image/png"]]
496
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
497
612
   (0.1ms) SAVEPOINT active_record_2
498
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "67"], ["created_at", "2015-11-02 16:59:24.610257"], ["updated_at", "2015-11-02 16:59:24.610257"], ["file_ext", "png"], ["mime_type", "image/png"]]
613
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-11-02 20:28:05.190218"], ["updated_at", "2015-11-02 20:28:05.190218"], ["file_ext", "png"], ["mime_type", "image/png"]]
499
614
   (0.1ms) RELEASE SAVEPOINT active_record_2
500
615
   (0.1ms) SAVEPOINT active_record_2
501
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "68"], ["created_at", "2015-11-02 16:59:24.612293"], ["updated_at", "2015-11-02 16:59:24.612293"], ["file_ext", "png"], ["mime_type", "image/png"]]
616
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "88"], ["created_at", "2015-11-02 20:28:05.193216"], ["updated_at", "2015-11-02 20:28:05.193216"], ["file_ext", "png"], ["mime_type", "image/png"]]
502
617
   (0.1ms) RELEASE SAVEPOINT active_record_2
503
618
   (0.1ms) SAVEPOINT active_record_2
504
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "69"], ["created_at", "2015-11-02 16:59:24.614373"], ["updated_at", "2015-11-02 16:59:24.614373"], ["file_ext", "png"], ["mime_type", "image/png"]]
619
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "89"], ["created_at", "2015-11-02 20:28:05.195731"], ["updated_at", "2015-11-02 20:28:05.195731"], ["file_ext", "png"], ["mime_type", "image/png"]]
505
620
   (0.1ms) RELEASE SAVEPOINT active_record_2
506
621
   (0.1ms) SAVEPOINT active_record_2
507
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-11-02 16:59:24.616471"], ["updated_at", "2015-11-02 16:59:24.616471"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
622
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-11-02 20:28:05.197961"], ["updated_at", "2015-11-02 20:28:05.197961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
623
   (0.1ms) RELEASE SAVEPOINT active_record_2
509
624
   (0.1ms) SAVEPOINT active_record_2
510
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-11-02 16:59:24.618604"], ["updated_at", "2015-11-02 16:59:24.618604"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
625
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-11-02 20:28:05.200237"], ["updated_at", "2015-11-02 20:28:05.200237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
512
627
   (0.1ms) SAVEPOINT active_record_2
513
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-11-02 16:59:24.620768"], ["updated_at", "2015-11-02 16:59:24.620768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
628
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-11-02 20:28:05.202414"], ["updated_at", "2015-11-02 20:28:05.202414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
629
   (0.1ms) RELEASE SAVEPOINT active_record_2
515
630
   (0.1ms) SAVEPOINT active_record_2
516
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-11-02 16:59:24.622803"], ["updated_at", "2015-11-02 16:59:24.622803"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
631
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-11-02 20:28:05.204448"], ["updated_at", "2015-11-02 20:28:05.204448"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
632
   (0.1ms) RELEASE SAVEPOINT active_record_2
518
633
   (0.1ms) SAVEPOINT active_record_2
519
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-11-02 16:59:24.624855"], ["updated_at", "2015-11-02 16:59:24.624855"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
634
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-11-02 20:28:05.206714"], ["updated_at", "2015-11-02 20:28:05.206714"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
635
   (0.1ms) RELEASE SAVEPOINT active_record_2
521
636
   (0.1ms) SAVEPOINT active_record_2
522
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-11-02 16:59:24.626833"], ["updated_at", "2015-11-02 16:59:24.626833"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
637
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-11-02 20:28:05.209024"], ["updated_at", "2015-11-02 20:28:05.209024"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
638
   (0.1ms) RELEASE SAVEPOINT active_record_2
524
639
   (0.1ms) SAVEPOINT active_record_2
525
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-11-02 16:59:24.629023"], ["updated_at", "2015-11-02 16:59:24.629023"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
640
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-11-02 20:28:05.211185"], ["updated_at", "2015-11-02 20:28:05.211185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
526
641
   (0.1ms) RELEASE SAVEPOINT active_record_2
527
642
   (0.1ms) SAVEPOINT active_record_2
528
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-11-02 16:59:24.631143"], ["updated_at", "2015-11-02 16:59:24.631143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
643
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-11-02 20:28:05.213524"], ["updated_at", "2015-11-02 20:28:05.213524"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
529
644
   (0.1ms) RELEASE SAVEPOINT active_record_2
530
645
   (0.1ms) SAVEPOINT active_record_2
531
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-11-02 16:59:24.633464"], ["updated_at", "2015-11-02 16:59:24.633464"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
646
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-11-02 20:28:05.215671"], ["updated_at", "2015-11-02 20:28:05.215671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
532
647
   (0.1ms) RELEASE SAVEPOINT active_record_2
533
648
   (0.1ms) SAVEPOINT active_record_2
534
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-11-02 16:59:24.635529"], ["updated_at", "2015-11-02 16:59:24.635529"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-11-02 20:28:05.217822"], ["updated_at", "2015-11-02 20:28:05.217822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
535
650
   (0.1ms) RELEASE SAVEPOINT active_record_2
536
651
   (0.1ms) SAVEPOINT active_record_2
537
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-11-02 16:59:24.637657"], ["updated_at", "2015-11-02 16:59:24.637657"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-11-02 20:28:05.220324"], ["updated_at", "2015-11-02 20:28:05.220324"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
538
653
   (0.1ms) RELEASE SAVEPOINT active_record_2
539
654
   (0.1ms) SAVEPOINT active_record_2
540
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-11-02 16:59:24.639954"], ["updated_at", "2015-11-02 16:59:24.639954"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-11-02 20:28:05.222398"], ["updated_at", "2015-11-02 20:28:05.222398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
541
656
   (0.1ms) RELEASE SAVEPOINT active_record_2
542
657
   (0.1ms) SAVEPOINT active_record_2
543
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-11-02 16:59:24.642140"], ["updated_at", "2015-11-02 16:59:24.642140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-11-02 20:28:05.224480"], ["updated_at", "2015-11-02 20:28:05.224480"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
544
659
   (0.1ms) RELEASE SAVEPOINT active_record_2
545
660
  Processing by PushType::WysiwygMediaController#index as JSON
546
661
  Parameters: {"filter"=>"image"}
547
662
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
548
663
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
549
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
664
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
550
665
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
551
666
   (0.1ms) ROLLBACK
552
667
   (0.1ms) BEGIN
553
668
  -------------------------------------------------------------------------------------------
554
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
669
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
555
670
  -------------------------------------------------------------------------------------------
556
671
   (0.1ms) SAVEPOINT active_record_1
557
672
   (0.0ms) RELEASE SAVEPOINT active_record_1
558
-  (0.0ms) SAVEPOINT active_record_1
673
+  (0.1ms) SAVEPOINT active_record_1
559
674
   (0.1ms) SAVEPOINT active_record_2
560
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-11-02 16:59:24.650710"], ["updated_at", "2015-11-02 16:59:24.650710"], ["file_ext", "png"], ["mime_type", "image/png"]]
675
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-11-02 20:28:05.232748"], ["updated_at", "2015-11-02 20:28:05.232748"], ["file_ext", "png"], ["mime_type", "image/png"]]
561
676
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
677
   (0.1ms) SAVEPOINT active_record_2
563
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-11-02 16:59:24.652980"], ["updated_at", "2015-11-02 16:59:24.652980"], ["file_ext", "png"], ["mime_type", "image/png"]]
678
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-11-02 20:28:05.234944"], ["updated_at", "2015-11-02 20:28:05.234944"], ["file_ext", "png"], ["mime_type", "image/png"]]
564
679
   (0.1ms) RELEASE SAVEPOINT active_record_2
565
680
   (0.1ms) SAVEPOINT active_record_2
566
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-11-02 16:59:24.654966"], ["updated_at", "2015-11-02 16:59:24.654966"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-11-02 20:28:05.237137"], ["updated_at", "2015-11-02 20:28:05.237137"], ["file_ext", "png"], ["mime_type", "image/png"]]
567
682
   (0.1ms) RELEASE SAVEPOINT active_record_2
568
683
   (0.1ms) SAVEPOINT active_record_2
569
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-11-02 16:59:24.656944"], ["updated_at", "2015-11-02 16:59:24.656944"], ["file_ext", "png"], ["mime_type", "image/png"]]
684
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "106"], ["created_at", "2015-11-02 20:28:05.239315"], ["updated_at", "2015-11-02 20:28:05.239315"], ["file_ext", "png"], ["mime_type", "image/png"]]
570
685
   (0.1ms) RELEASE SAVEPOINT active_record_2
571
686
   (0.1ms) SAVEPOINT active_record_2
572
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-11-02 16:59:24.658921"], ["updated_at", "2015-11-02 16:59:24.658921"], ["file_ext", "png"], ["mime_type", "image/png"]]
687
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "107"], ["created_at", "2015-11-02 20:28:05.241415"], ["updated_at", "2015-11-02 20:28:05.241415"], ["file_ext", "png"], ["mime_type", "image/png"]]
573
688
   (0.1ms) RELEASE SAVEPOINT active_record_2
574
689
   (0.1ms) SAVEPOINT active_record_2
575
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-11-02 16:59:24.660991"], ["updated_at", "2015-11-02 16:59:24.660991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
690
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-11-02 20:28:05.243592"], ["updated_at", "2015-11-02 20:28:05.243592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
576
691
   (0.1ms) RELEASE SAVEPOINT active_record_2
577
692
   (0.1ms) SAVEPOINT active_record_2
578
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-11-02 16:59:24.663175"], ["updated_at", "2015-11-02 16:59:24.663175"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
693
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-11-02 20:28:05.245620"], ["updated_at", "2015-11-02 20:28:05.245620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
579
694
   (0.1ms) RELEASE SAVEPOINT active_record_2
580
695
   (0.1ms) SAVEPOINT active_record_2
581
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-11-02 16:59:24.665320"], ["updated_at", "2015-11-02 16:59:24.665320"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
696
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-11-02 20:28:05.247703"], ["updated_at", "2015-11-02 20:28:05.247703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
582
697
   (0.1ms) RELEASE SAVEPOINT active_record_2
583
698
   (0.1ms) SAVEPOINT active_record_2
584
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-11-02 16:59:24.667379"], ["updated_at", "2015-11-02 16:59:24.667379"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
699
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-11-02 20:28:05.249703"], ["updated_at", "2015-11-02 20:28:05.249703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
585
700
   (0.1ms) RELEASE SAVEPOINT active_record_2
586
701
   (0.1ms) SAVEPOINT active_record_2
587
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-11-02 16:59:24.669354"], ["updated_at", "2015-11-02 16:59:24.669354"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
702
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-11-02 20:28:05.251711"], ["updated_at", "2015-11-02 20:28:05.251711"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
588
703
   (0.1ms) RELEASE SAVEPOINT active_record_2
589
704
   (0.1ms) SAVEPOINT active_record_2
590
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-11-02 16:59:24.671382"], ["updated_at", "2015-11-02 16:59:24.671382"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
705
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-11-02 20:28:05.253911"], ["updated_at", "2015-11-02 20:28:05.253911"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
591
706
   (0.1ms) RELEASE SAVEPOINT active_record_2
592
707
   (0.1ms) SAVEPOINT active_record_2
593
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-11-02 16:59:24.673350"], ["updated_at", "2015-11-02 16:59:24.673350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
708
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-11-02 20:28:05.255987"], ["updated_at", "2015-11-02 20:28:05.255987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
594
709
   (0.1ms) RELEASE SAVEPOINT active_record_2
595
710
   (0.1ms) SAVEPOINT active_record_2
596
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-11-02 16:59:24.675631"], ["updated_at", "2015-11-02 16:59:24.675631"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
711
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-11-02 20:28:05.258032"], ["updated_at", "2015-11-02 20:28:05.258032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
597
712
   (0.1ms) RELEASE SAVEPOINT active_record_2
598
713
   (0.1ms) SAVEPOINT active_record_2
599
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-11-02 16:59:24.677923"], ["updated_at", "2015-11-02 16:59:24.677923"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
714
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-11-02 20:28:05.260209"], ["updated_at", "2015-11-02 20:28:05.260209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
600
715
   (0.1ms) RELEASE SAVEPOINT active_record_2
601
716
   (0.1ms) SAVEPOINT active_record_2
602
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-11-02 16:59:24.679991"], ["updated_at", "2015-11-02 16:59:24.679991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
717
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-11-02 20:28:05.262276"], ["updated_at", "2015-11-02 20:28:05.262276"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
603
718
   (0.1ms) RELEASE SAVEPOINT active_record_2
604
719
   (0.1ms) SAVEPOINT active_record_2
605
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-11-02 16:59:24.682152"], ["updated_at", "2015-11-02 16:59:24.682152"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
720
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-11-02 20:28:05.264378"], ["updated_at", "2015-11-02 20:28:05.264378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
606
721
   (0.1ms) RELEASE SAVEPOINT active_record_2
607
722
   (0.1ms) SAVEPOINT active_record_2
608
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-11-02 16:59:24.684537"], ["updated_at", "2015-11-02 16:59:24.684537"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-11-02 20:28:05.266707"], ["updated_at", "2015-11-02 20:28:05.266707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
609
724
   (0.1ms) RELEASE SAVEPOINT active_record_2
610
725
   (0.1ms) SAVEPOINT active_record_2
611
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-11-02 16:59:24.686671"], ["updated_at", "2015-11-02 16:59:24.686671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
726
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-11-02 20:28:05.268881"], ["updated_at", "2015-11-02 20:28:05.268881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
612
727
   (0.1ms) RELEASE SAVEPOINT active_record_2
613
728
  Processing by PushType::WysiwygMediaController#index as JSON
614
729
  Parameters: {"filter"=>"image"}
@@ -618,883 +733,768 @@ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
618
733
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
619
734
   (0.1ms) ROLLBACK
620
735
   (0.1ms) BEGIN
621
- ---------------------------------------------------------------------------
622
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
623
- ---------------------------------------------------------------------------
736
+ --------------------------------------------------------------------------------------------
737
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
738
+ --------------------------------------------------------------------------------------------
739
+  (0.1ms) SAVEPOINT active_record_1
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+  (0.0ms) SAVEPOINT active_record_1
742
+ Processing by PushType::WysiwygMediaController#create as JSON
743
+ Parameters: {"asset"=>{}}
744
+  (0.1ms) SAVEPOINT active_record_2
745
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
746
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)
747
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
748
+  (0.1ms) ROLLBACK
749
+  (0.1ms) BEGIN
750
+ --------------------------------------------------------------------------------------------
751
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
752
+ --------------------------------------------------------------------------------------------
624
753
   (0.1ms) SAVEPOINT active_record_1
625
754
   (0.1ms) RELEASE SAVEPOINT active_record_1
626
755
   (0.0ms) SAVEPOINT active_record_1
756
+ Processing by PushType::WysiwygMediaController#create as JSON
757
+ Parameters: {"asset"=>{}}
627
758
   (0.1ms) SAVEPOINT active_record_2
628
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-11-02 16:59:24.695798"], ["updated_at", "2015-11-02 16:59:24.695798"], ["file_ext", "png"], ["mime_type", "image/png"]]
629
-  (0.1ms) RELEASE SAVEPOINT active_record_2
630
-  (0.1ms) SAVEPOINT active_record_2
631
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-11-02 16:59:24.697958"], ["updated_at", "2015-11-02 16:59:24.697958"], ["file_ext", "png"], ["mime_type", "image/png"]]
632
-  (0.1ms) RELEASE SAVEPOINT active_record_2
759
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
760
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
761
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
762
+  (0.1ms) ROLLBACK
763
+  (0.1ms) BEGIN
764
+ --------------------------------------------------------------------------------------------
765
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
766
+ --------------------------------------------------------------------------------------------
767
+  (0.1ms) SAVEPOINT active_record_1
768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
769
+  (0.0ms) SAVEPOINT active_record_1
770
+ Processing by PushType::WysiwygMediaController#create as JSON
771
+ Parameters: {"asset"=>{}}
633
772
   (0.1ms) SAVEPOINT active_record_2
634
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-11-02 16:59:24.700009"], ["updated_at", "2015-11-02 16:59:24.700009"], ["file_ext", "png"], ["mime_type", "image/png"]]
635
-  (0.1ms) RELEASE SAVEPOINT active_record_2
636
-  (0.1ms) SAVEPOINT active_record_2
637
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-11-02 16:59:24.702117"], ["updated_at", "2015-11-02 16:59:24.702117"], ["file_ext", "png"], ["mime_type", "image/png"]]
638
-  (0.1ms) RELEASE SAVEPOINT active_record_2
639
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
640
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
773
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
774
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
641
775
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
642
-  (0.2ms) ROLLBACK
776
+  (0.1ms) ROLLBACK
643
777
   (0.1ms) BEGIN
644
- ---------------------------------------------------------------------------
645
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
646
- ---------------------------------------------------------------------------
778
+ -----------------------------------------------
779
+ PushType::WysiwygFieldTest: test_0003_anonymous
780
+ -----------------------------------------------
647
781
   (0.1ms) SAVEPOINT active_record_1
648
782
   (0.0ms) RELEASE SAVEPOINT active_record_1
649
783
   (0.0ms) SAVEPOINT active_record_1
650
784
   (0.1ms) SAVEPOINT active_record_2
651
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-11-02 16:59:24.707591"], ["updated_at", "2015-11-02 16:59:24.707591"], ["file_ext", "png"], ["mime_type", "image/png"]]
652
-  (0.1ms) RELEASE SAVEPOINT active_record_2
653
-  (0.1ms) SAVEPOINT active_record_2
654
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "106"], ["created_at", "2015-11-02 16:59:24.709660"], ["updated_at", "2015-11-02 16:59:24.709660"], ["file_ext", "png"], ["mime_type", "image/png"]]
655
-  (0.1ms) RELEASE SAVEPOINT active_record_2
656
-  (0.1ms) SAVEPOINT active_record_2
657
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "107"], ["created_at", "2015-11-02 16:59:24.711770"], ["updated_at", "2015-11-02 16:59:24.711770"], ["file_ext", "png"], ["mime_type", "image/png"]]
658
-  (0.1ms) RELEASE SAVEPOINT active_record_2
659
-  (0.1ms) SAVEPOINT active_record_2
660
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "108"], ["created_at", "2015-11-02 16:59:24.713784"], ["updated_at", "2015-11-02 16:59:24.713784"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
+ PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
786
+ SQL (0.2ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", "2015-11-02 20:28:05.311604"], ["updated_at", "2015-11-02 20:28:05.311604"]]
787
+  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tea5cca713923c75a6e5197062c850a82
788
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"], ["descendant_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"], ["generations", 0]]
789
+  (0.5ms) UPDATE "push_type_nodes"
790
+ SET "sort_order" = t.seq + -1
791
+ FROM (
792
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
793
+ FROM "push_type_nodes"
794
+ WHERE "parent_id" IS NULL
795
+ ) AS t
796
+ WHERE "push_type_nodes"."id" = t.id
797
+ 
798
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"]]
799
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"]]
800
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t82751ba85017326fc6a7ab1827b8cbf9
661
801
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
663
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
664
802
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
665
803
   (0.1ms) ROLLBACK
666
804
   (0.1ms) BEGIN
667
- ---------------------------------------------------------------------------
668
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
669
- ---------------------------------------------------------------------------
805
+ -----------------------------------------------
806
+ PushType::WysiwygFieldTest: test_0001_anonymous
807
+ -----------------------------------------------
670
808
   (0.1ms) SAVEPOINT active_record_1
671
809
   (0.0ms) RELEASE SAVEPOINT active_record_1
672
810
   (0.0ms) SAVEPOINT active_record_1
673
811
   (0.1ms) SAVEPOINT active_record_2
674
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "109"], ["created_at", "2015-11-02 16:59:24.719360"], ["updated_at", "2015-11-02 16:59:24.719360"], ["file_ext", "png"], ["mime_type", "image/png"]]
675
-  (0.1ms) RELEASE SAVEPOINT active_record_2
676
-  (0.1ms) SAVEPOINT active_record_2
677
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-11-02 16:59:24.721545"], ["updated_at", "2015-11-02 16:59:24.721545"], ["file_ext", "png"], ["mime_type", "image/png"]]
812
+ PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
813
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["status", 0], ["created_at", "2015-11-02 20:28:05.334540"], ["updated_at", "2015-11-02 20:28:05.334540"]]
814
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5d03a142c60fe4043a69917a96824803
815
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"], ["descendant_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"], ["generations", 0]]
816
+  (0.3ms) UPDATE "push_type_nodes"
817
+ SET "sort_order" = t.seq + -1
818
+ FROM (
819
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
820
+ FROM "push_type_nodes"
821
+ WHERE "parent_id" IS NULL
822
+ ) AS t
823
+ WHERE "push_type_nodes"."id" = t.id
824
+ 
825
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"]]
826
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"]]
827
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t86fa6a081ceffa907e667e9188f93fbb
678
828
   (0.1ms) RELEASE SAVEPOINT active_record_2
829
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
830
+  (0.1ms) ROLLBACK
831
+  (0.0ms) BEGIN
832
+ -----------------------------------------------
833
+ PushType::WysiwygFieldTest: test_0004_anonymous
834
+ -----------------------------------------------
835
+  (0.0ms) SAVEPOINT active_record_1
836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
837
+  (0.0ms) SAVEPOINT active_record_1
679
838
   (0.1ms) SAVEPOINT active_record_2
680
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-11-02 16:59:24.723530"], ["updated_at", "2015-11-02 16:59:24.723530"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
-  (0.1ms) RELEASE SAVEPOINT active_record_2
682
-  (0.1ms) SAVEPOINT active_record_2
683
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-11-02 16:59:24.725512"], ["updated_at", "2015-11-02 16:59:24.725512"], ["file_ext", "png"], ["mime_type", "image/png"]]
839
+ PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
840
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["status", 0], ["created_at", "2015-11-02 20:28:05.342459"], ["updated_at", "2015-11-02 20:28:05.342459"]]
841
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6aac47c5906c940e200230baabee15e8
842
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7265df95-7550-4155-b35f-18578c49548f"], ["descendant_id", "7265df95-7550-4155-b35f-18578c49548f"], ["generations", 0]]
843
+  (0.3ms) UPDATE "push_type_nodes"
844
+ SET "sort_order" = t.seq + -1
845
+ FROM (
846
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
847
+ FROM "push_type_nodes"
848
+ WHERE "parent_id" IS NULL
849
+ ) AS t
850
+ WHERE "push_type_nodes"."id" = t.id
851
+ 
852
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7265df95-7550-4155-b35f-18578c49548f"]]
853
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7265df95-7550-4155-b35f-18578c49548f"]]
854
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6f83d7cb875117305005b18c34c2994d
684
855
   (0.1ms) RELEASE SAVEPOINT active_record_2
685
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
686
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
687
856
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
688
857
   (0.1ms) ROLLBACK
689
858
   (0.1ms) BEGIN
690
- ---------------------------------------------------------------------------
691
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
692
- ---------------------------------------------------------------------------
693
-  (0.1ms) SAVEPOINT active_record_1
859
+ -----------------------------------------------
860
+ PushType::WysiwygFieldTest: test_0002_anonymous
861
+ -----------------------------------------------
862
+  (0.0ms) SAVEPOINT active_record_1
694
863
   (0.0ms) RELEASE SAVEPOINT active_record_1
695
864
   (0.0ms) SAVEPOINT active_record_1
696
865
   (0.1ms) SAVEPOINT active_record_2
697
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-11-02 16:59:24.731402"], ["updated_at", "2015-11-02 16:59:24.731402"], ["file_ext", "png"], ["mime_type", "image/png"]]
698
-  (0.1ms) RELEASE SAVEPOINT active_record_2
699
-  (0.1ms) SAVEPOINT active_record_2
700
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-11-02 16:59:24.733641"], ["updated_at", "2015-11-02 16:59:24.733641"], ["file_ext", "png"], ["mime_type", "image/png"]]
866
+ PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
867
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-11-02 20:28:05.350293"], ["updated_at", "2015-11-02 20:28:05.350293"]]
868
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfbace101b9e68a3e0489f83484232602
869
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"], ["descendant_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"], ["generations", 0]]
870
+  (0.3ms) UPDATE "push_type_nodes"
871
+ SET "sort_order" = t.seq + -1
872
+ FROM (
873
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
874
+ FROM "push_type_nodes"
875
+ WHERE "parent_id" IS NULL
876
+ ) AS t
877
+ WHERE "push_type_nodes"."id" = t.id
878
+ 
879
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"]]
880
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"]]
881
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbcb181e8802041f35584f44257f68946
701
882
   (0.1ms) RELEASE SAVEPOINT active_record_2
883
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
884
+  (0.1ms) ROLLBACK
885
+  (0.1ms) BEGIN
886
+ -----------------------------------------------
887
+ PushType::WysiwygFieldTest: test_0005_anonymous
888
+ -----------------------------------------------
889
+  (0.0ms) SAVEPOINT active_record_1
890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
891
+  (0.0ms) SAVEPOINT active_record_1
702
892
   (0.1ms) SAVEPOINT active_record_2
703
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "115"], ["created_at", "2015-11-02 16:59:24.735635"], ["updated_at", "2015-11-02 16:59:24.735635"], ["file_ext", "png"], ["mime_type", "image/png"]]
704
-  (0.1ms) RELEASE SAVEPOINT active_record_2
705
-  (0.1ms) SAVEPOINT active_record_2
706
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-11-02 16:59:24.737655"], ["updated_at", "2015-11-02 16:59:24.737655"], ["file_ext", "png"], ["mime_type", "image/png"]]
893
+ PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
894
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", "2015-11-02 20:28:05.357923"], ["updated_at", "2015-11-02 20:28:05.357923"]]
895
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2afab455acaad66ef9e0af32b775164d
896
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"], ["descendant_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"], ["generations", 0]]
897
+  (0.2ms) UPDATE "push_type_nodes"
898
+ SET "sort_order" = t.seq + -1
899
+ FROM (
900
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
901
+ FROM "push_type_nodes"
902
+ WHERE "parent_id" IS NULL
903
+ ) AS t
904
+ WHERE "push_type_nodes"."id" = t.id
905
+ 
906
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"]]
907
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"]]
908
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6d4903ac943561a160f91fddf828c233
707
909
   (0.1ms) RELEASE SAVEPOINT active_record_2
708
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
709
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
710
910
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
711
911
   (0.1ms) ROLLBACK
712
912
   (0.1ms) BEGIN
713
- ---------------------------------------------------------------------------
714
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
715
- ---------------------------------------------------------------------------
913
+ -----------------------------------------------------------------------------------------
914
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
915
+ -----------------------------------------------------------------------------------------
716
916
   (0.1ms) SAVEPOINT active_record_1
717
-  (0.0ms) RELEASE SAVEPOINT active_record_1
917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
718
918
   (0.1ms) SAVEPOINT active_record_1
919
+ Processing by PushType::WysiwygMediaController#create as JSON
920
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccb3c8db8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1ttyqle>>}}
719
921
   (0.1ms) SAVEPOINT active_record_2
720
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2015-11-02 16:59:24.743068"], ["updated_at", "2015-11-02 16:59:24.743068"], ["file_ext", "png"], ["mime_type", "image/png"]]
721
-  (0.1ms) RELEASE SAVEPOINT active_record_2
722
-  (0.1ms) SAVEPOINT active_record_2
723
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-11-02 16:59:24.745248"], ["updated_at", "2015-11-02 16:59:24.745248"], ["file_ext", "png"], ["mime_type", "image/png"]]
724
-  (0.1ms) RELEASE SAVEPOINT active_record_2
725
-  (0.1ms) SAVEPOINT active_record_2
726
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-11-02 16:59:24.747313"], ["updated_at", "2015-11-02 16:59:24.747313"], ["file_ext", "png"], ["mime_type", "image/png"]]
922
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-11-02 20:28:05.369455"], ["updated_at", "2015-11-02 20:28:05.369455"], ["file_ext", "png"], ["mime_type", "image/png"]]
727
923
   (0.1ms) RELEASE SAVEPOINT active_record_2
924
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
925
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
926
+  (0.1ms) ROLLBACK
927
+  (0.1ms) BEGIN
928
+ -----------------------------------------------------------------------------------------
929
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
930
+ -----------------------------------------------------------------------------------------
931
+  (0.1ms) SAVEPOINT active_record_1
932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
933
+  (0.0ms) SAVEPOINT active_record_1
934
+ Processing by PushType::WysiwygMediaController#create as JSON
935
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccb4087d8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1gsimqo>>}}
728
936
   (0.1ms) SAVEPOINT active_record_2
729
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-11-02 16:59:24.749370"], ["updated_at", "2015-11-02 16:59:24.749370"], ["file_ext", "png"], ["mime_type", "image/png"]]
937
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-11-02 20:28:05.375169"], ["updated_at", "2015-11-02 20:28:05.375169"], ["file_ext", "png"], ["mime_type", "image/png"]]
730
938
   (0.1ms) RELEASE SAVEPOINT active_record_2
731
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
732
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
939
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
733
940
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
734
941
   (0.1ms) ROLLBACK
735
942
   (0.1ms) BEGIN
736
- ------------------------------------------------------------------------------------------
737
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
738
- ------------------------------------------------------------------------------------------
943
+ -----------------------------------------------------------------------------------------
944
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
945
+ -----------------------------------------------------------------------------------------
739
946
   (0.1ms) SAVEPOINT active_record_1
740
947
   (0.1ms) RELEASE SAVEPOINT active_record_1
741
-  (0.1ms) SAVEPOINT active_record_1
948
+  (0.0ms) SAVEPOINT active_record_1
949
+ Processing by PushType::WysiwygMediaController#create as JSON
950
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccbb144c8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1efqzz7>>}}
742
951
   (0.1ms) SAVEPOINT active_record_2
743
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-11-02 16:59:24.756367"], ["updated_at", "2015-11-02 16:59:24.756367"], ["file_ext", "png"], ["mime_type", "image/png"]]
952
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-11-02 20:28:05.380876"], ["updated_at", "2015-11-02 20:28:05.380876"], ["file_ext", "png"], ["mime_type", "image/png"]]
744
953
   (0.1ms) RELEASE SAVEPOINT active_record_2
954
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
955
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
956
+  (0.1ms) ROLLBACK
957
+  (0.1ms) BEGIN
958
+ --------------------------------------------------------------------------------------
959
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
960
+ --------------------------------------------------------------------------------------
961
+  (0.0ms) SAVEPOINT active_record_1
962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
963
+  (0.0ms) SAVEPOINT active_record_1
745
964
   (0.1ms) SAVEPOINT active_record_2
746
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-11-02 16:59:24.758482"], ["updated_at", "2015-11-02 16:59:24.758482"], ["file_ext", "png"], ["mime_type", "image/png"]]
965
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "124"], ["created_at", "2015-11-02 20:28:05.385364"], ["updated_at", "2015-11-02 20:28:05.385364"], ["file_ext", "png"], ["mime_type", "image/png"]]
747
966
   (0.1ms) RELEASE SAVEPOINT active_record_2
748
967
   (0.1ms) SAVEPOINT active_record_2
749
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-11-02 16:59:24.760552"], ["updated_at", "2015-11-02 16:59:24.760552"], ["file_ext", "png"], ["mime_type", "image/png"]]
968
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "125"], ["created_at", "2015-11-02 20:28:05.387732"], ["updated_at", "2015-11-02 20:28:05.387732"], ["file_ext", "png"], ["mime_type", "image/png"]]
750
969
   (0.1ms) RELEASE SAVEPOINT active_record_2
751
970
   (0.1ms) SAVEPOINT active_record_2
752
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "124"], ["created_at", "2015-11-02 16:59:24.762521"], ["updated_at", "2015-11-02 16:59:24.762521"], ["file_ext", "png"], ["mime_type", "image/png"]]
971
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "126"], ["created_at", "2015-11-02 20:28:05.390046"], ["updated_at", "2015-11-02 20:28:05.390046"], ["file_ext", "png"], ["mime_type", "image/png"]]
753
972
   (0.1ms) RELEASE SAVEPOINT active_record_2
754
973
   (0.1ms) SAVEPOINT active_record_2
755
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "125"], ["created_at", "2015-11-02 16:59:24.764662"], ["updated_at", "2015-11-02 16:59:24.764662"], ["file_ext", "png"], ["mime_type", "image/png"]]
974
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "127"], ["created_at", "2015-11-02 20:28:05.392312"], ["updated_at", "2015-11-02 20:28:05.392312"], ["file_ext", "png"], ["mime_type", "image/png"]]
756
975
   (0.1ms) RELEASE SAVEPOINT active_record_2
757
976
   (0.1ms) SAVEPOINT active_record_2
758
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-11-02 16:59:24.767066"], ["updated_at", "2015-11-02 16:59:24.767066"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
977
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-11-02 20:28:05.394693"], ["updated_at", "2015-11-02 20:28:05.394693"], ["file_ext", "png"], ["mime_type", "image/png"]]
759
978
   (0.1ms) RELEASE SAVEPOINT active_record_2
760
979
   (0.1ms) SAVEPOINT active_record_2
761
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-11-02 16:59:24.769266"], ["updated_at", "2015-11-02 16:59:24.769266"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
980
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-11-02 20:28:05.396875"], ["updated_at", "2015-11-02 20:28:05.396875"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
762
981
   (0.1ms) RELEASE SAVEPOINT active_record_2
763
982
   (0.1ms) SAVEPOINT active_record_2
764
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-11-02 16:59:24.771539"], ["updated_at", "2015-11-02 16:59:24.771539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
983
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-11-02 20:28:05.399156"], ["updated_at", "2015-11-02 20:28:05.399156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
765
984
   (0.1ms) RELEASE SAVEPOINT active_record_2
766
985
   (0.1ms) SAVEPOINT active_record_2
767
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-11-02 16:59:24.773552"], ["updated_at", "2015-11-02 16:59:24.773552"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
986
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-11-02 20:28:05.401447"], ["updated_at", "2015-11-02 20:28:05.401447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
768
987
   (0.1ms) RELEASE SAVEPOINT active_record_2
769
988
   (0.1ms) SAVEPOINT active_record_2
770
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-11-02 16:59:24.775739"], ["updated_at", "2015-11-02 16:59:24.775739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
989
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-11-02 20:28:05.403832"], ["updated_at", "2015-11-02 20:28:05.403832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
771
990
   (0.1ms) RELEASE SAVEPOINT active_record_2
772
991
   (0.1ms) SAVEPOINT active_record_2
773
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-11-02 16:59:24.777796"], ["updated_at", "2015-11-02 16:59:24.777796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
992
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-11-02 20:28:05.405989"], ["updated_at", "2015-11-02 20:28:05.405989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
774
993
   (0.1ms) RELEASE SAVEPOINT active_record_2
775
994
   (0.1ms) SAVEPOINT active_record_2
776
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-11-02 16:59:24.780048"], ["updated_at", "2015-11-02 16:59:24.780048"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
995
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-11-02 20:28:05.408186"], ["updated_at", "2015-11-02 20:28:05.408186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
777
996
   (0.1ms) RELEASE SAVEPOINT active_record_2
778
997
   (0.1ms) SAVEPOINT active_record_2
779
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-11-02 16:59:24.782189"], ["updated_at", "2015-11-02 16:59:24.782189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
998
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-11-02 20:28:05.410370"], ["updated_at", "2015-11-02 20:28:05.410370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
780
999
   (0.1ms) RELEASE SAVEPOINT active_record_2
781
1000
   (0.1ms) SAVEPOINT active_record_2
782
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-11-02 16:59:24.784264"], ["updated_at", "2015-11-02 16:59:24.784264"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-11-02 20:28:05.412597"], ["updated_at", "2015-11-02 20:28:05.412597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
783
1002
   (0.1ms) RELEASE SAVEPOINT active_record_2
784
1003
   (0.1ms) SAVEPOINT active_record_2
785
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-11-02 16:59:24.786272"], ["updated_at", "2015-11-02 16:59:24.786272"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1004
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-11-02 20:28:05.414869"], ["updated_at", "2015-11-02 20:28:05.414869"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
786
1005
   (0.1ms) RELEASE SAVEPOINT active_record_2
787
1006
   (0.1ms) SAVEPOINT active_record_2
788
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-11-02 16:59:24.788370"], ["updated_at", "2015-11-02 16:59:24.788370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1007
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-11-02 20:28:05.417133"], ["updated_at", "2015-11-02 20:28:05.417133"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
789
1008
   (0.1ms) RELEASE SAVEPOINT active_record_2
790
1009
   (0.1ms) SAVEPOINT active_record_2
791
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-11-02 16:59:24.790535"], ["updated_at", "2015-11-02 16:59:24.790535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1010
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-11-02 20:28:05.419278"], ["updated_at", "2015-11-02 20:28:05.419278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
792
1011
   (0.1ms) RELEASE SAVEPOINT active_record_2
793
1012
   (0.1ms) SAVEPOINT active_record_2
794
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-11-02 16:59:24.792558"], ["updated_at", "2015-11-02 16:59:24.792558"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1013
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-11-02 20:28:05.421464"], ["updated_at", "2015-11-02 20:28:05.421464"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
795
1014
   (0.1ms) RELEASE SAVEPOINT active_record_2
796
- Processing by PushType::WysiwygMediaController#index as JSON
797
- Parameters: {"filter"=>"file"}
798
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
799
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
800
- Completed 200 OK in 119ms (Views: 1.0ms | ActiveRecord: 0.6ms)
801
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
802
-  (0.1ms) ROLLBACK
803
-  (0.1ms) BEGIN
804
- ------------------------------------------------------------------------------------------
805
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
806
- ------------------------------------------------------------------------------------------
807
-  (0.1ms) SAVEPOINT active_record_1
808
-  (0.0ms) RELEASE SAVEPOINT active_record_1
809
-  (0.0ms) SAVEPOINT active_record_1
810
1015
   (0.1ms) SAVEPOINT active_record_2
811
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-11-02 16:59:24.916658"], ["updated_at", "2015-11-02 16:59:24.916658"], ["file_ext", "png"], ["mime_type", "image/png"]]
1016
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-11-02 20:28:05.423550"], ["updated_at", "2015-11-02 20:28:05.423550"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
812
1017
   (0.1ms) RELEASE SAVEPOINT active_record_2
1018
+ Processing by PushType::WysiwygMediaController#index as JSON
1019
+ Parameters: {"filter"=>"file", "page"=>2}
1020
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1021
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1022
+ Completed 200 OK in 119ms (Views: 0.4ms | ActiveRecord: 0.8ms)
1023
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1024
+  (0.1ms) ROLLBACK
1025
+  (0.1ms) BEGIN
1026
+ --------------------------------------------------------------------------------------
1027
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
1028
+ --------------------------------------------------------------------------------------
1029
+  (0.1ms) SAVEPOINT active_record_1
1030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1031
+  (0.1ms) SAVEPOINT active_record_1
813
1032
   (0.1ms) SAVEPOINT active_record_2
814
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "140"], ["created_at", "2015-11-02 16:59:24.919172"], ["updated_at", "2015-11-02 16:59:24.919172"], ["file_ext", "png"], ["mime_type", "image/png"]]
1033
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "142"], ["created_at", "2015-11-02 20:28:05.547652"], ["updated_at", "2015-11-02 20:28:05.547652"], ["file_ext", "png"], ["mime_type", "image/png"]]
815
1034
   (0.1ms) RELEASE SAVEPOINT active_record_2
816
1035
   (0.1ms) SAVEPOINT active_record_2
817
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "141"], ["created_at", "2015-11-02 16:59:24.921481"], ["updated_at", "2015-11-02 16:59:24.921481"], ["file_ext", "png"], ["mime_type", "image/png"]]
1036
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "143"], ["created_at", "2015-11-02 20:28:05.550356"], ["updated_at", "2015-11-02 20:28:05.550356"], ["file_ext", "png"], ["mime_type", "image/png"]]
818
1037
   (0.1ms) RELEASE SAVEPOINT active_record_2
819
1038
   (0.1ms) SAVEPOINT active_record_2
820
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "142"], ["created_at", "2015-11-02 16:59:24.923697"], ["updated_at", "2015-11-02 16:59:24.923697"], ["file_ext", "png"], ["mime_type", "image/png"]]
1039
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "144"], ["created_at", "2015-11-02 20:28:05.552777"], ["updated_at", "2015-11-02 20:28:05.552777"], ["file_ext", "png"], ["mime_type", "image/png"]]
821
1040
   (0.1ms) RELEASE SAVEPOINT active_record_2
822
1041
   (0.1ms) SAVEPOINT active_record_2
823
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "143"], ["created_at", "2015-11-02 16:59:24.925832"], ["updated_at", "2015-11-02 16:59:24.925832"], ["file_ext", "png"], ["mime_type", "image/png"]]
1042
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "145"], ["created_at", "2015-11-02 20:28:05.555251"], ["updated_at", "2015-11-02 20:28:05.555251"], ["file_ext", "png"], ["mime_type", "image/png"]]
824
1043
   (0.1ms) RELEASE SAVEPOINT active_record_2
825
1044
   (0.1ms) SAVEPOINT active_record_2
826
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-11-02 16:59:24.928046"], ["updated_at", "2015-11-02 16:59:24.928046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1045
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-11-02 20:28:05.557871"], ["updated_at", "2015-11-02 20:28:05.557871"], ["file_ext", "png"], ["mime_type", "image/png"]]
827
1046
   (0.1ms) RELEASE SAVEPOINT active_record_2
828
1047
   (0.1ms) SAVEPOINT active_record_2
829
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-11-02 16:59:24.930433"], ["updated_at", "2015-11-02 16:59:24.930433"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1048
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-11-02 20:28:05.560355"], ["updated_at", "2015-11-02 20:28:05.560355"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
830
1049
   (0.1ms) RELEASE SAVEPOINT active_record_2
831
1050
   (0.1ms) SAVEPOINT active_record_2
832
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-11-02 16:59:24.933058"], ["updated_at", "2015-11-02 16:59:24.933058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1051
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-11-02 20:28:05.562883"], ["updated_at", "2015-11-02 20:28:05.562883"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
833
1052
   (0.1ms) RELEASE SAVEPOINT active_record_2
834
1053
   (0.1ms) SAVEPOINT active_record_2
835
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-11-02 16:59:24.935386"], ["updated_at", "2015-11-02 16:59:24.935386"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1054
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-11-02 20:28:05.565037"], ["updated_at", "2015-11-02 20:28:05.565037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
836
1055
   (0.1ms) RELEASE SAVEPOINT active_record_2
837
1056
   (0.1ms) SAVEPOINT active_record_2
838
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-11-02 16:59:24.937538"], ["updated_at", "2015-11-02 16:59:24.937538"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1057
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-11-02 20:28:05.567289"], ["updated_at", "2015-11-02 20:28:05.567289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
839
1058
   (0.1ms) RELEASE SAVEPOINT active_record_2
840
1059
   (0.1ms) SAVEPOINT active_record_2
841
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-11-02 16:59:24.939669"], ["updated_at", "2015-11-02 16:59:24.939669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1060
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-11-02 20:28:05.569429"], ["updated_at", "2015-11-02 20:28:05.569429"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
842
1061
   (0.1ms) RELEASE SAVEPOINT active_record_2
843
1062
   (0.1ms) SAVEPOINT active_record_2
844
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-11-02 16:59:24.941962"], ["updated_at", "2015-11-02 16:59:24.941962"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1063
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-11-02 20:28:05.571474"], ["updated_at", "2015-11-02 20:28:05.571474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
845
1064
   (0.1ms) RELEASE SAVEPOINT active_record_2
846
1065
   (0.1ms) SAVEPOINT active_record_2
847
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-11-02 16:59:24.944401"], ["updated_at", "2015-11-02 16:59:24.944401"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1066
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-11-02 20:28:05.573543"], ["updated_at", "2015-11-02 20:28:05.573543"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
848
1067
   (0.1ms) RELEASE SAVEPOINT active_record_2
849
1068
   (0.1ms) SAVEPOINT active_record_2
850
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-11-02 16:59:24.946685"], ["updated_at", "2015-11-02 16:59:24.946685"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1069
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-11-02 20:28:05.575589"], ["updated_at", "2015-11-02 20:28:05.575589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
851
1070
   (0.1ms) RELEASE SAVEPOINT active_record_2
852
1071
   (0.1ms) SAVEPOINT active_record_2
853
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-11-02 16:59:24.948991"], ["updated_at", "2015-11-02 16:59:24.948991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1072
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-11-02 20:28:05.577736"], ["updated_at", "2015-11-02 20:28:05.577736"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
854
1073
   (0.1ms) RELEASE SAVEPOINT active_record_2
855
1074
   (0.1ms) SAVEPOINT active_record_2
856
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-11-02 16:59:24.951454"], ["updated_at", "2015-11-02 16:59:24.951454"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1075
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-11-02 20:28:05.579953"], ["updated_at", "2015-11-02 20:28:05.579953"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
857
1076
   (0.1ms) RELEASE SAVEPOINT active_record_2
858
1077
   (0.1ms) SAVEPOINT active_record_2
859
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-11-02 16:59:24.954118"], ["updated_at", "2015-11-02 16:59:24.954118"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1078
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-11-02 20:28:05.582200"], ["updated_at", "2015-11-02 20:28:05.582200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
860
1079
   (0.1ms) RELEASE SAVEPOINT active_record_2
861
1080
   (0.1ms) SAVEPOINT active_record_2
862
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-11-02 16:59:24.956591"], ["updated_at", "2015-11-02 16:59:24.956591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1081
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-11-02 20:28:05.584378"], ["updated_at", "2015-11-02 20:28:05.584378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
863
1082
   (0.1ms) RELEASE SAVEPOINT active_record_2
864
- Processing by PushType::WysiwygMediaController#index as JSON
865
- Parameters: {"filter"=>"file"}
866
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
867
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
868
- Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
869
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
870
-  (0.1ms) ROLLBACK
871
-  (0.1ms) BEGIN
872
- ------------------------------------------------------------------------------------------
873
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
874
- ------------------------------------------------------------------------------------------
875
-  (0.0ms) SAVEPOINT active_record_1
876
-  (0.0ms) RELEASE SAVEPOINT active_record_1
877
-  (0.0ms) SAVEPOINT active_record_1
878
1083
   (0.1ms) SAVEPOINT active_record_2
879
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-11-02 16:59:24.973586"], ["updated_at", "2015-11-02 16:59:24.973586"], ["file_ext", "png"], ["mime_type", "image/png"]]
1084
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-11-02 20:28:05.586470"], ["updated_at", "2015-11-02 20:28:05.586470"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
880
1085
   (0.1ms) RELEASE SAVEPOINT active_record_2
1086
+ Processing by PushType::WysiwygMediaController#index as JSON
1087
+ Parameters: {"filter"=>"file", "page"=>2}
1088
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1089
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1090
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1091
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1092
+  (0.1ms) ROLLBACK
1093
+  (0.1ms) BEGIN
1094
+ --------------------------------------------------------------------------------------
1095
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
1096
+ --------------------------------------------------------------------------------------
1097
+  (0.1ms) SAVEPOINT active_record_1
1098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1099
+  (0.0ms) SAVEPOINT active_record_1
881
1100
   (0.1ms) SAVEPOINT active_record_2
882
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-11-02 16:59:24.975900"], ["updated_at", "2015-11-02 16:59:24.975900"], ["file_ext", "png"], ["mime_type", "image/png"]]
1101
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-11-02 20:28:05.593637"], ["updated_at", "2015-11-02 20:28:05.593637"], ["file_ext", "png"], ["mime_type", "image/png"]]
883
1102
   (0.1ms) RELEASE SAVEPOINT active_record_2
884
1103
   (0.1ms) SAVEPOINT active_record_2
885
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-11-02 16:59:24.978077"], ["updated_at", "2015-11-02 16:59:24.978077"], ["file_ext", "png"], ["mime_type", "image/png"]]
1104
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-11-02 20:28:05.595821"], ["updated_at", "2015-11-02 20:28:05.595821"], ["file_ext", "png"], ["mime_type", "image/png"]]
886
1105
   (0.1ms) RELEASE SAVEPOINT active_record_2
887
1106
   (0.1ms) SAVEPOINT active_record_2
888
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-11-02 16:59:24.980387"], ["updated_at", "2015-11-02 16:59:24.980387"], ["file_ext", "png"], ["mime_type", "image/png"]]
1107
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-11-02 20:28:05.597871"], ["updated_at", "2015-11-02 20:28:05.597871"], ["file_ext", "png"], ["mime_type", "image/png"]]
889
1108
   (0.1ms) RELEASE SAVEPOINT active_record_2
890
1109
   (0.1ms) SAVEPOINT active_record_2
891
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-11-02 16:59:24.982693"], ["updated_at", "2015-11-02 16:59:24.982693"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1110
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-11-02 20:28:05.599889"], ["updated_at", "2015-11-02 20:28:05.599889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1111
+  (0.2ms) RELEASE SAVEPOINT active_record_2
893
1112
   (0.1ms) SAVEPOINT active_record_2
894
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-11-02 16:59:24.984966"], ["updated_at", "2015-11-02 16:59:24.984966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1113
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-11-02 20:28:05.602043"], ["updated_at", "2015-11-02 20:28:05.602043"], ["file_ext", "png"], ["mime_type", "image/png"]]
895
1114
   (0.1ms) RELEASE SAVEPOINT active_record_2
896
1115
   (0.1ms) SAVEPOINT active_record_2
897
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-11-02 16:59:24.987277"], ["updated_at", "2015-11-02 16:59:24.987277"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1116
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-11-02 20:28:05.604216"], ["updated_at", "2015-11-02 20:28:05.604216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
898
1117
   (0.1ms) RELEASE SAVEPOINT active_record_2
899
1118
   (0.1ms) SAVEPOINT active_record_2
900
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-11-02 16:59:24.989780"], ["updated_at", "2015-11-02 16:59:24.989780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1119
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-11-02 20:28:05.606186"], ["updated_at", "2015-11-02 20:28:05.606186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
901
1120
   (0.1ms) RELEASE SAVEPOINT active_record_2
902
1121
   (0.1ms) SAVEPOINT active_record_2
903
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-11-02 16:59:24.992359"], ["updated_at", "2015-11-02 16:59:24.992359"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1122
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-11-02 20:28:05.608292"], ["updated_at", "2015-11-02 20:28:05.608292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
904
1123
   (0.1ms) RELEASE SAVEPOINT active_record_2
905
1124
   (0.1ms) SAVEPOINT active_record_2
906
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-11-02 16:59:24.994750"], ["updated_at", "2015-11-02 16:59:24.994750"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1125
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-11-02 20:28:05.610329"], ["updated_at", "2015-11-02 20:28:05.610329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
907
1126
   (0.1ms) RELEASE SAVEPOINT active_record_2
908
1127
   (0.1ms) SAVEPOINT active_record_2
909
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-11-02 16:59:24.996851"], ["updated_at", "2015-11-02 16:59:24.996851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1128
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-11-02 20:28:05.612292"], ["updated_at", "2015-11-02 20:28:05.612292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
910
1129
   (0.1ms) RELEASE SAVEPOINT active_record_2
911
1130
   (0.1ms) SAVEPOINT active_record_2
912
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-11-02 16:59:24.999029"], ["updated_at", "2015-11-02 16:59:24.999029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1131
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-11-02 20:28:05.614623"], ["updated_at", "2015-11-02 20:28:05.614623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
913
1132
   (0.1ms) RELEASE SAVEPOINT active_record_2
914
1133
   (0.1ms) SAVEPOINT active_record_2
915
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-11-02 16:59:25.001186"], ["updated_at", "2015-11-02 16:59:25.001186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1134
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-11-02 20:28:05.616851"], ["updated_at", "2015-11-02 20:28:05.616851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
916
1135
   (0.1ms) RELEASE SAVEPOINT active_record_2
917
1136
   (0.1ms) SAVEPOINT active_record_2
918
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-11-02 16:59:25.003491"], ["updated_at", "2015-11-02 16:59:25.003491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1137
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-11-02 20:28:05.618866"], ["updated_at", "2015-11-02 20:28:05.618866"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
919
1138
   (0.1ms) RELEASE SAVEPOINT active_record_2
920
1139
   (0.1ms) SAVEPOINT active_record_2
921
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-11-02 16:59:25.005854"], ["updated_at", "2015-11-02 16:59:25.005854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1140
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-11-02 20:28:05.620873"], ["updated_at", "2015-11-02 20:28:05.620873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
922
1141
   (0.1ms) RELEASE SAVEPOINT active_record_2
923
1142
   (0.1ms) SAVEPOINT active_record_2
924
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-11-02 16:59:25.008350"], ["updated_at", "2015-11-02 16:59:25.008350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1143
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-11-02 20:28:05.622885"], ["updated_at", "2015-11-02 20:28:05.622885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
925
1144
   (0.1ms) RELEASE SAVEPOINT active_record_2
926
1145
   (0.1ms) SAVEPOINT active_record_2
927
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-11-02 16:59:25.010949"], ["updated_at", "2015-11-02 16:59:25.010949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1146
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-11-02 20:28:05.624939"], ["updated_at", "2015-11-02 20:28:05.624939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
928
1147
   (0.1ms) RELEASE SAVEPOINT active_record_2
929
1148
   (0.1ms) SAVEPOINT active_record_2
930
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-11-02 16:59:25.013415"], ["updated_at", "2015-11-02 16:59:25.013415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1149
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-11-02 20:28:05.627246"], ["updated_at", "2015-11-02 20:28:05.627246"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
931
1150
   (0.1ms) RELEASE SAVEPOINT active_record_2
932
- Processing by PushType::WysiwygMediaController#index as JSON
933
- Parameters: {"filter"=>"file"}
934
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
935
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
936
- Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
937
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
938
-  (0.1ms) ROLLBACK
939
-  (0.1ms) BEGIN
940
- ------------------------------------------------------------------------------------------
941
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
942
- ------------------------------------------------------------------------------------------
943
-  (0.0ms) SAVEPOINT active_record_1
944
-  (0.0ms) RELEASE SAVEPOINT active_record_1
945
-  (0.0ms) SAVEPOINT active_record_1
946
1151
   (0.1ms) SAVEPOINT active_record_2
947
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-11-02 16:59:25.028415"], ["updated_at", "2015-11-02 16:59:25.028415"], ["file_ext", "png"], ["mime_type", "image/png"]]
1152
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-11-02 20:28:05.629804"], ["updated_at", "2015-11-02 20:28:05.629804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
948
1153
   (0.1ms) RELEASE SAVEPOINT active_record_2
1154
+ Processing by PushType::WysiwygMediaController#index as JSON
1155
+ Parameters: {"filter"=>"file", "page"=>2}
1156
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1157
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1158
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1159
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1160
+  (0.2ms) ROLLBACK
1161
+  (0.1ms) BEGIN
1162
+ --------------------------------------------------------------------------------------
1163
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
1164
+ --------------------------------------------------------------------------------------
1165
+  (0.1ms) SAVEPOINT active_record_1
1166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1167
+  (0.1ms) SAVEPOINT active_record_1
949
1168
   (0.1ms) SAVEPOINT active_record_2
950
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-11-02 16:59:25.030530"], ["updated_at", "2015-11-02 16:59:25.030530"], ["file_ext", "png"], ["mime_type", "image/png"]]
1169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-11-02 20:28:05.637567"], ["updated_at", "2015-11-02 20:28:05.637567"], ["file_ext", "png"], ["mime_type", "image/png"]]
951
1170
   (0.1ms) RELEASE SAVEPOINT active_record_2
952
1171
   (0.1ms) SAVEPOINT active_record_2
953
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-11-02 16:59:25.032480"], ["updated_at", "2015-11-02 16:59:25.032480"], ["file_ext", "png"], ["mime_type", "image/png"]]
1172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-11-02 20:28:05.639720"], ["updated_at", "2015-11-02 20:28:05.639720"], ["file_ext", "png"], ["mime_type", "image/png"]]
954
1173
   (0.1ms) RELEASE SAVEPOINT active_record_2
955
1174
   (0.1ms) SAVEPOINT active_record_2
956
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-11-02 16:59:25.034438"], ["updated_at", "2015-11-02 16:59:25.034438"], ["file_ext", "png"], ["mime_type", "image/png"]]
1175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-11-02 20:28:05.642105"], ["updated_at", "2015-11-02 20:28:05.642105"], ["file_ext", "png"], ["mime_type", "image/png"]]
957
1176
   (0.1ms) RELEASE SAVEPOINT active_record_2
958
1177
   (0.1ms) SAVEPOINT active_record_2
959
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-11-02 16:59:25.036382"], ["updated_at", "2015-11-02 16:59:25.036382"], ["file_ext", "png"], ["mime_type", "image/png"]]
1178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-11-02 20:28:05.644359"], ["updated_at", "2015-11-02 20:28:05.644359"], ["file_ext", "png"], ["mime_type", "image/png"]]
960
1179
   (0.1ms) RELEASE SAVEPOINT active_record_2
961
1180
   (0.1ms) SAVEPOINT active_record_2
962
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-11-02 16:59:25.038370"], ["updated_at", "2015-11-02 16:59:25.038370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-11-02 20:28:05.646495"], ["updated_at", "2015-11-02 20:28:05.646495"], ["file_ext", "png"], ["mime_type", "image/png"]]
963
1182
   (0.1ms) RELEASE SAVEPOINT active_record_2
964
1183
   (0.1ms) SAVEPOINT active_record_2
965
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-11-02 16:59:25.040463"], ["updated_at", "2015-11-02 16:59:25.040463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1184
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-11-02 20:28:05.648632"], ["updated_at", "2015-11-02 20:28:05.648632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
1185
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
1186
   (0.1ms) SAVEPOINT active_record_2
968
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-11-02 16:59:25.042487"], ["updated_at", "2015-11-02 16:59:25.042487"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1187
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-11-02 20:28:05.650747"], ["updated_at", "2015-11-02 20:28:05.650747"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
1188
   (0.1ms) RELEASE SAVEPOINT active_record_2
970
1189
   (0.1ms) SAVEPOINT active_record_2
971
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-11-02 16:59:25.044581"], ["updated_at", "2015-11-02 16:59:25.044581"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1190
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-11-02 20:28:05.652897"], ["updated_at", "2015-11-02 20:28:05.652897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
972
1191
   (0.1ms) RELEASE SAVEPOINT active_record_2
973
1192
   (0.1ms) SAVEPOINT active_record_2
974
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-11-02 16:59:25.046638"], ["updated_at", "2015-11-02 16:59:25.046638"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-11-02 20:28:05.654939"], ["updated_at", "2015-11-02 20:28:05.654939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
975
1194
   (0.1ms) RELEASE SAVEPOINT active_record_2
976
1195
   (0.1ms) SAVEPOINT active_record_2
977
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-11-02 16:59:25.048615"], ["updated_at", "2015-11-02 16:59:25.048615"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1196
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-11-02 20:28:05.656991"], ["updated_at", "2015-11-02 20:28:05.656991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
978
1197
   (0.1ms) RELEASE SAVEPOINT active_record_2
979
1198
   (0.1ms) SAVEPOINT active_record_2
980
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-11-02 16:59:25.050758"], ["updated_at", "2015-11-02 16:59:25.050758"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1199
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-11-02 20:28:05.659115"], ["updated_at", "2015-11-02 20:28:05.659115"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
981
1200
   (0.1ms) RELEASE SAVEPOINT active_record_2
982
1201
   (0.1ms) SAVEPOINT active_record_2
983
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-11-02 16:59:25.052875"], ["updated_at", "2015-11-02 16:59:25.052875"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1202
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-11-02 20:28:05.661165"], ["updated_at", "2015-11-02 20:28:05.661165"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
984
1203
   (0.1ms) RELEASE SAVEPOINT active_record_2
985
1204
   (0.1ms) SAVEPOINT active_record_2
986
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-11-02 16:59:25.054820"], ["updated_at", "2015-11-02 16:59:25.054820"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1205
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-11-02 20:28:05.663305"], ["updated_at", "2015-11-02 20:28:05.663305"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
1206
   (0.1ms) RELEASE SAVEPOINT active_record_2
988
1207
   (0.1ms) SAVEPOINT active_record_2
989
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-11-02 16:59:25.056722"], ["updated_at", "2015-11-02 16:59:25.056722"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1208
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-11-02 20:28:05.665405"], ["updated_at", "2015-11-02 20:28:05.665405"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
990
1209
   (0.1ms) RELEASE SAVEPOINT active_record_2
991
1210
   (0.1ms) SAVEPOINT active_record_2
992
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-11-02 16:59:25.058723"], ["updated_at", "2015-11-02 16:59:25.058723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1211
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-11-02 20:28:05.667431"], ["updated_at", "2015-11-02 20:28:05.667431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
993
1212
   (0.1ms) RELEASE SAVEPOINT active_record_2
994
1213
   (0.1ms) SAVEPOINT active_record_2
995
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-11-02 16:59:25.060861"], ["updated_at", "2015-11-02 16:59:25.060861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1214
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-11-02 20:28:05.669732"], ["updated_at", "2015-11-02 20:28:05.669732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
996
1215
   (0.1ms) RELEASE SAVEPOINT active_record_2
997
1216
   (0.1ms) SAVEPOINT active_record_2
998
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-11-02 16:59:25.063173"], ["updated_at", "2015-11-02 16:59:25.063173"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1217
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-11-02 20:28:05.672041"], ["updated_at", "2015-11-02 20:28:05.672041"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
999
1218
   (0.1ms) RELEASE SAVEPOINT active_record_2
1219
+  (0.1ms) SAVEPOINT active_record_2
1220
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-11-02 20:28:05.674070"], ["updated_at", "2015-11-02 20:28:05.674070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1221
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1000
1222
  Processing by PushType::WysiwygMediaController#index as JSON
1001
- Parameters: {"filter"=>"file"}
1002
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1003
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1004
- Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1005
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1006
-  (0.1ms) ROLLBACK
1007
-  (0.1ms) BEGIN
1008
- --------------------------------------------------------------------------------------
1009
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
1010
- --------------------------------------------------------------------------------------
1011
-  (0.0ms) SAVEPOINT active_record_1
1012
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
-  (0.0ms) SAVEPOINT active_record_1
1014
-  (0.1ms) SAVEPOINT active_record_2
1015
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-11-02 16:59:25.078698"], ["updated_at", "2015-11-02 16:59:25.078698"], ["file_ext", "png"], ["mime_type", "image/png"]]
1016
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1223
+ Parameters: {"filter"=>"file", "page"=>2}
1224
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1225
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1226
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1227
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1228
+  (0.1ms) ROLLBACK
1229
+  (0.1ms) BEGIN
1230
+ ------------------------------------------------------------------------------------------
1231
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1232
+ ------------------------------------------------------------------------------------------
1233
+  (0.0ms) SAVEPOINT active_record_1
1234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.0ms) SAVEPOINT active_record_1
1017
1236
   (0.1ms) SAVEPOINT active_record_2
1018
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-11-02 16:59:25.080856"], ["updated_at", "2015-11-02 16:59:25.080856"], ["file_ext", "png"], ["mime_type", "image/png"]]
1237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-11-02 20:28:05.682165"], ["updated_at", "2015-11-02 20:28:05.682165"], ["file_ext", "png"], ["mime_type", "image/png"]]
1019
1238
   (0.1ms) RELEASE SAVEPOINT active_record_2
1020
1239
   (0.1ms) SAVEPOINT active_record_2
1021
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-11-02 16:59:25.083023"], ["updated_at", "2015-11-02 16:59:25.083023"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-11-02 20:28:05.684381"], ["updated_at", "2015-11-02 20:28:05.684381"], ["file_ext", "png"], ["mime_type", "image/png"]]
1022
1241
   (0.1ms) RELEASE SAVEPOINT active_record_2
1023
1242
   (0.1ms) SAVEPOINT active_record_2
1024
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-11-02 16:59:25.085054"], ["updated_at", "2015-11-02 16:59:25.085054"], ["file_ext", "png"], ["mime_type", "image/png"]]
1243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-11-02 20:28:05.686441"], ["updated_at", "2015-11-02 20:28:05.686441"], ["file_ext", "png"], ["mime_type", "image/png"]]
1025
1244
   (0.1ms) RELEASE SAVEPOINT active_record_2
1026
1245
   (0.1ms) SAVEPOINT active_record_2
1027
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-11-02 16:59:25.087024"], ["updated_at", "2015-11-02 16:59:25.087024"], ["file_ext", "png"], ["mime_type", "image/png"]]
1246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-11-02 20:28:05.688539"], ["updated_at", "2015-11-02 20:28:05.688539"], ["file_ext", "png"], ["mime_type", "image/png"]]
1028
1247
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
1248
   (0.1ms) SAVEPOINT active_record_2
1030
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-11-02 16:59:25.088997"], ["updated_at", "2015-11-02 16:59:25.088997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-11-02 20:28:05.690546"], ["updated_at", "2015-11-02 20:28:05.690546"], ["file_ext", "png"], ["mime_type", "image/png"]]
1031
1250
   (0.1ms) RELEASE SAVEPOINT active_record_2
1032
1251
   (0.1ms) SAVEPOINT active_record_2
1033
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-11-02 16:59:25.090939"], ["updated_at", "2015-11-02 16:59:25.090939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-11-02 20:28:05.692679"], ["updated_at", "2015-11-02 20:28:05.692679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
1253
   (0.1ms) RELEASE SAVEPOINT active_record_2
1035
1254
   (0.1ms) SAVEPOINT active_record_2
1036
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-11-02 16:59:25.092887"], ["updated_at", "2015-11-02 16:59:25.092887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-11-02 20:28:05.694780"], ["updated_at", "2015-11-02 20:28:05.694780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
1256
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
1257
   (0.1ms) SAVEPOINT active_record_2
1039
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-11-02 16:59:25.095029"], ["updated_at", "2015-11-02 16:59:25.095029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-11-02 20:28:05.696818"], ["updated_at", "2015-11-02 20:28:05.696818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
1259
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
1260
   (0.1ms) SAVEPOINT active_record_2
1042
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-11-02 16:59:25.097046"], ["updated_at", "2015-11-02 16:59:25.097046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1261
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-11-02 20:28:05.698898"], ["updated_at", "2015-11-02 20:28:05.698898"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1043
1262
   (0.1ms) RELEASE SAVEPOINT active_record_2
1044
1263
   (0.1ms) SAVEPOINT active_record_2
1045
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-11-02 16:59:25.099087"], ["updated_at", "2015-11-02 16:59:25.099087"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-11-02 20:28:05.700909"], ["updated_at", "2015-11-02 20:28:05.700909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1046
1265
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
1266
   (0.1ms) SAVEPOINT active_record_2
1048
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-11-02 16:59:25.101025"], ["updated_at", "2015-11-02 16:59:25.101025"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-11-02 20:28:05.703034"], ["updated_at", "2015-11-02 20:28:05.703034"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1049
1268
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
1269
   (0.1ms) SAVEPOINT active_record_2
1051
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-11-02 16:59:25.102956"], ["updated_at", "2015-11-02 16:59:25.102956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1270
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-11-02 20:28:05.705095"], ["updated_at", "2015-11-02 20:28:05.705095"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
1271
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
1272
   (0.1ms) SAVEPOINT active_record_2
1054
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-11-02 16:59:25.104886"], ["updated_at", "2015-11-02 16:59:25.104886"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1273
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-11-02 20:28:05.707194"], ["updated_at", "2015-11-02 20:28:05.707194"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
1274
   (0.1ms) RELEASE SAVEPOINT active_record_2
1056
1275
   (0.1ms) SAVEPOINT active_record_2
1057
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-11-02 16:59:25.106928"], ["updated_at", "2015-11-02 16:59:25.106928"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-11-02 20:28:05.709211"], ["updated_at", "2015-11-02 20:28:05.709211"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
1277
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
1278
   (0.1ms) SAVEPOINT active_record_2
1060
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-11-02 16:59:25.108885"], ["updated_at", "2015-11-02 16:59:25.108885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-11-02 20:28:05.711341"], ["updated_at", "2015-11-02 20:28:05.711341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
1281
   (0.1ms) SAVEPOINT active_record_2
1063
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-11-02 16:59:25.111253"], ["updated_at", "2015-11-02 16:59:25.111253"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-11-02 20:28:05.713348"], ["updated_at", "2015-11-02 20:28:05.713348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
1283
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
1284
   (0.1ms) SAVEPOINT active_record_2
1066
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-11-02 16:59:25.113609"], ["updated_at", "2015-11-02 16:59:25.113609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-11-02 20:28:05.715669"], ["updated_at", "2015-11-02 20:28:05.715669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
1286
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
- Processing by PushType::WysiwygMediaController#index as JSON
1069
- Parameters: {"filter"=>"file", "page"=>2}
1070
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1071
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1072
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1073
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1074
-  (0.1ms) ROLLBACK
1075
-  (0.1ms) BEGIN
1076
- --------------------------------------------------------------------------------------
1077
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
1078
- --------------------------------------------------------------------------------------
1079
-  (0.1ms) SAVEPOINT active_record_1
1080
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1081
-  (0.0ms) SAVEPOINT active_record_1
1082
1287
   (0.1ms) SAVEPOINT active_record_2
1083
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2015-11-02 16:59:25.120879"], ["updated_at", "2015-11-02 16:59:25.120879"], ["file_ext", "png"], ["mime_type", "image/png"]]
1288
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-11-02 20:28:05.717862"], ["updated_at", "2015-11-02 20:28:05.717862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1084
1289
   (0.1ms) RELEASE SAVEPOINT active_record_2
1290
+ Processing by PushType::WysiwygMediaController#index as JSON
1291
+ Parameters: {"filter"=>"file"}
1292
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1293
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1294
+ Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1295
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
+  (0.1ms) ROLLBACK
1297
+  (0.1ms) BEGIN
1298
+ ------------------------------------------------------------------------------------------
1299
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1300
+ ------------------------------------------------------------------------------------------
1301
+  (0.0ms) SAVEPOINT active_record_1
1302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1303
+  (0.0ms) SAVEPOINT active_record_1
1085
1304
   (0.1ms) SAVEPOINT active_record_2
1086
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-11-02 16:59:25.122988"], ["updated_at", "2015-11-02 16:59:25.122988"], ["file_ext", "png"], ["mime_type", "image/png"]]
1305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-11-02 20:28:05.732693"], ["updated_at", "2015-11-02 20:28:05.732693"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
1306
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
1307
   (0.1ms) SAVEPOINT active_record_2
1089
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-11-02 16:59:25.125106"], ["updated_at", "2015-11-02 16:59:25.125106"], ["file_ext", "png"], ["mime_type", "image/png"]]
1308
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-11-02 20:28:05.734978"], ["updated_at", "2015-11-02 20:28:05.734978"], ["file_ext", "png"], ["mime_type", "image/png"]]
1090
1309
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
1310
   (0.1ms) SAVEPOINT active_record_2
1092
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-11-02 16:59:25.127089"], ["updated_at", "2015-11-02 16:59:25.127089"], ["file_ext", "png"], ["mime_type", "image/png"]]
1311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-11-02 20:28:05.751410"], ["updated_at", "2015-11-02 20:28:05.751410"], ["file_ext", "png"], ["mime_type", "image/png"]]
1093
1312
   (0.1ms) RELEASE SAVEPOINT active_record_2
1094
1313
   (0.1ms) SAVEPOINT active_record_2
1095
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-11-02 16:59:25.164668"], ["updated_at", "2015-11-02 16:59:25.164668"], ["file_ext", "png"], ["mime_type", "image/png"]]
1314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-11-02 20:28:05.754005"], ["updated_at", "2015-11-02 20:28:05.754005"], ["file_ext", "png"], ["mime_type", "image/png"]]
1096
1315
   (0.1ms) RELEASE SAVEPOINT active_record_2
1097
1316
   (0.1ms) SAVEPOINT active_record_2
1098
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-11-02 16:59:25.167156"], ["updated_at", "2015-11-02 16:59:25.167156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-11-02 20:28:05.756215"], ["updated_at", "2015-11-02 20:28:05.756215"], ["file_ext", "png"], ["mime_type", "image/png"]]
1099
1318
   (0.1ms) RELEASE SAVEPOINT active_record_2
1100
1319
   (0.1ms) SAVEPOINT active_record_2
1101
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-11-02 16:59:25.169499"], ["updated_at", "2015-11-02 16:59:25.169499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-11-02 20:28:05.758518"], ["updated_at", "2015-11-02 20:28:05.758518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1102
1321
   (0.1ms) RELEASE SAVEPOINT active_record_2
1103
1322
   (0.1ms) SAVEPOINT active_record_2
1104
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-11-02 16:59:25.171886"], ["updated_at", "2015-11-02 16:59:25.171886"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-11-02 20:28:05.760811"], ["updated_at", "2015-11-02 20:28:05.760811"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1105
1324
   (0.1ms) RELEASE SAVEPOINT active_record_2
1106
1325
   (0.1ms) SAVEPOINT active_record_2
1107
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-11-02 16:59:25.174084"], ["updated_at", "2015-11-02 16:59:25.174084"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1326
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-11-02 20:28:05.763036"], ["updated_at", "2015-11-02 20:28:05.763036"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1108
1327
   (0.1ms) RELEASE SAVEPOINT active_record_2
1109
1328
   (0.1ms) SAVEPOINT active_record_2
1110
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-11-02 16:59:25.176389"], ["updated_at", "2015-11-02 16:59:25.176389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1329
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-11-02 20:28:05.765324"], ["updated_at", "2015-11-02 20:28:05.765324"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1111
1330
   (0.1ms) RELEASE SAVEPOINT active_record_2
1112
1331
   (0.1ms) SAVEPOINT active_record_2
1113
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-11-02 16:59:25.178873"], ["updated_at", "2015-11-02 16:59:25.178873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1332
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-11-02 20:28:05.767679"], ["updated_at", "2015-11-02 20:28:05.767679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1114
1333
   (0.1ms) RELEASE SAVEPOINT active_record_2
1115
1334
   (0.1ms) SAVEPOINT active_record_2
1116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-11-02 16:59:25.181225"], ["updated_at", "2015-11-02 16:59:25.181225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1335
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-11-02 20:28:05.770310"], ["updated_at", "2015-11-02 20:28:05.770310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1117
1336
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
1337
   (0.1ms) SAVEPOINT active_record_2
1119
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-11-02 16:59:25.183524"], ["updated_at", "2015-11-02 16:59:25.183524"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1338
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-11-02 20:28:05.772898"], ["updated_at", "2015-11-02 20:28:05.772898"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1120
1339
   (0.1ms) RELEASE SAVEPOINT active_record_2
1121
1340
   (0.1ms) SAVEPOINT active_record_2
1122
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-11-02 16:59:25.185854"], ["updated_at", "2015-11-02 16:59:25.185854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1341
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-11-02 20:28:05.775502"], ["updated_at", "2015-11-02 20:28:05.775502"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1123
1342
   (0.1ms) RELEASE SAVEPOINT active_record_2
1124
1343
   (0.1ms) SAVEPOINT active_record_2
1125
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-11-02 16:59:25.188549"], ["updated_at", "2015-11-02 16:59:25.188549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1344
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-11-02 20:28:05.778096"], ["updated_at", "2015-11-02 20:28:05.778096"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1126
1345
   (0.1ms) RELEASE SAVEPOINT active_record_2
1127
1346
   (0.1ms) SAVEPOINT active_record_2
1128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-11-02 16:59:25.191104"], ["updated_at", "2015-11-02 16:59:25.191104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-11-02 20:28:05.780510"], ["updated_at", "2015-11-02 20:28:05.780510"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1129
1348
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
1349
   (0.1ms) SAVEPOINT active_record_2
1131
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-11-02 16:59:25.193576"], ["updated_at", "2015-11-02 16:59:25.193576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1350
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-11-02 20:28:05.783097"], ["updated_at", "2015-11-02 20:28:05.783097"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1132
1351
   (0.2ms) RELEASE SAVEPOINT active_record_2
1133
1352
   (0.1ms) SAVEPOINT active_record_2
1134
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-11-02 16:59:25.196144"], ["updated_at", "2015-11-02 16:59:25.196144"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1353
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-11-02 20:28:05.785550"], ["updated_at", "2015-11-02 20:28:05.785550"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1135
1354
   (0.1ms) RELEASE SAVEPOINT active_record_2
1136
- Processing by PushType::WysiwygMediaController#index as JSON
1137
- Parameters: {"filter"=>"file", "page"=>2}
1138
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1139
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1140
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1141
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1142
-  (0.1ms) ROLLBACK
1143
-  (0.1ms) BEGIN
1144
- --------------------------------------------------------------------------------------
1145
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
1146
- --------------------------------------------------------------------------------------
1147
-  (0.1ms) SAVEPOINT active_record_1
1148
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
-  (0.0ms) SAVEPOINT active_record_1
1150
1355
   (0.1ms) SAVEPOINT active_record_2
1151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-11-02 16:59:25.205617"], ["updated_at", "2015-11-02 16:59:25.205617"], ["file_ext", "png"], ["mime_type", "image/png"]]
1356
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-11-02 20:28:05.787805"], ["updated_at", "2015-11-02 20:28:05.787805"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1152
1357
   (0.1ms) RELEASE SAVEPOINT active_record_2
1358
+ Processing by PushType::WysiwygMediaController#index as JSON
1359
+ Parameters: {"filter"=>"file"}
1360
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1361
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1362
+ Completed 200 OK in 15ms (Views: 1.2ms | ActiveRecord: 0.6ms)
1363
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1364
+  (0.1ms) ROLLBACK
1365
+  (0.1ms) BEGIN
1366
+ ------------------------------------------------------------------------------------------
1367
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1368
+ ------------------------------------------------------------------------------------------
1369
+  (0.1ms) SAVEPOINT active_record_1
1370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1371
+  (0.0ms) SAVEPOINT active_record_1
1153
1372
   (0.1ms) SAVEPOINT active_record_2
1154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-11-02 16:59:25.208052"], ["updated_at", "2015-11-02 16:59:25.208052"], ["file_ext", "png"], ["mime_type", "image/png"]]
1373
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-11-02 20:28:05.807816"], ["updated_at", "2015-11-02 20:28:05.807816"], ["file_ext", "png"], ["mime_type", "image/png"]]
1155
1374
   (0.1ms) RELEASE SAVEPOINT active_record_2
1156
1375
   (0.1ms) SAVEPOINT active_record_2
1157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-11-02 16:59:25.210209"], ["updated_at", "2015-11-02 16:59:25.210209"], ["file_ext", "png"], ["mime_type", "image/png"]]
1376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-11-02 20:28:05.810458"], ["updated_at", "2015-11-02 20:28:05.810458"], ["file_ext", "png"], ["mime_type", "image/png"]]
1158
1377
   (0.1ms) RELEASE SAVEPOINT active_record_2
1159
1378
   (0.1ms) SAVEPOINT active_record_2
1160
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-11-02 16:59:25.212882"], ["updated_at", "2015-11-02 16:59:25.212882"], ["file_ext", "png"], ["mime_type", "image/png"]]
1161
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1162
-  (0.1ms) SAVEPOINT active_record_2
1163
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-11-02 16:59:25.215327"], ["updated_at", "2015-11-02 16:59:25.215327"], ["file_ext", "png"], ["mime_type", "image/png"]]
1164
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1165
-  (0.1ms) SAVEPOINT active_record_2
1166
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "234"], ["created_at", "2015-11-02 16:59:25.217693"], ["updated_at", "2015-11-02 16:59:25.217693"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-11-02 20:28:05.812905"], ["updated_at", "2015-11-02 20:28:05.812905"], ["file_ext", "png"], ["mime_type", "image/png"]]
1167
1380
   (0.1ms) RELEASE SAVEPOINT active_record_2
1168
1381
   (0.1ms) SAVEPOINT active_record_2
1169
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-11-02 16:59:25.292463"], ["updated_at", "2015-11-02 16:59:25.292463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-11-02 20:28:05.815202"], ["updated_at", "2015-11-02 20:28:05.815202"], ["file_ext", "png"], ["mime_type", "image/png"]]
1170
1383
   (0.1ms) RELEASE SAVEPOINT active_record_2
1171
1384
   (0.1ms) SAVEPOINT active_record_2
1172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-11-02 16:59:25.296657"], ["updated_at", "2015-11-02 16:59:25.296657"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-11-02 20:28:05.817653"], ["updated_at", "2015-11-02 20:28:05.817653"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
1386
   (0.1ms) RELEASE SAVEPOINT active_record_2
1174
1387
   (0.1ms) SAVEPOINT active_record_2
1175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-11-02 16:59:25.299741"], ["updated_at", "2015-11-02 16:59:25.299741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-11-02 20:28:05.820142"], ["updated_at", "2015-11-02 20:28:05.820142"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1176
1389
   (0.1ms) RELEASE SAVEPOINT active_record_2
1177
1390
   (0.1ms) SAVEPOINT active_record_2
1178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-11-02 16:59:25.301917"], ["updated_at", "2015-11-02 16:59:25.301917"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1391
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-11-02 20:28:05.822867"], ["updated_at", "2015-11-02 20:28:05.822867"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1179
1392
   (0.1ms) RELEASE SAVEPOINT active_record_2
1180
1393
   (0.1ms) SAVEPOINT active_record_2
1181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-11-02 16:59:25.304148"], ["updated_at", "2015-11-02 16:59:25.304148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1394
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-11-02 20:28:05.825377"], ["updated_at", "2015-11-02 20:28:05.825377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1182
1395
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
1396
   (0.1ms) SAVEPOINT active_record_2
1184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-11-02 16:59:25.306325"], ["updated_at", "2015-11-02 16:59:25.306325"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1397
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-11-02 20:28:05.827929"], ["updated_at", "2015-11-02 20:28:05.827929"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1185
1398
   (0.1ms) RELEASE SAVEPOINT active_record_2
1186
1399
   (0.1ms) SAVEPOINT active_record_2
1187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-11-02 16:59:25.308394"], ["updated_at", "2015-11-02 16:59:25.308394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1400
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-11-02 20:28:05.830608"], ["updated_at", "2015-11-02 20:28:05.830608"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1188
1401
   (0.1ms) RELEASE SAVEPOINT active_record_2
1189
1402
   (0.1ms) SAVEPOINT active_record_2
1190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-11-02 16:59:25.310618"], ["updated_at", "2015-11-02 16:59:25.310618"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1403
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-11-02 20:28:05.833088"], ["updated_at", "2015-11-02 20:28:05.833088"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1191
1404
   (0.1ms) RELEASE SAVEPOINT active_record_2
1192
1405
   (0.1ms) SAVEPOINT active_record_2
1193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-11-02 16:59:25.312802"], ["updated_at", "2015-11-02 16:59:25.312802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1406
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-11-02 20:28:05.835301"], ["updated_at", "2015-11-02 20:28:05.835301"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1194
1407
   (0.1ms) RELEASE SAVEPOINT active_record_2
1195
1408
   (0.1ms) SAVEPOINT active_record_2
1196
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-11-02 16:59:25.314902"], ["updated_at", "2015-11-02 16:59:25.314902"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1409
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-11-02 20:28:05.837369"], ["updated_at", "2015-11-02 20:28:05.837369"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1197
1410
   (0.1ms) RELEASE SAVEPOINT active_record_2
1198
1411
   (0.1ms) SAVEPOINT active_record_2
1199
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-11-02 16:59:25.317148"], ["updated_at", "2015-11-02 16:59:25.317148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1412
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-11-02 20:28:05.839691"], ["updated_at", "2015-11-02 20:28:05.839691"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1200
1413
   (0.1ms) RELEASE SAVEPOINT active_record_2
1201
1414
   (0.1ms) SAVEPOINT active_record_2
1202
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-11-02 16:59:25.319302"], ["updated_at", "2015-11-02 16:59:25.319302"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1415
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-11-02 20:28:05.842058"], ["updated_at", "2015-11-02 20:28:05.842058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1203
1416
   (0.1ms) RELEASE SAVEPOINT active_record_2
1204
- Processing by PushType::WysiwygMediaController#index as JSON
1205
- Parameters: {"filter"=>"file", "page"=>2}
1206
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1207
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1208
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1209
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1210
-  (0.1ms) ROLLBACK
1211
-  (0.1ms) BEGIN
1212
- --------------------------------------------------------------------------------------
1213
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
1214
- --------------------------------------------------------------------------------------
1215
-  (0.0ms) SAVEPOINT active_record_1
1216
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1217
-  (0.0ms) SAVEPOINT active_record_1
1218
1417
   (0.1ms) SAVEPOINT active_record_2
1219
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-11-02 16:59:25.326718"], ["updated_at", "2015-11-02 16:59:25.326718"], ["file_ext", "png"], ["mime_type", "image/png"]]
1418
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-11-02 20:28:05.844291"], ["updated_at", "2015-11-02 20:28:05.844291"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1220
1419
   (0.1ms) RELEASE SAVEPOINT active_record_2
1221
1420
   (0.1ms) SAVEPOINT active_record_2
1222
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-11-02 16:59:25.328965"], ["updated_at", "2015-11-02 16:59:25.328965"], ["file_ext", "png"], ["mime_type", "image/png"]]
1421
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-11-02 20:28:05.846724"], ["updated_at", "2015-11-02 20:28:05.846724"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1223
1422
   (0.1ms) RELEASE SAVEPOINT active_record_2
1224
1423
   (0.1ms) SAVEPOINT active_record_2
1225
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-11-02 16:59:25.331196"], ["updated_at", "2015-11-02 16:59:25.331196"], ["file_ext", "png"], ["mime_type", "image/png"]]
1424
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-11-02 20:28:05.848797"], ["updated_at", "2015-11-02 20:28:05.848797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1226
1425
   (0.1ms) RELEASE SAVEPOINT active_record_2
1426
+ Processing by PushType::WysiwygMediaController#index as JSON
1427
+ Parameters: {"filter"=>"file"}
1428
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1429
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1430
+ Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.6ms)
1431
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1432
+  (0.1ms) ROLLBACK
1433
+  (0.1ms) BEGIN
1434
+ ------------------------------------------------------------------------------------------
1435
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1436
+ ------------------------------------------------------------------------------------------
1437
+  (0.0ms) SAVEPOINT active_record_1
1438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1439
+  (0.0ms) SAVEPOINT active_record_1
1227
1440
   (0.1ms) SAVEPOINT active_record_2
1228
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-11-02 16:59:25.333293"], ["updated_at", "2015-11-02 16:59:25.333293"], ["file_ext", "png"], ["mime_type", "image/png"]]
1441
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-11-02 20:28:05.864139"], ["updated_at", "2015-11-02 20:28:05.864139"], ["file_ext", "png"], ["mime_type", "image/png"]]
1229
1442
   (0.1ms) RELEASE SAVEPOINT active_record_2
1230
1443
   (0.1ms) SAVEPOINT active_record_2
1231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-11-02 16:59:25.335362"], ["updated_at", "2015-11-02 16:59:25.335362"], ["file_ext", "png"], ["mime_type", "image/png"]]
1444
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-11-02 20:28:05.866365"], ["updated_at", "2015-11-02 20:28:05.866365"], ["file_ext", "png"], ["mime_type", "image/png"]]
1232
1445
   (0.1ms) RELEASE SAVEPOINT active_record_2
1233
1446
   (0.1ms) SAVEPOINT active_record_2
1234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "252"], ["created_at", "2015-11-02 16:59:25.337472"], ["updated_at", "2015-11-02 16:59:25.337472"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1447
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-11-02 20:28:05.868487"], ["updated_at", "2015-11-02 20:28:05.868487"], ["file_ext", "png"], ["mime_type", "image/png"]]
1235
1448
   (0.1ms) RELEASE SAVEPOINT active_record_2
1236
1449
   (0.1ms) SAVEPOINT active_record_2
1237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "253"], ["created_at", "2015-11-02 16:59:25.339515"], ["updated_at", "2015-11-02 16:59:25.339515"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-11-02 20:28:05.870505"], ["updated_at", "2015-11-02 20:28:05.870505"], ["file_ext", "png"], ["mime_type", "image/png"]]
1238
1451
   (0.1ms) RELEASE SAVEPOINT active_record_2
1239
1452
   (0.1ms) SAVEPOINT active_record_2
1240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "254"], ["created_at", "2015-11-02 16:59:25.341630"], ["updated_at", "2015-11-02 16:59:25.341630"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1453
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-11-02 20:28:05.872702"], ["updated_at", "2015-11-02 20:28:05.872702"], ["file_ext", "png"], ["mime_type", "image/png"]]
1241
1454
   (0.1ms) RELEASE SAVEPOINT active_record_2
1242
1455
   (0.1ms) SAVEPOINT active_record_2
1243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-11-02 16:59:25.343675"], ["updated_at", "2015-11-02 16:59:25.343675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1456
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-11-02 20:28:05.875076"], ["updated_at", "2015-11-02 20:28:05.875076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1244
1457
   (0.1ms) RELEASE SAVEPOINT active_record_2
1245
1458
   (0.1ms) SAVEPOINT active_record_2
1246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-11-02 16:59:25.345839"], ["updated_at", "2015-11-02 16:59:25.345839"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-11-02 20:28:05.877237"], ["updated_at", "2015-11-02 20:28:05.877237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1247
1460
   (0.1ms) RELEASE SAVEPOINT active_record_2
1248
1461
   (0.1ms) SAVEPOINT active_record_2
1249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-11-02 16:59:25.347977"], ["updated_at", "2015-11-02 16:59:25.347977"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1462
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-11-02 20:28:05.879249"], ["updated_at", "2015-11-02 20:28:05.879249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1250
1463
   (0.1ms) RELEASE SAVEPOINT active_record_2
1251
1464
   (0.1ms) SAVEPOINT active_record_2
1252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-11-02 16:59:25.350135"], ["updated_at", "2015-11-02 16:59:25.350135"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1465
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-11-02 20:28:05.881467"], ["updated_at", "2015-11-02 20:28:05.881467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1253
1466
   (0.1ms) RELEASE SAVEPOINT active_record_2
1254
1467
   (0.1ms) SAVEPOINT active_record_2
1255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-11-02 16:59:25.352227"], ["updated_at", "2015-11-02 16:59:25.352227"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1468
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-11-02 20:28:05.883540"], ["updated_at", "2015-11-02 20:28:05.883540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1256
1469
   (0.1ms) RELEASE SAVEPOINT active_record_2
1257
1470
   (0.1ms) SAVEPOINT active_record_2
1258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-11-02 16:59:25.354719"], ["updated_at", "2015-11-02 16:59:25.354719"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-11-02 20:28:05.885753"], ["updated_at", "2015-11-02 20:28:05.885753"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1259
1472
   (0.1ms) RELEASE SAVEPOINT active_record_2
1260
1473
   (0.1ms) SAVEPOINT active_record_2
1261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-11-02 16:59:25.356866"], ["updated_at", "2015-11-02 16:59:25.356866"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-11-02 20:28:05.887915"], ["updated_at", "2015-11-02 20:28:05.887915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1262
1475
   (0.1ms) RELEASE SAVEPOINT active_record_2
1263
1476
   (0.1ms) SAVEPOINT active_record_2
1264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-11-02 16:59:25.358975"], ["updated_at", "2015-11-02 16:59:25.358975"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1477
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-11-02 20:28:05.889964"], ["updated_at", "2015-11-02 20:28:05.889964"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1265
1478
   (0.1ms) RELEASE SAVEPOINT active_record_2
1266
1479
   (0.1ms) SAVEPOINT active_record_2
1267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-11-02 16:59:25.361255"], ["updated_at", "2015-11-02 16:59:25.361255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1480
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-11-02 20:28:05.892171"], ["updated_at", "2015-11-02 20:28:05.892171"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1268
1481
   (0.1ms) RELEASE SAVEPOINT active_record_2
1269
1482
   (0.1ms) SAVEPOINT active_record_2
1270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-11-02 16:59:25.363476"], ["updated_at", "2015-11-02 16:59:25.363476"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1483
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-11-02 20:28:05.894744"], ["updated_at", "2015-11-02 20:28:05.894744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1271
1484
   (0.1ms) RELEASE SAVEPOINT active_record_2
1272
- Processing by PushType::WysiwygMediaController#index as JSON
1273
- Parameters: {"filter"=>"file", "page"=>2}
1274
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1275
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1276
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1277
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1278
-  (0.1ms) ROLLBACK
1279
-  (0.1ms) BEGIN
1280
- --------------------------------------------------------------------------------------------
1281
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
1282
- --------------------------------------------------------------------------------------------
1283
-  (0.1ms) SAVEPOINT active_record_1
1284
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1285
-  (0.0ms) SAVEPOINT active_record_1
1286
- Processing by PushType::WysiwygMediaController#create as JSON
1287
- Parameters: {"asset"=>{}}
1288
1485
   (0.1ms) SAVEPOINT active_record_2
1289
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1290
- Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1291
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1292
-  (0.1ms) ROLLBACK
1293
-  (0.1ms) BEGIN
1294
- --------------------------------------------------------------------------------------------
1295
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
1296
- --------------------------------------------------------------------------------------------
1297
-  (0.0ms) SAVEPOINT active_record_1
1298
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1299
-  (0.0ms) SAVEPOINT active_record_1
1300
- Processing by PushType::WysiwygMediaController#create as JSON
1301
- Parameters: {"asset"=>{}}
1302
-  (0.1ms) SAVEPOINT active_record_2
1303
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1304
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1305
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1306
-  (0.1ms) ROLLBACK
1307
-  (0.1ms) BEGIN
1308
- --------------------------------------------------------------------------------------------
1309
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
1310
- --------------------------------------------------------------------------------------------
1311
-  (0.1ms) SAVEPOINT active_record_1
1312
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1313
-  (0.0ms) SAVEPOINT active_record_1
1314
- Processing by PushType::WysiwygMediaController#create as JSON
1315
- Parameters: {"asset"=>{}}
1316
-  (0.1ms) SAVEPOINT active_record_2
1317
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1318
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1319
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1320
-  (0.1ms) ROLLBACK
1321
-  (0.1ms) BEGIN
1322
- -----------------------------------------------------------------------------------------
1323
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
1324
- -----------------------------------------------------------------------------------------
1325
-  (0.1ms) SAVEPOINT active_record_1
1326
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1327
-  (0.1ms) SAVEPOINT active_record_1
1328
- Processing by PushType::WysiwygMediaController#create as JSON
1329
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff6430e0510 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-10740-xfz4jw>>}}
1330
-  (0.1ms) SAVEPOINT active_record_2
1331
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-11-02 16:59:25.389354"], ["updated_at", "2015-11-02 16:59:25.389354"], ["file_ext", "png"], ["mime_type", "image/png"]]
1486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-11-02 20:28:05.897185"], ["updated_at", "2015-11-02 20:28:05.897185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1332
1487
   (0.1ms) RELEASE SAVEPOINT active_record_2
1333
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1334
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1335
-  (0.1ms) ROLLBACK
1336
-  (0.1ms) BEGIN
1337
- -----------------------------------------------------------------------------------------
1338
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
1339
- -----------------------------------------------------------------------------------------
1340
-  (0.0ms) SAVEPOINT active_record_1
1341
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1342
-  (0.0ms) SAVEPOINT active_record_1
1343
- Processing by PushType::WysiwygMediaController#create as JSON
1344
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff643046988 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-10740-1yeyh7g>>}}
1345
1488
   (0.1ms) SAVEPOINT active_record_2
1346
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-11-02 16:59:25.395099"], ["updated_at", "2015-11-02 16:59:25.395099"], ["file_ext", "png"], ["mime_type", "image/png"]]
1489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-11-02 20:28:05.899687"], ["updated_at", "2015-11-02 20:28:05.899687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1347
1490
   (0.1ms) RELEASE SAVEPOINT active_record_2
1348
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1349
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1350
-  (0.1ms) ROLLBACK
1351
-  (0.1ms) BEGIN
1352
- -----------------------------------------------------------------------------------------
1353
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
1354
- -----------------------------------------------------------------------------------------
1355
-  (0.0ms) SAVEPOINT active_record_1
1356
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1357
-  (0.0ms) SAVEPOINT active_record_1
1358
- Processing by PushType::WysiwygMediaController#create as JSON
1359
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff63efa5be0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-10740-1bg3diy>>}}
1360
1491
   (0.1ms) SAVEPOINT active_record_2
1361
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-11-02 16:59:25.400582"], ["updated_at", "2015-11-02 16:59:25.400582"], ["file_ext", "png"], ["mime_type", "image/png"]]
1362
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1363
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1364
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1365
-  (0.1ms) ROLLBACK
1366
-  (0.1ms) BEGIN
1367
- -----------------------------------------------
1368
- PushType::WysiwygFieldTest: test_0005_anonymous
1369
- -----------------------------------------------
1370
-  (0.1ms) SAVEPOINT active_record_1
1371
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1372
-  (0.0ms) SAVEPOINT active_record_1
1373
-  (0.1ms) SAVEPOINT active_record_2
1374
- PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1375
- SQL (0.2ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", "2015-11-02 16:59:25.427874"], ["updated_at", "2015-11-02 16:59:25.427874"]]
1376
-  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t801899dee72f06a777849aa298bff1bd
1377
- SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "430780ed-95a0-4e7e-a7ae-724f1cca50e2"], ["descendant_id", "430780ed-95a0-4e7e-a7ae-724f1cca50e2"], ["generations", 0]]
1378
-  (0.5ms) UPDATE "push_type_nodes"
1379
- SET "sort_order" = t.seq + -1
1380
- FROM (
1381
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1382
- FROM "push_type_nodes"
1383
- WHERE "parent_id" IS NULL
1384
- ) AS t
1385
- WHERE "push_type_nodes"."id" = t.id
1386
-
1387
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "430780ed-95a0-4e7e-a7ae-724f1cca50e2"]]
1388
- PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "430780ed-95a0-4e7e-a7ae-724f1cca50e2"]]
1389
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc1719b67dc9aad815e383f47a2e3dbc2
1390
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1391
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1392
-  (0.1ms) ROLLBACK
1393
-  (0.1ms) BEGIN
1394
- -----------------------------------------------
1395
- PushType::WysiwygFieldTest: test_0002_anonymous
1396
- -----------------------------------------------
1397
-  (0.1ms) SAVEPOINT active_record_1
1398
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1399
-  (0.0ms) SAVEPOINT active_record_1
1400
-  (0.1ms) SAVEPOINT active_record_2
1401
- PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1402
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["status", 0], ["created_at", "2015-11-02 16:59:25.452138"], ["updated_at", "2015-11-02 16:59:25.452138"]]
1403
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t400231ae7dd0eaede91ed4be7d30d5e4
1404
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dac9480c-c304-4ed0-bca8-09a284893d32"], ["descendant_id", "dac9480c-c304-4ed0-bca8-09a284893d32"], ["generations", 0]]
1405
-  (0.3ms) UPDATE "push_type_nodes"
1406
- SET "sort_order" = t.seq + -1
1407
- FROM (
1408
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1409
- FROM "push_type_nodes"
1410
- WHERE "parent_id" IS NULL
1411
- ) AS t
1412
- WHERE "push_type_nodes"."id" = t.id
1413
-
1414
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dac9480c-c304-4ed0-bca8-09a284893d32"]]
1415
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "dac9480c-c304-4ed0-bca8-09a284893d32"]]
1416
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t477e76e9eef52513206e50e3975dda64
1417
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1418
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1419
-  (0.1ms) ROLLBACK
1420
-  (0.1ms) BEGIN
1421
- -----------------------------------------------
1422
- PushType::WysiwygFieldTest: test_0003_anonymous
1423
- -----------------------------------------------
1424
-  (0.0ms) SAVEPOINT active_record_1
1425
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1426
-  (0.0ms) SAVEPOINT active_record_1
1427
-  (0.1ms) SAVEPOINT active_record_2
1428
- PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1429
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["status", 0], ["created_at", "2015-11-02 16:59:25.460337"], ["updated_at", "2015-11-02 16:59:25.460337"]]
1430
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9c5851e18e5dfefe4bac022d359ff030
1431
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "46a5b22f-2489-449d-87f3-51bf301d0e28"], ["descendant_id", "46a5b22f-2489-449d-87f3-51bf301d0e28"], ["generations", 0]]
1432
-  (0.3ms) UPDATE "push_type_nodes"
1433
- SET "sort_order" = t.seq + -1
1434
- FROM (
1435
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1436
- FROM "push_type_nodes"
1437
- WHERE "parent_id" IS NULL
1438
- ) AS t
1439
- WHERE "push_type_nodes"."id" = t.id
1440
-
1441
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "46a5b22f-2489-449d-87f3-51bf301d0e28"]]
1442
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "46a5b22f-2489-449d-87f3-51bf301d0e28"]]
1443
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdee8ee2c1efcd3c6d2693af23d2136ef
1444
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1445
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1446
-  (0.1ms) ROLLBACK
1447
-  (0.1ms) BEGIN
1448
- -----------------------------------------------
1449
- PushType::WysiwygFieldTest: test_0001_anonymous
1450
- -----------------------------------------------
1451
-  (0.1ms) SAVEPOINT active_record_1
1452
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1453
-  (0.1ms) SAVEPOINT active_record_1
1454
-  (0.1ms) SAVEPOINT active_record_2
1455
- PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1456
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-11-02 16:59:25.469252"], ["updated_at", "2015-11-02 16:59:25.469252"]]
1457
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f630787bd1cc0a308c77df55bdfef98
1458
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4c4e81b0-bbf0-4ff8-9632-4be83b6b5f62"], ["descendant_id", "4c4e81b0-bbf0-4ff8-9632-4be83b6b5f62"], ["generations", 0]]
1459
-  (0.3ms) UPDATE "push_type_nodes"
1460
- SET "sort_order" = t.seq + -1
1461
- FROM (
1462
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1463
- FROM "push_type_nodes"
1464
- WHERE "parent_id" IS NULL
1465
- ) AS t
1466
- WHERE "push_type_nodes"."id" = t.id
1467
-
1468
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4c4e81b0-bbf0-4ff8-9632-4be83b6b5f62"]]
1469
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4c4e81b0-bbf0-4ff8-9632-4be83b6b5f62"]]
1470
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5187711aeb5c1b4169eb4a0501ccfc2b
1471
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1472
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1473
-  (0.1ms) ROLLBACK
1474
-  (0.1ms) BEGIN
1475
- -----------------------------------------------
1476
- PushType::WysiwygFieldTest: test_0004_anonymous
1477
- -----------------------------------------------
1478
-  (0.0ms) SAVEPOINT active_record_1
1479
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1480
-  (0.0ms) SAVEPOINT active_record_1
1481
-  (0.1ms) SAVEPOINT active_record_2
1482
- PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1483
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", "2015-11-02 16:59:25.478174"], ["updated_at", "2015-11-02 16:59:25.478174"]]
1484
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6132b7f18a86135ea9b4530b3e374698
1485
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0cc503df-772f-4f93-b2aa-3ba864837580"], ["descendant_id", "0cc503df-772f-4f93-b2aa-3ba864837580"], ["generations", 0]]
1486
-  (0.3ms) UPDATE "push_type_nodes"
1487
- SET "sort_order" = t.seq + -1
1488
- FROM (
1489
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1490
- FROM "push_type_nodes"
1491
- WHERE "parent_id" IS NULL
1492
- ) AS t
1493
- WHERE "push_type_nodes"."id" = t.id
1494
-
1495
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0cc503df-772f-4f93-b2aa-3ba864837580"]]
1496
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0cc503df-772f-4f93-b2aa-3ba864837580"]]
1497
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta7b60d77cc1b1f7bdfc24abecd2d8974
1492
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "267"], ["created_at", "2015-11-02 20:28:05.901918"], ["updated_at", "2015-11-02 20:28:05.901918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1498
1493
   (0.1ms) RELEASE SAVEPOINT active_record_2
1494
+ Processing by PushType::WysiwygMediaController#index as JSON
1495
+ Parameters: {"filter"=>"file"}
1496
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1497
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1498
+ Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1499
1499
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1500
1500
   (0.1ms) ROLLBACK