push_type_wysiwyg 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,54 +1,54 @@
1
-  (41.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (13.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) 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 (20150824095220)
4
+ Migrating to CreatePushTypeUsers (20150928114738)
5
5
   (0.1ms) BEGIN
6
6
  SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.2ms) 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", "20150824095220"]]
7
+  (2.0ms) 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", "20150928114738"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150824095221)
10
+ Migrating to CreatePushTypeNodes (20150928114739)
11
11
   (0.1ms) BEGIN
12
12
   (1.8ms) 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", "20150824095221"]]
14
-  (0.5ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150824095222)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114739"]]
14
+  (0.4ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150928114740)
16
16
   (0.1ms) BEGIN
17
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.7ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
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", "20150824095222"]]
18
+  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.4ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114740"]]
21
21
   (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150824095223)
22
+ Migrating to CreatePushTypeAssets (20150928114741)
23
23
   (0.1ms) BEGIN
24
-  (1.7ms) 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", "20150824095223"]]
24
+  (1.8ms) 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", "20150928114741"]]
26
26
   (0.4ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150824095224)
27
+ Migrating to CreatePushTypeTaxonomies (20150928114742)
28
28
   (0.1ms) BEGIN
29
-  (1.6ms) 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
+  (1.7ms) 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", "20150824095224"]]
32
-  (0.3ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150824095225)
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114742"]]
32
+  (0.4ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150928114743)
34
34
   (0.1ms) BEGIN
35
-  (0.3ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
-  (0.6ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
35
+  (0.4ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
+  (0.7ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
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", "20150824095225"]]
39
-  (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20150824095226)
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150928114743"]]
39
+  (0.3ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20150928114744)
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 '{}'
44
44
   (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
45
   (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
-  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
46
+  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
47
   (0.2ms) 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.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095226"]]
51
-  (0.4ms) COMMIT
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", "20150928114744"]]
51
+  (0.5ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
53
   (1.7ms) 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
@@ -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.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
65
+  (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
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
@@ -110,7 +110,7 @@ WHERE c.contype = 'f'
110
110
  AND t3.nspname = ANY (current_schemas(false))
111
111
  ORDER BY c.conname
112
112
 
113
-  (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
113
+  (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
114
114
  FROM pg_constraint c
115
115
  JOIN pg_class t1 ON c.conrelid = t1.oid
116
116
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -122,8 +122,8 @@ 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.3ms) 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
125
+ ActiveRecord::SchemaMigration Load (0.2ms) 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
127
   (0.9ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE
@@ -131,1237 +131,1237 @@ ORDER BY c.conname
131
131
  tablename <> 'schema_migrations' AND
132
132
  schemaname = ANY (current_schemas(false))
133
133
  
134
-  (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
135
-  (8.2ms) 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
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
135
+  (7.5ms) 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
137
   (0.1ms) BEGIN
138
- ---------------------------------------------------------------------------
139
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
140
- ---------------------------------------------------------------------------
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
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-08-24 09:52:25.870198"], ["updated_at", "2015-08-24 09:52:25.870198"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
-  (0.1ms) RELEASE SAVEPOINT active_record_2
147
-  (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-08-24 09:52:25.875696"], ["updated_at", "2015-08-24 09:52:25.875696"], ["file_ext", "png"], ["mime_type", "image/png"]]
149
-  (0.1ms) RELEASE SAVEPOINT active_record_2
150
-  (0.1ms) SAVEPOINT active_record_2
151
- 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", "3"], ["created_at", "2015-08-24 09:52:25.877936"], ["updated_at", "2015-08-24 09:52:25.877936"], ["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-09-28 11:47:43.951662"], ["updated_at", "2015-09-28 11:47:43.951662"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
146
   (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-08-24 09:52:25.907953"], ["updated_at", "2015-08-24 09:52:25.907953"], ["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
147
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
158
148
   (0.1ms) ROLLBACK
159
149
   (0.1ms) BEGIN
160
- ---------------------------------------------------------------------------
161
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
162
- ---------------------------------------------------------------------------
150
+ --------------------------------------------------------------------------
151
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
152
+ --------------------------------------------------------------------------
163
153
   (0.1ms) SAVEPOINT active_record_1
164
154
   (0.0ms) RELEASE SAVEPOINT active_record_1
165
155
   (0.0ms) SAVEPOINT active_record_1
166
156
   (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-08-24 09:52:25.913834"], ["updated_at", "2015-08-24 09:52:25.913834"], ["file_ext", "png"], ["mime_type", "image/png"]]
168
-  (0.1ms) RELEASE SAVEPOINT active_record_2
169
-  (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-08-24 09:52:25.915980"], ["updated_at", "2015-08-24 09:52:25.915980"], ["file_ext", "png"], ["mime_type", "image/png"]]
171
-  (0.1ms) RELEASE SAVEPOINT active_record_2
172
-  (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-08-24 09:52:25.918097"], ["updated_at", "2015-08-24 09:52:25.918097"], ["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-09-28 11:47:43.960094"], ["updated_at", "2015-09-28 11:47:43.960094"], ["file_ext", "png"], ["mime_type", "image/png"]]
174
158
   (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-08-24 09:52:25.920094"], ["updated_at", "2015-08-24 09:52:25.920094"], ["file_ext", "png"], ["mime_type", "image/png"]]
177
-  (0.1ms) RELEASE SAVEPOINT active_record_2
178
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
179
159
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
180
160
   (0.1ms) ROLLBACK
181
-  (0.0ms) BEGIN
182
- ---------------------------------------------------------------------------
183
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
184
- ---------------------------------------------------------------------------
185
-  (0.0ms) SAVEPOINT active_record_1
186
-  (0.0ms) RELEASE SAVEPOINT active_record_1
187
-  (0.0ms) SAVEPOINT active_record_1
188
-  (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-08-24 09:52:25.924236"], ["updated_at", "2015-08-24 09:52:25.924236"], ["file_ext", "png"], ["mime_type", "image/png"]]
190
-  (0.1ms) RELEASE SAVEPOINT active_record_2
191
-  (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-08-24 09:52:25.926272"], ["updated_at", "2015-08-24 09:52:25.926272"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
-  (0.1ms) RELEASE SAVEPOINT active_record_2
161
+  (0.1ms) BEGIN
162
+ --------------------------------------------------------------------------
163
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
164
+ --------------------------------------------------------------------------
165
+  (0.1ms) SAVEPOINT active_record_1
166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
167
+  (0.1ms) SAVEPOINT active_record_1
194
168
   (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-08-24 09:52:25.928207"], ["updated_at", "2015-08-24 09:52:25.928207"], ["file_ext", "png"], ["mime_type", "image/png"]]
169
+ 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", "3"], ["created_at", "2015-09-28 11:47:43.964424"], ["updated_at", "2015-09-28 11:47:43.964424"], ["file_ext", "png"], ["mime_type", "image/png"]]
196
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
197
-  (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-08-24 09:52:25.930362"], ["updated_at", "2015-08-24 09:52:25.930362"], ["file_ext", "png"], ["mime_type", "image/png"]]
199
-  (0.1ms) RELEASE SAVEPOINT active_record_2
200
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
201
171
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
202
172
   (0.1ms) ROLLBACK
203
173
   (0.1ms) BEGIN
204
- ---------------------------------------------------------------------------
205
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
206
- ---------------------------------------------------------------------------
174
+ --------------------------------------------------------------------------
175
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
176
+ --------------------------------------------------------------------------
207
177
   (0.0ms) SAVEPOINT active_record_1
208
178
   (0.0ms) RELEASE SAVEPOINT active_record_1
209
179
   (0.0ms) SAVEPOINT active_record_1
210
180
   (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-08-24 09:52:25.934530"], ["updated_at", "2015-08-24 09:52:25.934530"], ["file_ext", "png"], ["mime_type", "image/png"]]
181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:43.968481"], ["updated_at", "2015-09-28 11:47:43.968481"], ["file_ext", "png"], ["mime_type", "image/png"]]
212
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
213
-  (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-08-24 09:52:25.936680"], ["updated_at", "2015-08-24 09:52:25.936680"], ["file_ext", "png"], ["mime_type", "image/png"]]
215
-  (0.1ms) RELEASE SAVEPOINT active_record_2
216
-  (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-08-24 09:52:25.938685"], ["updated_at", "2015-08-24 09:52:25.938685"], ["file_ext", "png"], ["mime_type", "image/png"]]
218
-  (0.1ms) RELEASE SAVEPOINT active_record_2
219
-  (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-08-24 09:52:25.940587"], ["updated_at", "2015-08-24 09:52:25.940587"], ["file_ext", "png"], ["mime_type", "image/png"]]
221
-  (0.1ms) RELEASE SAVEPOINT active_record_2
222
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
223
183
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
224
184
   (0.1ms) ROLLBACK
225
185
   (0.1ms) BEGIN
226
- ---------------------------------------------------------------------------
227
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
228
- ---------------------------------------------------------------------------
186
+ --------------------------------------------------------------------------
187
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
188
+ --------------------------------------------------------------------------
229
189
   (0.0ms) SAVEPOINT active_record_1
230
190
   (0.0ms) RELEASE SAVEPOINT active_record_1
231
191
   (0.0ms) SAVEPOINT active_record_1
232
192
   (0.1ms) SAVEPOINT active_record_2
233
- 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", "17"], ["created_at", "2015-08-24 09:52:25.952064"], ["updated_at", "2015-08-24 09:52:25.952064"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:43.972256"], ["updated_at", "2015-09-28 11:47:43.972256"], ["file_ext", "png"], ["mime_type", "image/png"]]
234
194
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
196
+  (0.1ms) ROLLBACK
197
+  (0.0ms) BEGIN
198
+ --------------------------------------------------------------------------
199
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
200
+ --------------------------------------------------------------------------
201
+  (0.1ms) SAVEPOINT active_record_1
202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
203
+  (0.0ms) SAVEPOINT active_record_1
235
204
   (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-08-24 09:52:25.954716"], ["updated_at", "2015-08-24 09:52:25.954716"], ["file_ext", "png"], ["mime_type", "image/png"]]
205
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:43.976136"], ["updated_at", "2015-09-28 11:47:43.976136"], ["file_ext", "png"], ["mime_type", "image/png"]]
237
206
   (0.1ms) RELEASE SAVEPOINT active_record_2
207
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
208
+  (0.1ms) ROLLBACK
209
+  (0.1ms) BEGIN
210
+ --------------------------------------------------------------------------
211
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
212
+ --------------------------------------------------------------------------
213
+  (0.1ms) SAVEPOINT active_record_1
214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
215
+  (0.0ms) SAVEPOINT active_record_1
238
216
   (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-08-24 09:52:25.956676"], ["updated_at", "2015-08-24 09:52:25.956676"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "7"], ["created_at", "2015-09-28 11:47:44.006235"], ["updated_at", "2015-09-28 11:47:44.006235"], ["file_ext", "png"], ["mime_type", "image/png"]]
240
218
   (0.1ms) RELEASE SAVEPOINT active_record_2
241
-  (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-08-24 09:52:25.958618"], ["updated_at", "2015-08-24 09:52:25.958618"], ["file_ext", "png"], ["mime_type", "image/png"]]
243
-  (0.1ms) RELEASE SAVEPOINT active_record_2
244
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
245
219
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
246
220
   (0.1ms) ROLLBACK
247
221
   (0.1ms) BEGIN
248
222
  -----------------------------------------------
223
+ PushType::WysiwygFieldTest: test_0001_anonymous
224
+ -----------------------------------------------
225
+  (0.1ms) SAVEPOINT active_record_1
226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
227
+  (0.0ms) SAVEPOINT active_record_1
228
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
229
+  (0.0ms) ROLLBACK
230
+  (0.0ms) BEGIN
231
+ -----------------------------------------------
249
232
  PushType::WysiwygFieldTest: test_0002_anonymous
250
233
  -----------------------------------------------
234
+  (0.0ms) SAVEPOINT active_record_1
235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+  (0.0ms) SAVEPOINT active_record_1
237
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
238
+  (0.0ms) ROLLBACK
239
+  (0.1ms) BEGIN
240
+ --------------------------------------------------------------------------------------------
241
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
242
+ --------------------------------------------------------------------------------------------
251
243
   (0.1ms) SAVEPOINT active_record_1
252
244
   (0.1ms) RELEASE SAVEPOINT active_record_1
253
245
   (0.1ms) SAVEPOINT active_record_1
246
+ Processing by PushType::WysiwygMediaController#create as JSON
247
+ Parameters: {"asset"=>{}}
248
+  (0.1ms) SAVEPOINT active_record_2
249
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
250
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.2ms)
254
251
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
255
252
   (0.1ms) ROLLBACK
256
253
   (0.1ms) BEGIN
257
- -----------------------------------------------
258
- PushType::WysiwygFieldTest: test_0001_anonymous
259
- -----------------------------------------------
254
+ --------------------------------------------------------------------------------------------
255
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
256
+ --------------------------------------------------------------------------------------------
257
+  (0.1ms) SAVEPOINT active_record_1
258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
259
+  (0.0ms) SAVEPOINT active_record_1
260
+ Processing by PushType::WysiwygMediaController#create as JSON
261
+ Parameters: {"asset"=>{}}
262
+  (0.1ms) SAVEPOINT active_record_2
263
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
264
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
265
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
266
+  (0.1ms) ROLLBACK
267
+  (0.1ms) BEGIN
268
+ --------------------------------------------------------------------------------------------
269
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
270
+ --------------------------------------------------------------------------------------------
260
271
   (0.1ms) SAVEPOINT active_record_1
261
272
   (0.1ms) RELEASE SAVEPOINT active_record_1
262
273
   (0.1ms) SAVEPOINT active_record_1
274
+ Processing by PushType::WysiwygMediaController#create as JSON
275
+ Parameters: {"asset"=>{}}
276
+  (0.1ms) SAVEPOINT active_record_2
277
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
278
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
263
279
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
264
280
   (0.1ms) ROLLBACK
265
281
   (0.1ms) BEGIN
266
- --------------------------------------------------------------------------------------
267
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
268
- --------------------------------------------------------------------------------------
282
+ -------------------------------------------------------------------------------------------
283
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
284
+ -------------------------------------------------------------------------------------------
269
285
   (0.1ms) SAVEPOINT active_record_1
270
286
   (0.1ms) RELEASE SAVEPOINT active_record_1
271
287
   (0.1ms) SAVEPOINT active_record_1
272
288
   (0.1ms) SAVEPOINT active_record_2
273
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:25.973859"], ["updated_at", "2015-08-24 09:52:25.973859"], ["file_ext", "png"], ["mime_type", "image/png"]]
289
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.044605"], ["updated_at", "2015-09-28 11:47:44.044605"], ["file_ext", "png"], ["mime_type", "image/png"]]
274
290
   (0.1ms) RELEASE SAVEPOINT active_record_2
275
291
   (0.1ms) SAVEPOINT active_record_2
276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:25.976156"], ["updated_at", "2015-08-24 09:52:25.976156"], ["file_ext", "png"], ["mime_type", "image/png"]]
292
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.046961"], ["updated_at", "2015-09-28 11:47:44.046961"], ["file_ext", "png"], ["mime_type", "image/png"]]
277
293
   (0.1ms) RELEASE SAVEPOINT active_record_2
278
294
   (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-08-24 09:52:25.978177"], ["updated_at", "2015-08-24 09:52:25.978177"], ["file_ext", "png"], ["mime_type", "image/png"]]
295
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.049047"], ["updated_at", "2015-09-28 11:47:44.049047"], ["file_ext", "png"], ["mime_type", "image/png"]]
280
296
   (0.1ms) RELEASE SAVEPOINT active_record_2
281
297
   (0.1ms) SAVEPOINT active_record_2
282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:25.980186"], ["updated_at", "2015-08-24 09:52:25.980186"], ["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", "11"], ["created_at", "2015-09-28 11:47:44.051065"], ["updated_at", "2015-09-28 11:47:44.051065"], ["file_ext", "png"], ["mime_type", "image/png"]]
283
299
   (0.1ms) RELEASE SAVEPOINT active_record_2
284
300
   (0.1ms) SAVEPOINT active_record_2
285
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:25.982232"], ["updated_at", "2015-08-24 09:52:25.982232"], ["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", "12"], ["created_at", "2015-09-28 11:47:44.053198"], ["updated_at", "2015-09-28 11:47:44.053198"], ["file_ext", "png"], ["mime_type", "image/png"]]
286
302
   (0.1ms) RELEASE SAVEPOINT active_record_2
287
303
   (0.1ms) SAVEPOINT active_record_2
288
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-08-24 09:52:25.985592"], ["updated_at", "2015-08-24 09:52:25.985592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-09-28 11:47:44.055465"], ["updated_at", "2015-09-28 11:47:44.055465"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
289
305
   (0.1ms) RELEASE SAVEPOINT active_record_2
290
306
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-08-24 09:52:25.987986"], ["updated_at", "2015-08-24 09:52:25.987986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-09-28 11:47:44.057523"], ["updated_at", "2015-09-28 11:47:44.057523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
292
308
   (0.1ms) RELEASE SAVEPOINT active_record_2
293
309
   (0.1ms) SAVEPOINT active_record_2
294
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-08-24 09:52:25.990083"], ["updated_at", "2015-08-24 09:52:25.990083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
310
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-09-28 11:47:44.059543"], ["updated_at", "2015-09-28 11:47:44.059543"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
295
311
   (0.1ms) RELEASE SAVEPOINT active_record_2
296
312
   (0.1ms) SAVEPOINT active_record_2
297
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-08-24 09:52:25.992117"], ["updated_at", "2015-08-24 09:52:25.992117"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
313
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-09-28 11:47:44.061536"], ["updated_at", "2015-09-28 11:47:44.061536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
298
314
   (0.1ms) RELEASE SAVEPOINT active_record_2
299
315
   (0.1ms) SAVEPOINT active_record_2
300
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-08-24 09:52:25.994058"], ["updated_at", "2015-08-24 09:52:25.994058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
316
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-09-28 11:47:44.063606"], ["updated_at", "2015-09-28 11:47:44.063606"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
301
317
   (0.1ms) RELEASE SAVEPOINT active_record_2
302
318
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-08-24 09:52:25.996343"], ["updated_at", "2015-08-24 09:52:25.996343"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
319
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-09-28 11:47:44.065859"], ["updated_at", "2015-09-28 11:47:44.065859"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
304
320
   (0.1ms) RELEASE SAVEPOINT active_record_2
305
321
   (0.1ms) SAVEPOINT active_record_2
306
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-08-24 09:52:25.998546"], ["updated_at", "2015-08-24 09:52:25.998546"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
322
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "19"], ["created_at", "2015-09-28 11:47:44.067959"], ["updated_at", "2015-09-28 11:47:44.067959"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
307
323
   (0.1ms) RELEASE SAVEPOINT active_record_2
308
324
   (0.1ms) SAVEPOINT active_record_2
309
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-08-24 09:52:26.000583"], ["updated_at", "2015-08-24 09:52:26.000583"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
325
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2015-09-28 11:47:44.070150"], ["updated_at", "2015-09-28 11:47:44.070150"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
310
326
   (0.1ms) RELEASE SAVEPOINT active_record_2
311
327
   (0.1ms) SAVEPOINT active_record_2
312
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.002694"], ["updated_at", "2015-08-24 09:52:26.002694"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
328
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "21"], ["created_at", "2015-09-28 11:47:44.072177"], ["updated_at", "2015-09-28 11:47:44.072177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
313
329
   (0.1ms) RELEASE SAVEPOINT active_record_2
314
330
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-08-24 09:52:26.004707"], ["updated_at", "2015-08-24 09:52:26.004707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
331
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "22"], ["created_at", "2015-09-28 11:47:44.074222"], ["updated_at", "2015-09-28 11:47:44.074222"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
316
332
   (0.1ms) RELEASE SAVEPOINT active_record_2
317
333
   (0.1ms) SAVEPOINT active_record_2
318
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.006873"], ["updated_at", "2015-08-24 09:52:26.006873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
334
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "23"], ["created_at", "2015-09-28 11:47:44.076347"], ["updated_at", "2015-09-28 11:47:44.076347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
319
335
   (0.1ms) RELEASE SAVEPOINT active_record_2
320
336
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-08-24 09:52:26.008851"], ["updated_at", "2015-08-24 09:52:26.008851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
337
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-09-28 11:47:44.078512"], ["updated_at", "2015-09-28 11:47:44.078512"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
322
338
   (0.1ms) RELEASE SAVEPOINT active_record_2
323
339
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-08-24 09:52:26.010754"], ["updated_at", "2015-08-24 09:52:26.010754"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
340
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-09-28 11:47:44.080763"], ["updated_at", "2015-09-28 11:47:44.080763"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
325
341
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
342
  Processing by PushType::WysiwygMediaController#index as JSON
327
- Parameters: {"filter"=>"file", "page"=>2}
328
- PushType::Asset Load (0.6ms) 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
329
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
330
- Completed 200 OK in 83ms (Views: 0.3ms | ActiveRecord: 0.9ms)
343
+ Parameters: {"filter"=>"image"}
344
+ 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
345
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
346
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.8ms)
331
347
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
332
348
   (0.1ms) ROLLBACK
333
349
   (0.1ms) BEGIN
334
- --------------------------------------------------------------------------------------
335
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
336
- --------------------------------------------------------------------------------------
337
-  (0.1ms) SAVEPOINT active_record_1
350
+ -------------------------------------------------------------------------------------------
351
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
352
+ -------------------------------------------------------------------------------------------
353
+  (0.0ms) SAVEPOINT active_record_1
338
354
   (0.0ms) RELEASE SAVEPOINT active_record_1
339
355
   (0.0ms) SAVEPOINT active_record_1
340
356
   (0.1ms) SAVEPOINT active_record_2
341
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.100219"], ["updated_at", "2015-08-24 09:52:26.100219"], ["file_ext", "png"], ["mime_type", "image/png"]]
357
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.095593"], ["updated_at", "2015-09-28 11:47:44.095593"], ["file_ext", "png"], ["mime_type", "image/png"]]
342
358
   (0.1ms) RELEASE SAVEPOINT active_record_2
343
359
   (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", "40"], ["created_at", "2015-08-24 09:52:26.102956"], ["updated_at", "2015-08-24 09:52:26.102956"], ["file_ext", "png"], ["mime_type", "image/png"]]
360
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.097763"], ["updated_at", "2015-09-28 11:47:44.097763"], ["file_ext", "png"], ["mime_type", "image/png"]]
345
361
   (0.1ms) RELEASE SAVEPOINT active_record_2
346
362
   (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", "41"], ["created_at", "2015-08-24 09:52:26.105314"], ["updated_at", "2015-08-24 09:52:26.105314"], ["file_ext", "png"], ["mime_type", "image/png"]]
363
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.100002"], ["updated_at", "2015-09-28 11:47:44.100002"], ["file_ext", "png"], ["mime_type", "image/png"]]
348
364
   (0.1ms) RELEASE SAVEPOINT active_record_2
349
365
   (0.1ms) SAVEPOINT active_record_2
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", "42"], ["created_at", "2015-08-24 09:52:26.107352"], ["updated_at", "2015-08-24 09:52:26.107352"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "29"], ["created_at", "2015-09-28 11:47:44.102095"], ["updated_at", "2015-09-28 11:47:44.102095"], ["file_ext", "png"], ["mime_type", "image/png"]]
351
367
   (0.1ms) RELEASE SAVEPOINT active_record_2
352
368
   (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", "43"], ["created_at", "2015-08-24 09:52:26.109269"], ["updated_at", "2015-08-24 09:52:26.109269"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "30"], ["created_at", "2015-09-28 11:47:44.104214"], ["updated_at", "2015-09-28 11:47:44.104214"], ["file_ext", "png"], ["mime_type", "image/png"]]
354
370
   (0.1ms) RELEASE SAVEPOINT active_record_2
355
371
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-08-24 09:52:26.111600"], ["updated_at", "2015-08-24 09:52:26.111600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-09-28 11:47:44.106386"], ["updated_at", "2015-09-28 11:47:44.106386"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
357
373
   (0.1ms) RELEASE SAVEPOINT active_record_2
358
374
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-08-24 09:52:26.113517"], ["updated_at", "2015-08-24 09:52:26.113517"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-09-28 11:47:44.108520"], ["updated_at", "2015-09-28 11:47:44.108520"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
360
376
   (0.1ms) RELEASE SAVEPOINT active_record_2
361
377
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-08-24 09:52:26.115545"], ["updated_at", "2015-08-24 09:52:26.115545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
378
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-09-28 11:47:44.110577"], ["updated_at", "2015-09-28 11:47:44.110577"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
363
379
   (0.1ms) RELEASE SAVEPOINT active_record_2
364
380
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-08-24 09:52:26.117602"], ["updated_at", "2015-08-24 09:52:26.117602"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
381
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.112837"], ["updated_at", "2015-09-28 11:47:44.112837"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
366
382
   (0.1ms) RELEASE SAVEPOINT active_record_2
367
383
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-08-24 09:52:26.119483"], ["updated_at", "2015-08-24 09:52:26.119483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
384
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.114921"], ["updated_at", "2015-09-28 11:47:44.114921"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
369
385
   (0.1ms) RELEASE SAVEPOINT active_record_2
370
386
   (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", "49"], ["created_at", "2015-08-24 09:52:26.121591"], ["updated_at", "2015-08-24 09:52:26.121591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
387
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.117053"], ["updated_at", "2015-09-28 11:47:44.117053"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
372
388
   (0.1ms) RELEASE SAVEPOINT active_record_2
373
389
   (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", "50"], ["created_at", "2015-08-24 09:52:26.123523"], ["updated_at", "2015-08-24 09:52:26.123523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
390
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.119100"], ["updated_at", "2015-09-28 11:47:44.119100"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
375
391
   (0.1ms) RELEASE SAVEPOINT active_record_2
376
392
   (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", "51"], ["created_at", "2015-08-24 09:52:26.125501"], ["updated_at", "2015-08-24 09:52:26.125501"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
393
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.121142"], ["updated_at", "2015-09-28 11:47:44.121142"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
378
394
   (0.1ms) RELEASE SAVEPOINT active_record_2
379
395
   (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", "52"], ["created_at", "2015-08-24 09:52:26.127473"], ["updated_at", "2015-08-24 09:52:26.127473"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
396
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.123255"], ["updated_at", "2015-09-28 11:47:44.123255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
381
397
   (0.1ms) RELEASE SAVEPOINT active_record_2
382
398
   (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", "53"], ["created_at", "2015-08-24 09:52:26.129394"], ["updated_at", "2015-08-24 09:52:26.129394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
399
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.125327"], ["updated_at", "2015-09-28 11:47:44.125327"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
384
400
   (0.1ms) RELEASE SAVEPOINT active_record_2
385
401
   (0.1ms) SAVEPOINT active_record_2
386
- 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", "54"], ["created_at", "2015-08-24 09:52:26.131377"], ["updated_at", "2015-08-24 09:52:26.131377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
402
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.127575"], ["updated_at", "2015-09-28 11:47:44.127575"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
387
403
   (0.1ms) RELEASE SAVEPOINT active_record_2
388
404
   (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", "55"], ["created_at", "2015-08-24 09:52:26.133511"], ["updated_at", "2015-08-24 09:52:26.133511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
405
+ 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", "42"], ["created_at", "2015-09-28 11:47:44.129965"], ["updated_at", "2015-09-28 11:47:44.129965"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
390
406
   (0.1ms) RELEASE SAVEPOINT active_record_2
391
407
   (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", "56"], ["created_at", "2015-08-24 09:52:26.135592"], ["updated_at", "2015-08-24 09:52:26.135592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
408
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.132547"], ["updated_at", "2015-09-28 11:47:44.132547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
393
409
   (0.1ms) RELEASE SAVEPOINT active_record_2
394
410
  Processing by PushType::WysiwygMediaController#index as JSON
395
- Parameters: {"filter"=>"file", "page"=>2}
396
- 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
397
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
398
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
411
+ Parameters: {"filter"=>"image"}
412
+ 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
413
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
414
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
399
415
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
400
-  (0.2ms) ROLLBACK
416
+  (0.1ms) ROLLBACK
401
417
   (0.1ms) BEGIN
402
- --------------------------------------------------------------------------------------
403
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
404
- --------------------------------------------------------------------------------------
418
+ -------------------------------------------------------------------------------------------
419
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
420
+ -------------------------------------------------------------------------------------------
405
421
   (0.1ms) SAVEPOINT active_record_1
406
422
   (0.0ms) RELEASE SAVEPOINT active_record_1
407
423
   (0.0ms) SAVEPOINT active_record_1
408
424
   (0.1ms) SAVEPOINT active_record_2
409
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "57"], ["created_at", "2015-08-24 09:52:26.143126"], ["updated_at", "2015-08-24 09:52:26.143126"], ["file_ext", "png"], ["mime_type", "image/png"]]
425
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.141305"], ["updated_at", "2015-09-28 11:47:44.141305"], ["file_ext", "png"], ["mime_type", "image/png"]]
410
426
   (0.1ms) RELEASE SAVEPOINT active_record_2
411
427
   (0.1ms) SAVEPOINT active_record_2
412
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "58"], ["created_at", "2015-08-24 09:52:26.145575"], ["updated_at", "2015-08-24 09:52:26.145575"], ["file_ext", "png"], ["mime_type", "image/png"]]
428
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.143401"], ["updated_at", "2015-09-28 11:47:44.143401"], ["file_ext", "png"], ["mime_type", "image/png"]]
413
429
   (0.1ms) RELEASE SAVEPOINT active_record_2
414
430
   (0.1ms) SAVEPOINT active_record_2
415
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "59"], ["created_at", "2015-08-24 09:52:26.147555"], ["updated_at", "2015-08-24 09:52:26.147555"], ["file_ext", "png"], ["mime_type", "image/png"]]
431
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.145308"], ["updated_at", "2015-09-28 11:47:44.145308"], ["file_ext", "png"], ["mime_type", "image/png"]]
416
432
   (0.1ms) RELEASE SAVEPOINT active_record_2
417
433
   (0.1ms) SAVEPOINT active_record_2
418
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "60"], ["created_at", "2015-08-24 09:52:26.149618"], ["updated_at", "2015-08-24 09:52:26.149618"], ["file_ext", "png"], ["mime_type", "image/png"]]
434
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.147288"], ["updated_at", "2015-09-28 11:47:44.147288"], ["file_ext", "png"], ["mime_type", "image/png"]]
419
435
   (0.1ms) RELEASE SAVEPOINT active_record_2
420
436
   (0.1ms) SAVEPOINT active_record_2
421
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "61"], ["created_at", "2015-08-24 09:52:26.151533"], ["updated_at", "2015-08-24 09:52:26.151533"], ["file_ext", "png"], ["mime_type", "image/png"]]
437
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.149423"], ["updated_at", "2015-09-28 11:47:44.149423"], ["file_ext", "png"], ["mime_type", "image/png"]]
422
438
   (0.1ms) RELEASE SAVEPOINT active_record_2
423
439
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-08-24 09:52:26.153586"], ["updated_at", "2015-08-24 09:52:26.153586"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
440
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-09-28 11:47:44.151635"], ["updated_at", "2015-09-28 11:47:44.151635"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
425
441
   (0.1ms) RELEASE SAVEPOINT active_record_2
426
442
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-08-24 09:52:26.155671"], ["updated_at", "2015-08-24 09:52:26.155671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
443
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-09-28 11:47:44.153651"], ["updated_at", "2015-09-28 11:47:44.153651"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
428
444
   (0.1ms) RELEASE SAVEPOINT active_record_2
429
445
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-08-24 09:52:26.157797"], ["updated_at", "2015-08-24 09:52:26.157797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
446
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-09-28 11:47:44.155616"], ["updated_at", "2015-09-28 11:47:44.155616"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
431
447
   (0.1ms) RELEASE SAVEPOINT active_record_2
432
448
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-08-24 09:52:26.159739"], ["updated_at", "2015-08-24 09:52:26.159739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
449
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.157595"], ["updated_at", "2015-09-28 11:47:44.157595"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
434
450
   (0.1ms) RELEASE SAVEPOINT active_record_2
435
451
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-08-24 09:52:26.161726"], ["updated_at", "2015-08-24 09:52:26.161726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
452
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.159542"], ["updated_at", "2015-09-28 11:47:44.159542"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
437
453
   (0.1ms) RELEASE SAVEPOINT active_record_2
438
454
   (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", "67"], ["created_at", "2015-08-24 09:52:26.163661"], ["updated_at", "2015-08-24 09:52:26.163661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
455
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.161534"], ["updated_at", "2015-09-28 11:47:44.161534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
440
456
   (0.1ms) RELEASE SAVEPOINT active_record_2
441
457
   (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", "68"], ["created_at", "2015-08-24 09:52:26.165743"], ["updated_at", "2015-08-24 09:52:26.165743"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
458
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.163593"], ["updated_at", "2015-09-28 11:47:44.163593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
443
459
   (0.1ms) RELEASE SAVEPOINT active_record_2
444
460
   (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", "69"], ["created_at", "2015-08-24 09:52:26.167931"], ["updated_at", "2015-08-24 09:52:26.167931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
461
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.165613"], ["updated_at", "2015-09-28 11:47:44.165613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
446
462
   (0.1ms) RELEASE SAVEPOINT active_record_2
447
463
   (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", "70"], ["created_at", "2015-08-24 09:52:26.169971"], ["updated_at", "2015-08-24 09:52:26.169971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
464
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.167568"], ["updated_at", "2015-09-28 11:47:44.167568"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
449
465
   (0.1ms) RELEASE SAVEPOINT active_record_2
450
466
   (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", "71"], ["created_at", "2015-08-24 09:52:26.171932"], ["updated_at", "2015-08-24 09:52:26.171932"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
467
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.169547"], ["updated_at", "2015-09-28 11:47:44.169547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
452
468
   (0.1ms) RELEASE SAVEPOINT active_record_2
453
469
   (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", "72"], ["created_at", "2015-08-24 09:52:26.173825"], ["updated_at", "2015-08-24 09:52:26.173825"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
470
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.171502"], ["updated_at", "2015-09-28 11:47:44.171502"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
455
471
   (0.1ms) RELEASE SAVEPOINT active_record_2
456
472
   (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", "73"], ["created_at", "2015-08-24 09:52:26.175824"], ["updated_at", "2015-08-24 09:52:26.175824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
473
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.173492"], ["updated_at", "2015-09-28 11:47:44.173492"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
458
474
   (0.1ms) RELEASE SAVEPOINT active_record_2
459
475
   (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", "74"], ["created_at", "2015-08-24 09:52:26.178122"], ["updated_at", "2015-08-24 09:52:26.178122"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
476
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.175728"], ["updated_at", "2015-09-28 11:47:44.175728"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
461
477
   (0.1ms) RELEASE SAVEPOINT active_record_2
462
478
  Processing by PushType::WysiwygMediaController#index as JSON
463
- Parameters: {"filter"=>"file", "page"=>2}
464
- 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
465
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
466
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
479
+ Parameters: {"filter"=>"image"}
480
+ 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
481
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
482
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
467
483
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
468
-  (0.1ms) ROLLBACK
469
-  (0.1ms) BEGIN
470
- --------------------------------------------------------------------------------------
471
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
472
- --------------------------------------------------------------------------------------
473
-  (0.1ms) SAVEPOINT active_record_1
474
-  (0.0ms) RELEASE SAVEPOINT active_record_1
484
+  (0.2ms) ROLLBACK
485
+  (0.0ms) BEGIN
486
+ -------------------------------------------------------------------------------------------
487
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
488
+ -------------------------------------------------------------------------------------------
475
489
   (0.0ms) SAVEPOINT active_record_1
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+  (0.1ms) SAVEPOINT active_record_1
476
492
   (0.1ms) SAVEPOINT active_record_2
477
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "75"], ["created_at", "2015-08-24 09:52:26.185693"], ["updated_at", "2015-08-24 09:52:26.185693"], ["file_ext", "png"], ["mime_type", "image/png"]]
493
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "62"], ["created_at", "2015-09-28 11:47:44.183757"], ["updated_at", "2015-09-28 11:47:44.183757"], ["file_ext", "png"], ["mime_type", "image/png"]]
478
494
   (0.1ms) RELEASE SAVEPOINT active_record_2
479
495
   (0.1ms) SAVEPOINT active_record_2
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", "76"], ["created_at", "2015-08-24 09:52:26.187921"], ["updated_at", "2015-08-24 09:52:26.187921"], ["file_ext", "png"], ["mime_type", "image/png"]]
496
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "63"], ["created_at", "2015-09-28 11:47:44.185812"], ["updated_at", "2015-09-28 11:47:44.185812"], ["file_ext", "png"], ["mime_type", "image/png"]]
481
497
   (0.1ms) RELEASE SAVEPOINT active_record_2
482
498
   (0.1ms) SAVEPOINT active_record_2
483
- 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", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-08-24 09:52:26.189922"], ["updated_at", "2015-08-24 09:52:26.189922"], ["file_ext", "png"], ["mime_type", "image/png"]]
499
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "64"], ["created_at", "2015-09-28 11:47:44.187735"], ["updated_at", "2015-09-28 11:47:44.187735"], ["file_ext", "png"], ["mime_type", "image/png"]]
484
500
   (0.1ms) RELEASE SAVEPOINT active_record_2
485
501
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-08-24 09:52:26.192057"], ["updated_at", "2015-08-24 09:52:26.192057"], ["file_ext", "png"], ["mime_type", "image/png"]]
502
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.189653"], ["updated_at", "2015-09-28 11:47:44.189653"], ["file_ext", "png"], ["mime_type", "image/png"]]
487
503
   (0.1ms) RELEASE SAVEPOINT active_record_2
488
504
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-08-24 09:52:26.194044"], ["updated_at", "2015-08-24 09:52:26.194044"], ["file_ext", "png"], ["mime_type", "image/png"]]
505
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.191678"], ["updated_at", "2015-09-28 11:47:44.191678"], ["file_ext", "png"], ["mime_type", "image/png"]]
490
506
   (0.1ms) RELEASE SAVEPOINT active_record_2
491
507
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-08-24 09:52:26.196124"], ["updated_at", "2015-08-24 09:52:26.196124"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-09-28 11:47:44.193822"], ["updated_at", "2015-09-28 11:47:44.193822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
493
509
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
510
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-08-24 09:52:26.198260"], ["updated_at", "2015-08-24 09:52:26.198260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-09-28 11:47:44.195827"], ["updated_at", "2015-09-28 11:47:44.195827"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
496
512
   (0.1ms) RELEASE SAVEPOINT active_record_2
497
513
   (0.1ms) SAVEPOINT active_record_2
498
- 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-08-24 09:52:26.214562"], ["updated_at", "2015-08-24 09:52:26.214562"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-09-28 11:47:44.197907"], ["updated_at", "2015-09-28 11:47:44.197907"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
499
515
   (0.1ms) RELEASE SAVEPOINT active_record_2
500
516
   (0.1ms) SAVEPOINT active_record_2
501
- 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-08-24 09:52:26.216923"], ["updated_at", "2015-08-24 09:52:26.216923"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.199944"], ["updated_at", "2015-09-28 11:47:44.199944"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
502
518
   (0.1ms) RELEASE SAVEPOINT active_record_2
503
519
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-08-24 09:52:26.219855"], ["updated_at", "2015-08-24 09:52:26.219855"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.201996"], ["updated_at", "2015-09-28 11:47:44.201996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
505
521
   (0.1ms) RELEASE SAVEPOINT active_record_2
506
522
   (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", "85"], ["created_at", "2015-08-24 09:52:26.222593"], ["updated_at", "2015-08-24 09:52:26.222593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.203918"], ["updated_at", "2015-09-28 11:47:44.203918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
524
   (0.1ms) RELEASE SAVEPOINT active_record_2
509
525
   (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", "86"], ["created_at", "2015-08-24 09:52:26.224654"], ["updated_at", "2015-08-24 09:52:26.224654"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
526
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.206035"], ["updated_at", "2015-09-28 11:47:44.206035"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
527
   (0.1ms) RELEASE SAVEPOINT active_record_2
512
528
   (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", "87"], ["created_at", "2015-08-24 09:52:26.226680"], ["updated_at", "2015-08-24 09:52:26.226680"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
529
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.208020"], ["updated_at", "2015-09-28 11:47:44.208020"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
530
   (0.1ms) RELEASE SAVEPOINT active_record_2
515
531
   (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", "88"], ["created_at", "2015-08-24 09:52:26.228912"], ["updated_at", "2015-08-24 09:52:26.228912"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
532
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.209966"], ["updated_at", "2015-09-28 11:47:44.209966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
533
   (0.1ms) RELEASE SAVEPOINT active_record_2
518
534
   (0.1ms) SAVEPOINT active_record_2
519
- 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", "89"], ["created_at", "2015-08-24 09:52:26.231388"], ["updated_at", "2015-08-24 09:52:26.231388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
535
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.211944"], ["updated_at", "2015-09-28 11:47:44.211944"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
536
   (0.1ms) RELEASE SAVEPOINT active_record_2
521
537
   (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", "90"], ["created_at", "2015-08-24 09:52:26.234116"], ["updated_at", "2015-08-24 09:52:26.234116"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
-  (0.2ms) RELEASE SAVEPOINT active_record_2
538
+ 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-09-28 11:47:44.213885"], ["updated_at", "2015-09-28 11:47:44.213885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
539
+  (0.1ms) RELEASE SAVEPOINT active_record_2
524
540
   (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", "91"], ["created_at", "2015-08-24 09:52:26.236561"], ["updated_at", "2015-08-24 09:52:26.236561"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
541
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.216254"], ["updated_at", "2015-09-28 11:47:44.216254"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
526
542
   (0.1ms) RELEASE SAVEPOINT active_record_2
527
543
   (0.1ms) SAVEPOINT active_record_2
528
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.238805"], ["updated_at", "2015-08-24 09:52:26.238805"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
544
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.218506"], ["updated_at", "2015-09-28 11:47:44.218506"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
529
545
   (0.1ms) RELEASE SAVEPOINT active_record_2
530
546
  Processing by PushType::WysiwygMediaController#index as JSON
531
- Parameters: {"filter"=>"file", "page"=>2}
532
- 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
533
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
534
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
547
+ Parameters: {"filter"=>"image"}
548
+ 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
549
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
550
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
535
551
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
536
552
   (0.1ms) ROLLBACK
537
553
   (0.1ms) BEGIN
538
- --------------------------------------------------------------------------
539
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
540
- --------------------------------------------------------------------------
554
+ ---------------------------------------------------------------------------
555
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
556
+ ---------------------------------------------------------------------------
557
+  (0.1ms) SAVEPOINT active_record_1
558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
559
   (0.1ms) SAVEPOINT active_record_1
542
-  (0.0ms) RELEASE SAVEPOINT active_record_1
543
-  (0.0ms) SAVEPOINT active_record_1
544
560
   (0.1ms) SAVEPOINT active_record_2
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", "93"], ["created_at", "2015-08-24 09:52:26.249169"], ["updated_at", "2015-08-24 09:52:26.249169"], ["file_ext", "png"], ["mime_type", "image/png"]]
561
+ 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", "80"], ["created_at", "2015-09-28 11:47:44.227317"], ["updated_at", "2015-09-28 11:47:44.227317"], ["file_ext", "png"], ["mime_type", "image/png"]]
546
562
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
548
-  (0.1ms) ROLLBACK
549
-  (0.1ms) BEGIN
550
- --------------------------------------------------------------------------
551
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
552
- --------------------------------------------------------------------------
553
-  (0.0ms) SAVEPOINT active_record_1
554
-  (0.0ms) RELEASE SAVEPOINT active_record_1
555
-  (0.0ms) SAVEPOINT active_record_1
556
563
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-08-24 09:52:26.253543"], ["updated_at", "2015-08-24 09:52:26.253543"], ["file_ext", "png"], ["mime_type", "image/png"]]
564
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "81"], ["created_at", "2015-09-28 11:47:44.229474"], ["updated_at", "2015-09-28 11:47:44.229474"], ["file_ext", "png"], ["mime_type", "image/png"]]
558
565
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
560
-  (0.1ms) ROLLBACK
561
-  (0.1ms) BEGIN
562
- --------------------------------------------------------------------------
563
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
564
- --------------------------------------------------------------------------
565
-  (0.0ms) SAVEPOINT active_record_1
566
-  (0.0ms) RELEASE SAVEPOINT active_record_1
567
-  (0.0ms) SAVEPOINT active_record_1
568
566
   (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", "95"], ["created_at", "2015-08-24 09:52:26.258187"], ["updated_at", "2015-08-24 09:52:26.258187"], ["file_ext", "png"], ["mime_type", "image/png"]]
567
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "82"], ["created_at", "2015-09-28 11:47:44.231667"], ["updated_at", "2015-09-28 11:47:44.231667"], ["file_ext", "png"], ["mime_type", "image/png"]]
570
568
   (0.1ms) RELEASE SAVEPOINT active_record_2
571
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
572
-  (0.1ms) ROLLBACK
573
-  (0.1ms) BEGIN
574
- --------------------------------------------------------------------------
575
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
576
- --------------------------------------------------------------------------
577
-  (0.0ms) SAVEPOINT active_record_1
578
-  (0.0ms) RELEASE SAVEPOINT active_record_1
579
-  (0.1ms) SAVEPOINT active_record_1
580
569
   (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", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-08-24 09:52:26.262010"], ["updated_at", "2015-08-24 09:52:26.262010"], ["file_ext", "png"], ["mime_type", "image/png"]]
570
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.233716"], ["updated_at", "2015-09-28 11:47:44.233716"], ["file_ext", "png"], ["mime_type", "image/png"]]
582
571
   (0.1ms) RELEASE SAVEPOINT active_record_2
572
+ 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
573
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
583
574
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
584
575
   (0.1ms) ROLLBACK
585
576
   (0.1ms) BEGIN
586
- --------------------------------------------------------------------------
587
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
588
- --------------------------------------------------------------------------
577
+ ---------------------------------------------------------------------------
578
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
579
+ ---------------------------------------------------------------------------
589
580
   (0.0ms) SAVEPOINT active_record_1
590
581
   (0.0ms) RELEASE SAVEPOINT active_record_1
591
582
   (0.0ms) SAVEPOINT active_record_1
592
583
   (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", "image.png"], ["file_size", 2643], ["file_uid", "97"], ["created_at", "2015-08-24 09:52:26.265999"], ["updated_at", "2015-08-24 09:52:26.265999"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-09-28 11:47:44.238886"], ["updated_at", "2015-09-28 11:47:44.238886"], ["file_ext", "png"], ["mime_type", "image/png"]]
585
+  (0.1ms) RELEASE SAVEPOINT active_record_2
586
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-09-28 11:47:44.240985"], ["updated_at", "2015-09-28 11:47:44.240985"], ["file_ext", "png"], ["mime_type", "image/png"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_2
589
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-09-28 11:47:44.243064"], ["updated_at", "2015-09-28 11:47:44.243064"], ["file_ext", "png"], ["mime_type", "image/png"]]
594
591
   (0.1ms) RELEASE SAVEPOINT active_record_2
595
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
596
-  (0.1ms) ROLLBACK
597
-  (0.1ms) BEGIN
598
- --------------------------------------------------------------------------
599
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
600
- --------------------------------------------------------------------------
601
-  (0.1ms) SAVEPOINT active_record_1
602
-  (0.1ms) RELEASE SAVEPOINT active_record_1
603
-  (0.1ms) SAVEPOINT active_record_1
604
592
   (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", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-08-24 09:52:26.270234"], ["updated_at", "2015-08-24 09:52:26.270234"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-09-28 11:47:44.245037"], ["updated_at", "2015-09-28 11:47:44.245037"], ["file_ext", "png"], ["mime_type", "image/png"]]
606
594
   (0.1ms) RELEASE SAVEPOINT active_record_2
595
+ 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
596
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
607
597
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
608
598
   (0.1ms) ROLLBACK
609
599
   (0.1ms) BEGIN
610
- --------------------------------------------------------------------------
611
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
612
- --------------------------------------------------------------------------
600
+ ---------------------------------------------------------------------------
601
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
602
+ ---------------------------------------------------------------------------
613
603
   (0.0ms) SAVEPOINT active_record_1
614
604
   (0.0ms) RELEASE SAVEPOINT active_record_1
615
605
   (0.0ms) SAVEPOINT active_record_1
616
606
   (0.1ms) SAVEPOINT active_record_2
617
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "99"], ["created_at", "2015-08-24 09:52:26.274324"], ["updated_at", "2015-08-24 09:52:26.274324"], ["file_ext", "png"], ["mime_type", "image/png"]]
607
+ 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", "88"], ["created_at", "2015-09-28 11:47:44.250264"], ["updated_at", "2015-09-28 11:47:44.250264"], ["file_ext", "png"], ["mime_type", "image/png"]]
618
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
619
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
620
-  (0.1ms) ROLLBACK
621
-  (0.1ms) BEGIN
622
- -------------------------------------------------------------------------------------------
623
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
624
- -------------------------------------------------------------------------------------------
625
-  (0.1ms) SAVEPOINT active_record_1
626
-  (0.1ms) RELEASE SAVEPOINT active_record_1
627
-  (0.1ms) SAVEPOINT active_record_1
628
609
   (0.1ms) SAVEPOINT active_record_2
629
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "100"], ["created_at", "2015-08-24 09:52:26.280281"], ["updated_at", "2015-08-24 09:52:26.280281"], ["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", "89"], ["created_at", "2015-09-28 11:47:44.252498"], ["updated_at", "2015-09-28 11:47:44.252498"], ["file_ext", "png"], ["mime_type", "image/png"]]
630
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
631
612
   (0.1ms) SAVEPOINT active_record_2
632
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.282638"], ["updated_at", "2015-08-24 09:52:26.282638"], ["file_ext", "png"], ["mime_type", "image/png"]]
613
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "90"], ["created_at", "2015-09-28 11:47:44.254606"], ["updated_at", "2015-09-28 11:47:44.254606"], ["file_ext", "png"], ["mime_type", "image/png"]]
633
614
   (0.1ms) RELEASE SAVEPOINT active_record_2
634
615
   (0.1ms) SAVEPOINT active_record_2
635
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.284798"], ["updated_at", "2015-08-24 09:52:26.284798"], ["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", "91"], ["created_at", "2015-09-28 11:47:44.256556"], ["updated_at", "2015-09-28 11:47:44.256556"], ["file_ext", "png"], ["mime_type", "image/png"]]
636
617
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
+ 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
619
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
620
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
621
+  (0.1ms) ROLLBACK
622
+  (0.0ms) BEGIN
623
+ ---------------------------------------------------------------------------
624
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
625
+ ---------------------------------------------------------------------------
626
+  (0.0ms) SAVEPOINT active_record_1
627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
628
+  (0.0ms) SAVEPOINT active_record_1
637
629
   (0.1ms) SAVEPOINT active_record_2
638
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.287184"], ["updated_at", "2015-08-24 09:52:26.287184"], ["file_ext", "png"], ["mime_type", "image/png"]]
630
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "92"], ["created_at", "2015-09-28 11:47:44.261702"], ["updated_at", "2015-09-28 11:47:44.261702"], ["file_ext", "png"], ["mime_type", "image/png"]]
639
631
   (0.1ms) RELEASE SAVEPOINT active_record_2
640
632
   (0.1ms) SAVEPOINT active_record_2
641
- SQL (22.0ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.289431"], ["updated_at", "2015-08-24 09:52:26.289431"], ["file_ext", "png"], ["mime_type", "image/png"]]
633
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "93"], ["created_at", "2015-09-28 11:47:44.264059"], ["updated_at", "2015-09-28 11:47:44.264059"], ["file_ext", "png"], ["mime_type", "image/png"]]
642
634
   (0.1ms) RELEASE SAVEPOINT active_record_2
643
635
   (0.1ms) SAVEPOINT active_record_2
644
- SQL (5.8ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-08-24 09:52:26.314016"], ["updated_at", "2015-08-24 09:52:26.314016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
636
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "94"], ["created_at", "2015-09-28 11:47:44.266208"], ["updated_at", "2015-09-28 11:47:44.266208"], ["file_ext", "png"], ["mime_type", "image/png"]]
637
+  (0.1ms) RELEASE SAVEPOINT active_record_2
638
+  (0.1ms) SAVEPOINT active_record_2
639
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "95"], ["created_at", "2015-09-28 11:47:44.268274"], ["updated_at", "2015-09-28 11:47:44.268274"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
+  (0.1ms) RELEASE SAVEPOINT active_record_2
641
+ 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
642
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
643
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
644
+  (0.1ms) ROLLBACK
645
+  (0.0ms) BEGIN
646
+ ---------------------------------------------------------------------------
647
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
648
+ ---------------------------------------------------------------------------
649
+  (0.0ms) SAVEPOINT active_record_1
650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
651
+  (0.0ms) SAVEPOINT active_record_1
652
+  (0.1ms) SAVEPOINT active_record_2
653
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "96"], ["created_at", "2015-09-28 11:47:44.273380"], ["updated_at", "2015-09-28 11:47:44.273380"], ["file_ext", "png"], ["mime_type", "image/png"]]
645
654
   (0.1ms) RELEASE SAVEPOINT active_record_2
646
655
   (0.1ms) SAVEPOINT active_record_2
647
- 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", "106"], ["created_at", "2015-08-24 09:52:26.321835"], ["updated_at", "2015-08-24 09:52:26.321835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
656
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "97"], ["created_at", "2015-09-28 11:47:44.275515"], ["updated_at", "2015-09-28 11:47:44.275515"], ["file_ext", "png"], ["mime_type", "image/png"]]
648
657
   (0.1ms) RELEASE SAVEPOINT active_record_2
649
658
   (0.1ms) SAVEPOINT active_record_2
650
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-08-24 09:52:26.324184"], ["updated_at", "2015-08-24 09:52:26.324184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "98"], ["created_at", "2015-09-28 11:47:44.277485"], ["updated_at", "2015-09-28 11:47:44.277485"], ["file_ext", "png"], ["mime_type", "image/png"]]
651
660
   (0.1ms) RELEASE SAVEPOINT active_record_2
652
661
   (0.1ms) SAVEPOINT active_record_2
653
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.326769"], ["updated_at", "2015-08-24 09:52:26.326769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
662
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "99"], ["created_at", "2015-09-28 11:47:44.279497"], ["updated_at", "2015-09-28 11:47:44.279497"], ["file_ext", "png"], ["mime_type", "image/png"]]
654
663
   (0.1ms) RELEASE SAVEPOINT active_record_2
664
+ 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
665
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
666
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
667
+  (0.1ms) ROLLBACK
668
+  (0.1ms) BEGIN
669
+ ------------------------------------------------------------------------------------------
670
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
671
+ ------------------------------------------------------------------------------------------
672
+  (0.1ms) SAVEPOINT active_record_1
673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
674
+  (0.1ms) SAVEPOINT active_record_1
655
675
   (0.1ms) SAVEPOINT active_record_2
656
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.328834"], ["updated_at", "2015-08-24 09:52:26.328834"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
676
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "100"], ["created_at", "2015-09-28 11:47:44.285732"], ["updated_at", "2015-09-28 11:47:44.285732"], ["file_ext", "png"], ["mime_type", "image/png"]]
657
677
   (0.1ms) RELEASE SAVEPOINT active_record_2
658
678
   (0.1ms) SAVEPOINT active_record_2
659
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.330775"], ["updated_at", "2015-08-24 09:52:26.330775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
679
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.287841"], ["updated_at", "2015-09-28 11:47:44.287841"], ["file_ext", "png"], ["mime_type", "image/png"]]
660
680
   (0.1ms) RELEASE SAVEPOINT active_record_2
661
681
   (0.1ms) SAVEPOINT active_record_2
662
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.332752"], ["updated_at", "2015-08-24 09:52:26.332752"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
682
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.289847"], ["updated_at", "2015-09-28 11:47:44.289847"], ["file_ext", "png"], ["mime_type", "image/png"]]
663
683
   (0.1ms) RELEASE SAVEPOINT active_record_2
664
684
   (0.1ms) SAVEPOINT active_record_2
665
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.334766"], ["updated_at", "2015-08-24 09:52:26.334766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
685
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.291840"], ["updated_at", "2015-09-28 11:47:44.291840"], ["file_ext", "png"], ["mime_type", "image/png"]]
666
686
   (0.1ms) RELEASE SAVEPOINT active_record_2
667
687
   (0.1ms) SAVEPOINT active_record_2
668
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.336961"], ["updated_at", "2015-08-24 09:52:26.336961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
688
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.293816"], ["updated_at", "2015-09-28 11:47:44.293816"], ["file_ext", "png"], ["mime_type", "image/png"]]
669
689
   (0.1ms) RELEASE SAVEPOINT active_record_2
670
690
   (0.1ms) SAVEPOINT active_record_2
671
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.339028"], ["updated_at", "2015-08-24 09:52:26.339028"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
691
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-09-28 11:47:44.295845"], ["updated_at", "2015-09-28 11:47:44.295845"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
672
692
   (0.1ms) RELEASE SAVEPOINT active_record_2
673
693
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-08-24 09:52:26.341065"], ["updated_at", "2015-08-24 09:52:26.341065"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-09-28 11:47:44.297917"], ["updated_at", "2015-09-28 11:47:44.297917"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
675
695
   (0.1ms) RELEASE SAVEPOINT active_record_2
676
696
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-08-24 09:52:26.343133"], ["updated_at", "2015-08-24 09:52:26.343133"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-09-28 11:47:44.300169"], ["updated_at", "2015-09-28 11:47:44.300169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
678
698
   (0.1ms) RELEASE SAVEPOINT active_record_2
679
699
   (0.1ms) SAVEPOINT active_record_2
680
- 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", "117"], ["created_at", "2015-08-24 09:52:26.345111"], ["updated_at", "2015-08-24 09:52:26.345111"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-09-28 11:47:44.302204"], ["updated_at", "2015-09-28 11:47:44.302204"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
701
+  (0.1ms) RELEASE SAVEPOINT active_record_2
702
+  (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", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-09-28 11:47:44.304171"], ["updated_at", "2015-09-28 11:47:44.304171"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-09-28 11:47:44.306152"], ["updated_at", "2015-09-28 11:47:44.306152"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
681
707
   (0.1ms) RELEASE SAVEPOINT active_record_2
682
- Processing by PushType::WysiwygMediaController#index as JSON
683
- Parameters: {"filter"=>"image"}
684
- 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
685
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
686
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
687
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
688
-  (0.1ms) ROLLBACK
689
-  (0.1ms) BEGIN
690
- -------------------------------------------------------------------------------------------
691
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
692
- -------------------------------------------------------------------------------------------
693
-  (0.0ms) SAVEPOINT active_record_1
694
-  (0.0ms) RELEASE SAVEPOINT active_record_1
695
-  (0.0ms) SAVEPOINT active_record_1
696
708
   (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", "118"], ["created_at", "2015-08-24 09:52:26.353423"], ["updated_at", "2015-08-24 09:52:26.353423"], ["file_ext", "png"], ["mime_type", "image/png"]]
709
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.308069"], ["updated_at", "2015-09-28 11:47:44.308069"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
698
710
   (0.1ms) RELEASE SAVEPOINT active_record_2
699
711
   (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", "119"], ["created_at", "2015-08-24 09:52:26.355449"], ["updated_at", "2015-08-24 09:52:26.355449"], ["file_ext", "png"], ["mime_type", "image/png"]]
712
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.310158"], ["updated_at", "2015-09-28 11:47:44.310158"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
701
713
   (0.1ms) RELEASE SAVEPOINT active_record_2
702
714
   (0.1ms) SAVEPOINT active_record_2
703
- 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", "120"], ["created_at", "2015-08-24 09:52:26.357562"], ["updated_at", "2015-08-24 09:52:26.357562"], ["file_ext", "png"], ["mime_type", "image/png"]]
715
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.312231"], ["updated_at", "2015-09-28 11:47:44.312231"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
704
716
   (0.1ms) RELEASE SAVEPOINT active_record_2
705
717
   (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", "121"], ["created_at", "2015-08-24 09:52:26.359777"], ["updated_at", "2015-08-24 09:52:26.359777"], ["file_ext", "png"], ["mime_type", "image/png"]]
718
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.314256"], ["updated_at", "2015-09-28 11:47:44.314256"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
707
719
   (0.1ms) RELEASE SAVEPOINT active_record_2
708
720
   (0.1ms) SAVEPOINT active_record_2
709
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.361872"], ["updated_at", "2015-08-24 09:52:26.361872"], ["file_ext", "png"], ["mime_type", "image/png"]]
721
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.316340"], ["updated_at", "2015-09-28 11:47:44.316340"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
710
722
   (0.1ms) RELEASE SAVEPOINT active_record_2
711
723
   (0.1ms) SAVEPOINT active_record_2
712
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-08-24 09:52:26.364007"], ["updated_at", "2015-08-24 09:52:26.364007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
724
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.318490"], ["updated_at", "2015-09-28 11:47:44.318490"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
713
725
   (0.1ms) RELEASE SAVEPOINT active_record_2
714
726
   (0.1ms) SAVEPOINT active_record_2
715
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-08-24 09:52:26.366098"], ["updated_at", "2015-08-24 09:52:26.366098"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.320472"], ["updated_at", "2015-09-28 11:47:44.320472"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
716
728
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
+ Processing by PushType::WysiwygMediaController#index as JSON
730
+ Parameters: {"filter"=>"file"}
731
+ 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
732
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
733
+ Completed 200 OK in 117ms (Views: 1.2ms | ActiveRecord: 0.6ms)
734
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
735
+  (0.1ms) ROLLBACK
736
+  (0.1ms) BEGIN
737
+ ------------------------------------------------------------------------------------------
738
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
739
+ ------------------------------------------------------------------------------------------
740
+  (0.0ms) SAVEPOINT active_record_1
741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
742
+  (0.0ms) SAVEPOINT active_record_1
717
743
   (0.1ms) SAVEPOINT active_record_2
718
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-08-24 09:52:26.368041"], ["updated_at", "2015-08-24 09:52:26.368041"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
744
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.442306"], ["updated_at", "2015-09-28 11:47:44.442306"], ["file_ext", "png"], ["mime_type", "image/png"]]
719
745
   (0.1ms) RELEASE SAVEPOINT active_record_2
720
746
   (0.1ms) SAVEPOINT active_record_2
721
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.370288"], ["updated_at", "2015-08-24 09:52:26.370288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
747
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.444593"], ["updated_at", "2015-09-28 11:47:44.444593"], ["file_ext", "png"], ["mime_type", "image/png"]]
722
748
   (0.1ms) RELEASE SAVEPOINT active_record_2
723
749
   (0.1ms) SAVEPOINT active_record_2
724
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.372308"], ["updated_at", "2015-08-24 09:52:26.372308"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
750
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.446841"], ["updated_at", "2015-09-28 11:47:44.446841"], ["file_ext", "png"], ["mime_type", "image/png"]]
725
751
   (0.1ms) RELEASE SAVEPOINT active_record_2
726
752
   (0.1ms) SAVEPOINT active_record_2
727
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.374351"], ["updated_at", "2015-08-24 09:52:26.374351"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
753
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.449229"], ["updated_at", "2015-09-28 11:47:44.449229"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
754
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
755
   (0.1ms) SAVEPOINT active_record_2
730
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.376419"], ["updated_at", "2015-08-24 09:52:26.376419"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
756
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.451203"], ["updated_at", "2015-09-28 11:47:44.451203"], ["file_ext", "png"], ["mime_type", "image/png"]]
731
757
   (0.1ms) RELEASE SAVEPOINT active_record_2
732
758
   (0.1ms) SAVEPOINT active_record_2
733
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.378505"], ["updated_at", "2015-08-24 09:52:26.378505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
759
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-09-28 11:47:44.453522"], ["updated_at", "2015-09-28 11:47:44.453522"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
734
760
   (0.1ms) RELEASE SAVEPOINT active_record_2
735
761
   (0.1ms) SAVEPOINT active_record_2
736
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.380572"], ["updated_at", "2015-08-24 09:52:26.380572"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
762
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-09-28 11:47:44.456153"], ["updated_at", "2015-09-28 11:47:44.456153"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
737
763
   (0.1ms) RELEASE SAVEPOINT active_record_2
738
764
   (0.1ms) SAVEPOINT active_record_2
739
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.382563"], ["updated_at", "2015-08-24 09:52:26.382563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
765
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-09-28 11:47:44.458410"], ["updated_at", "2015-09-28 11:47:44.458410"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
740
766
   (0.1ms) RELEASE SAVEPOINT active_record_2
741
767
   (0.1ms) SAVEPOINT active_record_2
742
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.384700"], ["updated_at", "2015-08-24 09:52:26.384700"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
768
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.460823"], ["updated_at", "2015-09-28 11:47:44.460823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
743
769
   (0.1ms) RELEASE SAVEPOINT active_record_2
744
770
   (0.1ms) SAVEPOINT active_record_2
745
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.386809"], ["updated_at", "2015-08-24 09:52:26.386809"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
771
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.463195"], ["updated_at", "2015-09-28 11:47:44.463195"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
746
772
   (0.1ms) RELEASE SAVEPOINT active_record_2
747
773
   (0.1ms) SAVEPOINT active_record_2
748
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.389126"], ["updated_at", "2015-08-24 09:52:26.389126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
774
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.465434"], ["updated_at", "2015-09-28 11:47:44.465434"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
749
775
   (0.1ms) RELEASE SAVEPOINT active_record_2
750
- Processing by PushType::WysiwygMediaController#index as JSON
751
- Parameters: {"filter"=>"image"}
752
- 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
753
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
754
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
755
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
756
-  (0.1ms) ROLLBACK
757
-  (0.1ms) BEGIN
758
- -------------------------------------------------------------------------------------------
759
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
760
- -------------------------------------------------------------------------------------------
761
-  (0.0ms) SAVEPOINT active_record_1
762
-  (0.0ms) RELEASE SAVEPOINT active_record_1
763
-  (0.1ms) SAVEPOINT active_record_1
764
776
   (0.1ms) SAVEPOINT active_record_2
765
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "136"], ["created_at", "2015-08-24 09:52:26.397507"], ["updated_at", "2015-08-24 09:52:26.397507"], ["file_ext", "png"], ["mime_type", "image/png"]]
777
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.467864"], ["updated_at", "2015-09-28 11:47:44.467864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
766
778
   (0.1ms) RELEASE SAVEPOINT active_record_2
767
779
   (0.1ms) SAVEPOINT active_record_2
768
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "137"], ["created_at", "2015-08-24 09:52:26.399622"], ["updated_at", "2015-08-24 09:52:26.399622"], ["file_ext", "png"], ["mime_type", "image/png"]]
780
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.470208"], ["updated_at", "2015-09-28 11:47:44.470208"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
769
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
770
782
   (0.1ms) SAVEPOINT active_record_2
771
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "138"], ["created_at", "2015-08-24 09:52:26.401896"], ["updated_at", "2015-08-24 09:52:26.401896"], ["file_ext", "png"], ["mime_type", "image/png"]]
783
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.472599"], ["updated_at", "2015-09-28 11:47:44.472599"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
772
784
   (0.1ms) RELEASE SAVEPOINT active_record_2
773
785
   (0.1ms) SAVEPOINT active_record_2
774
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.404128"], ["updated_at", "2015-08-24 09:52:26.404128"], ["file_ext", "png"], ["mime_type", "image/png"]]
786
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.475470"], ["updated_at", "2015-09-28 11:47:44.475470"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
775
787
   (0.1ms) RELEASE SAVEPOINT active_record_2
776
788
   (0.1ms) SAVEPOINT active_record_2
777
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.406264"], ["updated_at", "2015-08-24 09:52:26.406264"], ["file_ext", "png"], ["mime_type", "image/png"]]
789
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.477823"], ["updated_at", "2015-09-28 11:47:44.477823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
778
790
   (0.1ms) RELEASE SAVEPOINT active_record_2
779
791
   (0.1ms) SAVEPOINT active_record_2
780
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.408378"], ["updated_at", "2015-08-24 09:52:26.408378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
792
+ 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", "134"], ["created_at", "2015-09-28 11:47:44.480224"], ["updated_at", "2015-09-28 11:47:44.480224"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
781
793
   (0.1ms) RELEASE SAVEPOINT active_record_2
782
794
   (0.1ms) SAVEPOINT active_record_2
783
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-08-24 09:52:26.410431"], ["updated_at", "2015-08-24 09:52:26.410431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
795
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.483073"], ["updated_at", "2015-09-28 11:47:44.483073"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
784
796
   (0.1ms) RELEASE SAVEPOINT active_record_2
797
+ Processing by PushType::WysiwygMediaController#index as JSON
798
+ Parameters: {"filter"=>"file"}
799
+ 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
800
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
801
+ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
802
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
803
+  (0.1ms) ROLLBACK
804
+  (0.1ms) BEGIN
805
+ ------------------------------------------------------------------------------------------
806
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
807
+ ------------------------------------------------------------------------------------------
808
+  (0.0ms) SAVEPOINT active_record_1
809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
810
+  (0.0ms) SAVEPOINT active_record_1
785
811
   (0.1ms) SAVEPOINT active_record_2
786
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-08-24 09:52:26.412396"], ["updated_at", "2015-08-24 09:52:26.412396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
812
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "136"], ["created_at", "2015-09-28 11:47:44.499540"], ["updated_at", "2015-09-28 11:47:44.499540"], ["file_ext", "png"], ["mime_type", "image/png"]]
787
813
   (0.1ms) RELEASE SAVEPOINT active_record_2
788
814
   (0.1ms) SAVEPOINT active_record_2
789
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.414549"], ["updated_at", "2015-08-24 09:52:26.414549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
815
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "137"], ["created_at", "2015-09-28 11:47:44.501667"], ["updated_at", "2015-09-28 11:47:44.501667"], ["file_ext", "png"], ["mime_type", "image/png"]]
790
816
   (0.1ms) RELEASE SAVEPOINT active_record_2
791
817
   (0.1ms) SAVEPOINT active_record_2
792
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.416653"], ["updated_at", "2015-08-24 09:52:26.416653"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
818
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "138"], ["created_at", "2015-09-28 11:47:44.503667"], ["updated_at", "2015-09-28 11:47:44.503667"], ["file_ext", "png"], ["mime_type", "image/png"]]
793
819
   (0.1ms) RELEASE SAVEPOINT active_record_2
794
820
   (0.1ms) SAVEPOINT active_record_2
795
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.418761"], ["updated_at", "2015-08-24 09:52:26.418761"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
821
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.505890"], ["updated_at", "2015-09-28 11:47:44.505890"], ["file_ext", "png"], ["mime_type", "image/png"]]
796
822
   (0.1ms) RELEASE SAVEPOINT active_record_2
797
823
   (0.1ms) SAVEPOINT active_record_2
798
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.420801"], ["updated_at", "2015-08-24 09:52:26.420801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
824
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.507926"], ["updated_at", "2015-09-28 11:47:44.507926"], ["file_ext", "png"], ["mime_type", "image/png"]]
799
825
   (0.1ms) RELEASE SAVEPOINT active_record_2
800
826
   (0.1ms) SAVEPOINT active_record_2
801
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.422780"], ["updated_at", "2015-08-24 09:52:26.422780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
827
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.510109"], ["updated_at", "2015-09-28 11:47:44.510109"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
802
828
   (0.1ms) RELEASE SAVEPOINT active_record_2
803
829
   (0.1ms) SAVEPOINT active_record_2
804
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.424729"], ["updated_at", "2015-08-24 09:52:26.424729"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
830
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-09-28 11:47:44.512192"], ["updated_at", "2015-09-28 11:47:44.512192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
805
831
   (0.1ms) RELEASE SAVEPOINT active_record_2
806
832
   (0.1ms) SAVEPOINT active_record_2
807
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.426791"], ["updated_at", "2015-08-24 09:52:26.426791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
833
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-09-28 11:47:44.514341"], ["updated_at", "2015-09-28 11:47:44.514341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
808
834
   (0.1ms) RELEASE SAVEPOINT active_record_2
809
835
   (0.1ms) SAVEPOINT active_record_2
810
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.428824"], ["updated_at", "2015-08-24 09:52:26.428824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
836
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.516383"], ["updated_at", "2015-09-28 11:47:44.516383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
811
837
   (0.1ms) RELEASE SAVEPOINT active_record_2
812
838
   (0.1ms) SAVEPOINT active_record_2
813
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.430900"], ["updated_at", "2015-08-24 09:52:26.430900"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
839
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.518415"], ["updated_at", "2015-09-28 11:47:44.518415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
814
840
   (0.1ms) RELEASE SAVEPOINT active_record_2
815
841
   (0.1ms) SAVEPOINT active_record_2
816
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.432983"], ["updated_at", "2015-08-24 09:52:26.432983"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
842
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.521458"], ["updated_at", "2015-09-28 11:47:44.521458"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
817
843
   (0.1ms) RELEASE SAVEPOINT active_record_2
818
- Processing by PushType::WysiwygMediaController#index as JSON
819
- Parameters: {"filter"=>"image"}
820
- 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
821
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
822
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
823
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
824
-  (0.1ms) ROLLBACK
825
-  (0.1ms) BEGIN
826
- -------------------------------------------------------------------------------------------
827
- PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
828
- -------------------------------------------------------------------------------------------
829
-  (0.1ms) SAVEPOINT active_record_1
830
-  (0.1ms) RELEASE SAVEPOINT active_record_1
831
-  (0.0ms) SAVEPOINT active_record_1
832
844
   (0.1ms) SAVEPOINT active_record_2
833
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "154"], ["created_at", "2015-08-24 09:52:26.441290"], ["updated_at", "2015-08-24 09:52:26.441290"], ["file_ext", "png"], ["mime_type", "image/png"]]
845
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.523604"], ["updated_at", "2015-09-28 11:47:44.523604"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
834
846
   (0.1ms) RELEASE SAVEPOINT active_record_2
835
847
   (0.1ms) SAVEPOINT active_record_2
836
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "155"], ["created_at", "2015-08-24 09:52:26.443484"], ["updated_at", "2015-08-24 09:52:26.443484"], ["file_ext", "png"], ["mime_type", "image/png"]]
848
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.525676"], ["updated_at", "2015-09-28 11:47:44.525676"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
837
849
   (0.1ms) RELEASE SAVEPOINT active_record_2
838
850
   (0.1ms) SAVEPOINT active_record_2
839
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "156"], ["created_at", "2015-08-24 09:52:26.445598"], ["updated_at", "2015-08-24 09:52:26.445598"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.527809"], ["updated_at", "2015-09-28 11:47:44.527809"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
840
852
   (0.1ms) RELEASE SAVEPOINT active_record_2
841
853
   (0.1ms) SAVEPOINT active_record_2
842
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.447716"], ["updated_at", "2015-08-24 09:52:26.447716"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
+ 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-09-28 11:47:44.530013"], ["updated_at", "2015-09-28 11:47:44.530013"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
843
855
   (0.1ms) RELEASE SAVEPOINT active_record_2
844
856
   (0.1ms) SAVEPOINT active_record_2
845
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.449875"], ["updated_at", "2015-08-24 09:52:26.449875"], ["file_ext", "png"], ["mime_type", "image/png"]]
857
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.532553"], ["updated_at", "2015-09-28 11:47:44.532553"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
846
858
   (0.1ms) RELEASE SAVEPOINT active_record_2
847
859
   (0.1ms) SAVEPOINT active_record_2
848
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.452105"], ["updated_at", "2015-08-24 09:52:26.452105"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
860
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.534939"], ["updated_at", "2015-09-28 11:47:44.534939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
849
861
   (0.1ms) RELEASE SAVEPOINT active_record_2
850
862
   (0.1ms) SAVEPOINT active_record_2
851
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-08-24 09:52:26.454703"], ["updated_at", "2015-08-24 09:52:26.454703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
863
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.537076"], ["updated_at", "2015-09-28 11:47:44.537076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
852
864
   (0.1ms) RELEASE SAVEPOINT active_record_2
865
+ Processing by PushType::WysiwygMediaController#index as JSON
866
+ Parameters: {"filter"=>"file"}
867
+ 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
868
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
869
+ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
870
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
871
+  (0.1ms) ROLLBACK
872
+  (0.1ms) BEGIN
873
+ ------------------------------------------------------------------------------------------
874
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
875
+ ------------------------------------------------------------------------------------------
876
+  (0.0ms) SAVEPOINT active_record_1
877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
878
+  (0.1ms) SAVEPOINT active_record_1
853
879
   (0.1ms) SAVEPOINT active_record_2
854
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-08-24 09:52:26.457079"], ["updated_at", "2015-08-24 09:52:26.457079"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
880
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "154"], ["created_at", "2015-09-28 11:47:44.553708"], ["updated_at", "2015-09-28 11:47:44.553708"], ["file_ext", "png"], ["mime_type", "image/png"]]
855
881
   (0.1ms) RELEASE SAVEPOINT active_record_2
856
882
   (0.1ms) SAVEPOINT active_record_2
857
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.459381"], ["updated_at", "2015-08-24 09:52:26.459381"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
883
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "155"], ["created_at", "2015-09-28 11:47:44.555907"], ["updated_at", "2015-09-28 11:47:44.555907"], ["file_ext", "png"], ["mime_type", "image/png"]]
858
884
   (0.1ms) RELEASE SAVEPOINT active_record_2
859
885
   (0.1ms) SAVEPOINT active_record_2
860
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.461487"], ["updated_at", "2015-08-24 09:52:26.461487"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
886
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "156"], ["created_at", "2015-09-28 11:47:44.558046"], ["updated_at", "2015-09-28 11:47:44.558046"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
887
   (0.1ms) RELEASE SAVEPOINT active_record_2
862
888
   (0.1ms) SAVEPOINT active_record_2
863
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.463450"], ["updated_at", "2015-08-24 09:52:26.463450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
889
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.560157"], ["updated_at", "2015-09-28 11:47:44.560157"], ["file_ext", "png"], ["mime_type", "image/png"]]
864
890
   (0.1ms) RELEASE SAVEPOINT active_record_2
865
891
   (0.1ms) SAVEPOINT active_record_2
866
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.465702"], ["updated_at", "2015-08-24 09:52:26.465702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
892
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.562455"], ["updated_at", "2015-09-28 11:47:44.562455"], ["file_ext", "png"], ["mime_type", "image/png"]]
867
893
   (0.1ms) RELEASE SAVEPOINT active_record_2
868
894
   (0.1ms) SAVEPOINT active_record_2
869
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.467934"], ["updated_at", "2015-08-24 09:52:26.467934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
895
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.564742"], ["updated_at", "2015-09-28 11:47:44.564742"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
870
896
   (0.1ms) RELEASE SAVEPOINT active_record_2
871
897
   (0.1ms) SAVEPOINT active_record_2
872
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.470044"], ["updated_at", "2015-08-24 09:52:26.470044"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
898
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-09-28 11:47:44.566917"], ["updated_at", "2015-09-28 11:47:44.566917"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
873
899
   (0.1ms) RELEASE SAVEPOINT active_record_2
874
900
   (0.1ms) SAVEPOINT active_record_2
875
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.472391"], ["updated_at", "2015-08-24 09:52:26.472391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
901
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-09-28 11:47:44.569017"], ["updated_at", "2015-09-28 11:47:44.569017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
876
902
   (0.1ms) RELEASE SAVEPOINT active_record_2
877
903
   (0.1ms) SAVEPOINT active_record_2
878
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.474433"], ["updated_at", "2015-08-24 09:52:26.474433"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
904
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.571131"], ["updated_at", "2015-09-28 11:47:44.571131"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
879
905
   (0.1ms) RELEASE SAVEPOINT active_record_2
880
906
   (0.1ms) SAVEPOINT active_record_2
881
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.476786"], ["updated_at", "2015-08-24 09:52:26.476786"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
907
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.573361"], ["updated_at", "2015-09-28 11:47:44.573361"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
882
908
   (0.1ms) RELEASE SAVEPOINT active_record_2
883
909
   (0.1ms) SAVEPOINT active_record_2
884
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.479148"], ["updated_at", "2015-08-24 09:52:26.479148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
910
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.575625"], ["updated_at", "2015-09-28 11:47:44.575625"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
885
911
   (0.1ms) RELEASE SAVEPOINT active_record_2
886
- Processing by PushType::WysiwygMediaController#index as JSON
887
- Parameters: {"filter"=>"image"}
888
- 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
889
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
890
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
891
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
892
-  (0.1ms) ROLLBACK
893
-  (0.1ms) BEGIN
894
- --------------------------------------------------------------------------------------------
895
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
896
- --------------------------------------------------------------------------------------------
897
-  (0.1ms) SAVEPOINT active_record_1
898
-  (0.1ms) RELEASE SAVEPOINT active_record_1
899
-  (0.1ms) SAVEPOINT active_record_1
900
- Processing by PushType::WysiwygMediaController#create as JSON
901
- Parameters: {"asset"=>{}}
902
912
   (0.1ms) SAVEPOINT active_record_2
903
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
904
- Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.2ms)
905
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
906
-  (0.1ms) ROLLBACK
907
-  (0.1ms) BEGIN
908
- --------------------------------------------------------------------------------------------
909
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
910
- --------------------------------------------------------------------------------------------
911
-  (0.1ms) SAVEPOINT active_record_1
912
-  (0.1ms) RELEASE SAVEPOINT active_record_1
913
-  (0.1ms) SAVEPOINT active_record_1
914
- Processing by PushType::WysiwygMediaController#create as JSON
915
- Parameters: {"asset"=>{}}
913
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.577778"], ["updated_at", "2015-09-28 11:47:44.577778"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
914
+  (0.1ms) RELEASE SAVEPOINT active_record_2
915
+  (0.1ms) SAVEPOINT active_record_2
916
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.579904"], ["updated_at", "2015-09-28 11:47:44.579904"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
917
+  (0.1ms) RELEASE SAVEPOINT active_record_2
916
918
   (0.1ms) SAVEPOINT active_record_2
917
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
918
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
919
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
920
-  (0.1ms) ROLLBACK
921
-  (0.1ms) BEGIN
922
- --------------------------------------------------------------------------------------------
923
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
924
- --------------------------------------------------------------------------------------------
925
-  (0.1ms) SAVEPOINT active_record_1
926
-  (0.1ms) RELEASE SAVEPOINT active_record_1
927
-  (0.1ms) SAVEPOINT active_record_1
928
- Processing by PushType::WysiwygMediaController#create as JSON
929
- Parameters: {"asset"=>{}}
919
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.582150"], ["updated_at", "2015-09-28 11:47:44.582150"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
920
+  (0.1ms) RELEASE SAVEPOINT active_record_2
921
+  (0.1ms) SAVEPOINT active_record_2
922
+ 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", "168"], ["created_at", "2015-09-28 11:47:44.584385"], ["updated_at", "2015-09-28 11:47:44.584385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
923
+  (0.1ms) RELEASE SAVEPOINT active_record_2
930
924
   (0.1ms) SAVEPOINT active_record_2
931
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
932
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
925
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.586830"], ["updated_at", "2015-09-28 11:47:44.586830"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
926
+  (0.1ms) RELEASE SAVEPOINT active_record_2
927
+  (0.1ms) SAVEPOINT active_record_2
928
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.589009"], ["updated_at", "2015-09-28 11:47:44.589009"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
929
+  (0.1ms) RELEASE SAVEPOINT active_record_2
930
+  (0.1ms) SAVEPOINT active_record_2
931
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.591160"], ["updated_at", "2015-09-28 11:47:44.591160"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
932
+  (0.1ms) RELEASE SAVEPOINT active_record_2
933
+ Processing by PushType::WysiwygMediaController#index as JSON
934
+ Parameters: {"filter"=>"file"}
935
+ 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
936
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
937
+ Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.5ms)
938
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
939
+  (0.1ms) ROLLBACK
940
+  (0.1ms) BEGIN
941
+ -----------------------------------------------------------------------------------------
942
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
943
+ -----------------------------------------------------------------------------------------
944
+  (0.1ms) SAVEPOINT active_record_1
945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
946
+  (0.1ms) SAVEPOINT active_record_1
947
+ Processing by PushType::WysiwygMediaController#create as JSON
948
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3aedebe50 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150928-7156-542qi2>>}}
949
+  (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", "172"], ["created_at", "2015-09-28 11:47:44.609791"], ["updated_at", "2015-09-28 11:47:44.609791"], ["file_ext", "png"], ["mime_type", "image/png"]]
951
+  (0.1ms) RELEASE SAVEPOINT active_record_2
952
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
933
953
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
934
954
   (0.1ms) ROLLBACK
935
955
   (0.1ms) BEGIN
936
956
  -----------------------------------------------------------------------------------------
937
957
  PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
938
958
  -----------------------------------------------------------------------------------------
939
-  (0.1ms) SAVEPOINT active_record_1
959
+  (0.0ms) SAVEPOINT active_record_1
940
960
   (0.0ms) RELEASE SAVEPOINT active_record_1
941
961
   (0.0ms) SAVEPOINT active_record_1
942
962
  Processing by PushType::WysiwygMediaController#create as JSON
943
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9da9c0a0a0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1bdl8zz>>}}
963
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3b2c5b9b0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150928-7156-ewztek>>}}
944
964
   (0.1ms) SAVEPOINT active_record_2
945
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "172"], ["created_at", "2015-08-24 09:52:26.512129"], ["updated_at", "2015-08-24 09:52:26.512129"], ["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", "173"], ["created_at", "2015-09-28 11:47:44.614776"], ["updated_at", "2015-09-28 11:47:44.614776"], ["file_ext", "png"], ["mime_type", "image/png"]]
946
966
   (0.1ms) RELEASE SAVEPOINT active_record_2
947
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
967
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
948
968
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
949
969
   (0.1ms) ROLLBACK
950
970
   (0.1ms) BEGIN
951
971
  -----------------------------------------------------------------------------------------
952
972
  PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
953
973
  -----------------------------------------------------------------------------------------
954
-  (0.1ms) SAVEPOINT active_record_1
974
+  (0.0ms) SAVEPOINT active_record_1
955
975
   (0.0ms) RELEASE SAVEPOINT active_record_1
956
-  (0.1ms) SAVEPOINT active_record_1
976
+  (0.0ms) SAVEPOINT active_record_1
957
977
  Processing by PushType::WysiwygMediaController#create as JSON
958
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9daa661058 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1um3yov>>}}
978
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3af507590 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150928-7156-g6ofb4>>}}
959
979
   (0.1ms) SAVEPOINT active_record_2
960
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "173"], ["created_at", "2015-08-24 09:52:26.517920"], ["updated_at", "2015-08-24 09:52:26.517920"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-09-28 11:47:44.619699"], ["updated_at", "2015-09-28 11:47:44.619699"], ["file_ext", "png"], ["mime_type", "image/png"]]
961
981
   (0.1ms) RELEASE SAVEPOINT active_record_2
962
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
982
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
963
983
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
964
984
   (0.1ms) ROLLBACK
965
985
   (0.1ms) BEGIN
966
- -----------------------------------------------------------------------------------------
967
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
968
- -----------------------------------------------------------------------------------------
986
+ --------------------------------------------------------------------------------------
987
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
988
+ --------------------------------------------------------------------------------------
969
989
   (0.0ms) SAVEPOINT active_record_1
970
990
   (0.0ms) RELEASE SAVEPOINT active_record_1
971
-  (0.1ms) SAVEPOINT active_record_1
972
- Processing by PushType::WysiwygMediaController#create as JSON
973
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9dabde9568 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1q2dzjl>>}}
991
+  (0.0ms) SAVEPOINT active_record_1
974
992
   (0.1ms) SAVEPOINT active_record_2
975
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "174"], ["created_at", "2015-08-24 09:52:26.524182"], ["updated_at", "2015-08-24 09:52:26.524182"], ["file_ext", "png"], ["mime_type", "image/png"]]
993
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.623745"], ["updated_at", "2015-09-28 11:47:44.623745"], ["file_ext", "png"], ["mime_type", "image/png"]]
976
994
   (0.1ms) RELEASE SAVEPOINT active_record_2
977
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
978
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
979
-  (0.1ms) ROLLBACK
980
-  (0.1ms) BEGIN
981
- ---------------------------------------------------------------------------
982
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
983
- ---------------------------------------------------------------------------
984
-  (0.1ms) SAVEPOINT active_record_1
985
-  (0.1ms) RELEASE SAVEPOINT active_record_1
986
-  (0.1ms) SAVEPOINT active_record_1
987
995
   (0.1ms) SAVEPOINT active_record_2
988
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.530370"], ["updated_at", "2015-08-24 09:52:26.530370"], ["file_ext", "png"], ["mime_type", "image/png"]]
996
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.625652"], ["updated_at", "2015-09-28 11:47:44.625652"], ["file_ext", "png"], ["mime_type", "image/png"]]
989
997
   (0.1ms) RELEASE SAVEPOINT active_record_2
990
998
   (0.1ms) SAVEPOINT active_record_2
991
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.532670"], ["updated_at", "2015-08-24 09:52:26.532670"], ["file_ext", "png"], ["mime_type", "image/png"]]
999
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.627501"], ["updated_at", "2015-09-28 11:47:44.627501"], ["file_ext", "png"], ["mime_type", "image/png"]]
992
1000
   (0.1ms) RELEASE SAVEPOINT active_record_2
993
1001
   (0.1ms) SAVEPOINT active_record_2
994
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.534886"], ["updated_at", "2015-08-24 09:52:26.534886"], ["file_ext", "png"], ["mime_type", "image/png"]]
1002
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.629590"], ["updated_at", "2015-09-28 11:47:44.629590"], ["file_ext", "png"], ["mime_type", "image/png"]]
995
1003
   (0.1ms) RELEASE SAVEPOINT active_record_2
996
1004
   (0.1ms) SAVEPOINT active_record_2
997
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.537148"], ["updated_at", "2015-08-24 09:52:26.537148"], ["file_ext", "png"], ["mime_type", "image/png"]]
1005
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.631576"], ["updated_at", "2015-09-28 11:47:44.631576"], ["file_ext", "png"], ["mime_type", "image/png"]]
998
1006
   (0.1ms) RELEASE SAVEPOINT active_record_2
999
- 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
1000
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1001
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1002
-  (0.1ms) ROLLBACK
1003
-  (0.1ms) BEGIN
1004
- ---------------------------------------------------------------------------
1005
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
1006
- ---------------------------------------------------------------------------
1007
-  (0.0ms) SAVEPOINT active_record_1
1008
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1009
-  (0.1ms) SAVEPOINT active_record_1
1010
1007
   (0.1ms) SAVEPOINT active_record_2
1011
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.543186"], ["updated_at", "2015-08-24 09:52:26.543186"], ["file_ext", "png"], ["mime_type", "image/png"]]
1008
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.633508"], ["updated_at", "2015-09-28 11:47:44.633508"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1012
1009
   (0.1ms) RELEASE SAVEPOINT active_record_2
1013
1010
   (0.1ms) SAVEPOINT active_record_2
1014
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.545405"], ["updated_at", "2015-08-24 09:52:26.545405"], ["file_ext", "png"], ["mime_type", "image/png"]]
1011
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.635425"], ["updated_at", "2015-09-28 11:47:44.635425"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1015
1012
   (0.1ms) RELEASE SAVEPOINT active_record_2
1016
1013
   (0.1ms) SAVEPOINT active_record_2
1017
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.547409"], ["updated_at", "2015-08-24 09:52:26.547409"], ["file_ext", "png"], ["mime_type", "image/png"]]
1014
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.637389"], ["updated_at", "2015-09-28 11:47:44.637389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1018
1015
   (0.1ms) RELEASE SAVEPOINT active_record_2
1019
1016
   (0.1ms) SAVEPOINT active_record_2
1020
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.549534"], ["updated_at", "2015-08-24 09:52:26.549534"], ["file_ext", "png"], ["mime_type", "image/png"]]
1017
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.639468"], ["updated_at", "2015-09-28 11:47:44.639468"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1021
1018
   (0.1ms) RELEASE SAVEPOINT active_record_2
1022
- 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
1023
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1024
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1025
-  (0.1ms) ROLLBACK
1026
-  (0.1ms) BEGIN
1027
- ---------------------------------------------------------------------------
1028
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
1029
- ---------------------------------------------------------------------------
1030
-  (0.1ms) SAVEPOINT active_record_1
1031
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1032
-  (0.1ms) SAVEPOINT active_record_1
1033
1019
   (0.1ms) SAVEPOINT active_record_2
1034
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "183"], ["created_at", "2015-08-24 09:52:26.555096"], ["updated_at", "2015-08-24 09:52:26.555096"], ["file_ext", "png"], ["mime_type", "image/png"]]
1020
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.641675"], ["updated_at", "2015-09-28 11:47:44.641675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1035
1021
   (0.1ms) RELEASE SAVEPOINT active_record_2
1036
1022
   (0.1ms) SAVEPOINT active_record_2
1037
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "184"], ["created_at", "2015-08-24 09:52:26.557451"], ["updated_at", "2015-08-24 09:52:26.557451"], ["file_ext", "png"], ["mime_type", "image/png"]]
1023
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.644515"], ["updated_at", "2015-09-28 11:47:44.644515"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1038
1024
   (0.1ms) RELEASE SAVEPOINT active_record_2
1039
1025
   (0.1ms) SAVEPOINT active_record_2
1040
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "185"], ["created_at", "2015-08-24 09:52:26.559643"], ["updated_at", "2015-08-24 09:52:26.559643"], ["file_ext", "png"], ["mime_type", "image/png"]]
1026
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.646507"], ["updated_at", "2015-09-28 11:47:44.646507"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1041
1027
   (0.1ms) RELEASE SAVEPOINT active_record_2
1042
1028
   (0.1ms) SAVEPOINT active_record_2
1043
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "186"], ["created_at", "2015-08-24 09:52:26.561769"], ["updated_at", "2015-08-24 09:52:26.561769"], ["file_ext", "png"], ["mime_type", "image/png"]]
1029
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.648612"], ["updated_at", "2015-09-28 11:47:44.648612"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1044
1030
   (0.1ms) RELEASE SAVEPOINT active_record_2
1045
- 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
1046
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1047
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1048
-  (0.1ms) ROLLBACK
1049
-  (0.1ms) BEGIN
1050
- ---------------------------------------------------------------------------
1051
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
1052
- ---------------------------------------------------------------------------
1053
-  (0.1ms) SAVEPOINT active_record_1
1054
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
-  (0.1ms) SAVEPOINT active_record_1
1056
1031
   (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", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-08-24 09:52:26.567057"], ["updated_at", "2015-08-24 09:52:26.567057"], ["file_ext", "png"], ["mime_type", "image/png"]]
1032
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.650598"], ["updated_at", "2015-09-28 11:47:44.650598"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
1033
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
1034
   (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", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-08-24 09:52:26.569096"], ["updated_at", "2015-08-24 09:52:26.569096"], ["file_ext", "png"], ["mime_type", "image/png"]]
1035
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.652773"], ["updated_at", "2015-09-28 11:47:44.652773"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
1036
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
1037
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-08-24 09:52:26.571037"], ["updated_at", "2015-08-24 09:52:26.571037"], ["file_ext", "png"], ["mime_type", "image/png"]]
1038
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.654768"], ["updated_at", "2015-09-28 11:47:44.654768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
1039
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
1040
   (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", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-08-24 09:52:26.573042"], ["updated_at", "2015-08-24 09:52:26.573042"], ["file_ext", "png"], ["mime_type", "image/png"]]
1041
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.656737"], ["updated_at", "2015-09-28 11:47:44.656737"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
1042
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
- 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
1069
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1070
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1071
-  (0.1ms) ROLLBACK
1072
-  (0.1ms) BEGIN
1073
- ---------------------------------------------------------------------------
1074
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
1075
- ---------------------------------------------------------------------------
1076
-  (0.1ms) SAVEPOINT active_record_1
1077
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1078
-  (0.0ms) SAVEPOINT active_record_1
1079
1043
   (0.1ms) SAVEPOINT active_record_2
1080
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "191"], ["created_at", "2015-08-24 09:52:26.578218"], ["updated_at", "2015-08-24 09:52:26.578218"], ["file_ext", "png"], ["mime_type", "image/png"]]
1044
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.658620"], ["updated_at", "2015-09-28 11:47:44.658620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1081
1045
   (0.1ms) RELEASE SAVEPOINT active_record_2
1046
+ Processing by PushType::WysiwygMediaController#index as JSON
1047
+ Parameters: {"filter"=>"file", "page"=>2}
1048
+ 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
1049
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1050
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1051
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1052
+  (0.1ms) ROLLBACK
1053
+  (0.1ms) BEGIN
1054
+ --------------------------------------------------------------------------------------
1055
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
1056
+ --------------------------------------------------------------------------------------
1057
+  (0.1ms) SAVEPOINT active_record_1
1058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1059
+  (0.0ms) SAVEPOINT active_record_1
1082
1060
   (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", "192"], ["created_at", "2015-08-24 09:52:26.580251"], ["updated_at", "2015-08-24 09:52:26.580251"], ["file_ext", "png"], ["mime_type", "image/png"]]
1061
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.665523"], ["updated_at", "2015-09-28 11:47:44.665523"], ["file_ext", "png"], ["mime_type", "image/png"]]
1084
1062
   (0.1ms) RELEASE SAVEPOINT active_record_2
1085
1063
   (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", "193"], ["created_at", "2015-08-24 09:52:26.582224"], ["updated_at", "2015-08-24 09:52:26.582224"], ["file_ext", "png"], ["mime_type", "image/png"]]
1064
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.667553"], ["updated_at", "2015-09-28 11:47:44.667553"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
1065
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
1066
   (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", "194"], ["created_at", "2015-08-24 09:52:26.584111"], ["updated_at", "2015-08-24 09:52:26.584111"], ["file_ext", "png"], ["mime_type", "image/png"]]
1067
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.669525"], ["updated_at", "2015-09-28 11:47:44.669525"], ["file_ext", "png"], ["mime_type", "image/png"]]
1090
1068
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
- 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
1092
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1093
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1094
-  (0.1ms) ROLLBACK
1095
-  (0.1ms) BEGIN
1096
- ------------------------------------------------------------------------------------------
1097
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1098
- ------------------------------------------------------------------------------------------
1099
-  (0.1ms) SAVEPOINT active_record_1
1100
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1101
-  (0.0ms) SAVEPOINT active_record_1
1102
1069
   (0.1ms) SAVEPOINT active_record_2
1103
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.590474"], ["updated_at", "2015-08-24 09:52:26.590474"], ["file_ext", "png"], ["mime_type", "image/png"]]
1070
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.671433"], ["updated_at", "2015-09-28 11:47:44.671433"], ["file_ext", "png"], ["mime_type", "image/png"]]
1104
1071
   (0.1ms) RELEASE SAVEPOINT active_record_2
1105
1072
   (0.1ms) SAVEPOINT active_record_2
1106
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.592614"], ["updated_at", "2015-08-24 09:52:26.592614"], ["file_ext", "png"], ["mime_type", "image/png"]]
1073
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.673392"], ["updated_at", "2015-09-28 11:47:44.673392"], ["file_ext", "png"], ["mime_type", "image/png"]]
1107
1074
   (0.1ms) RELEASE SAVEPOINT active_record_2
1108
1075
   (0.1ms) SAVEPOINT active_record_2
1109
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.594725"], ["updated_at", "2015-08-24 09:52:26.594725"], ["file_ext", "png"], ["mime_type", "image/png"]]
1076
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.675437"], ["updated_at", "2015-09-28 11:47:44.675437"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1110
1077
   (0.1ms) RELEASE SAVEPOINT active_record_2
1111
1078
   (0.1ms) SAVEPOINT active_record_2
1112
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.596640"], ["updated_at", "2015-08-24 09:52:26.596640"], ["file_ext", "png"], ["mime_type", "image/png"]]
1079
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.677354"], ["updated_at", "2015-09-28 11:47:44.677354"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1113
1080
   (0.1ms) RELEASE SAVEPOINT active_record_2
1114
1081
   (0.1ms) SAVEPOINT active_record_2
1115
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.598521"], ["updated_at", "2015-08-24 09:52:26.598521"], ["file_ext", "png"], ["mime_type", "image/png"]]
1082
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.679269"], ["updated_at", "2015-09-28 11:47:44.679269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1116
1083
   (0.1ms) RELEASE SAVEPOINT active_record_2
1117
1084
   (0.1ms) SAVEPOINT active_record_2
1118
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.600593"], ["updated_at", "2015-08-24 09:52:26.600593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1085
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.681196"], ["updated_at", "2015-09-28 11:47:44.681196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1119
1086
   (0.1ms) RELEASE SAVEPOINT active_record_2
1120
1087
   (0.1ms) SAVEPOINT active_record_2
1121
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.602741"], ["updated_at", "2015-08-24 09:52:26.602741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1088
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.683125"], ["updated_at", "2015-09-28 11:47:44.683125"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1122
1089
   (0.1ms) RELEASE SAVEPOINT active_record_2
1123
1090
   (0.1ms) SAVEPOINT active_record_2
1124
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.604796"], ["updated_at", "2015-08-24 09:52:26.604796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1091
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.685079"], ["updated_at", "2015-09-28 11:47:44.685079"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1125
1092
   (0.1ms) RELEASE SAVEPOINT active_record_2
1126
1093
   (0.1ms) SAVEPOINT active_record_2
1127
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.606729"], ["updated_at", "2015-08-24 09:52:26.606729"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1094
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.687123"], ["updated_at", "2015-09-28 11:47:44.687123"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1128
1095
   (0.1ms) RELEASE SAVEPOINT active_record_2
1129
1096
   (0.1ms) SAVEPOINT active_record_2
1130
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.643391"], ["updated_at", "2015-08-24 09:52:26.643391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1097
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.689043"], ["updated_at", "2015-09-28 11:47:44.689043"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1131
1098
   (0.1ms) RELEASE SAVEPOINT active_record_2
1132
1099
   (0.1ms) SAVEPOINT active_record_2
1133
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.645739"], ["updated_at", "2015-08-24 09:52:26.645739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1100
+ 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", "206"], ["created_at", "2015-09-28 11:47:44.690959"], ["updated_at", "2015-09-28 11:47:44.690959"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1134
1101
   (0.1ms) RELEASE SAVEPOINT active_record_2
1135
1102
   (0.1ms) SAVEPOINT active_record_2
1136
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.648047"], ["updated_at", "2015-08-24 09:52:26.648047"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1103
+ 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", "207"], ["created_at", "2015-09-28 11:47:44.729497"], ["updated_at", "2015-09-28 11:47:44.729497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1137
1104
   (0.1ms) RELEASE SAVEPOINT active_record_2
1138
1105
   (0.1ms) SAVEPOINT active_record_2
1139
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.650451"], ["updated_at", "2015-08-24 09:52:26.650451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1106
+ 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", "208"], ["created_at", "2015-09-28 11:47:44.732347"], ["updated_at", "2015-09-28 11:47:44.732347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1140
1107
   (0.1ms) RELEASE SAVEPOINT active_record_2
1141
1108
   (0.1ms) SAVEPOINT active_record_2
1142
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.653002"], ["updated_at", "2015-08-24 09:52:26.653002"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1109
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.735197"], ["updated_at", "2015-09-28 11:47:44.735197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1143
1110
   (0.1ms) RELEASE SAVEPOINT active_record_2
1144
1111
   (0.1ms) SAVEPOINT active_record_2
1145
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.655136"], ["updated_at", "2015-08-24 09:52:26.655136"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1112
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.737987"], ["updated_at", "2015-09-28 11:47:44.737987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1146
1113
   (0.1ms) RELEASE SAVEPOINT active_record_2
1114
+ Processing by PushType::WysiwygMediaController#index as JSON
1115
+ Parameters: {"filter"=>"file", "page"=>2}
1116
+ 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
1117
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1118
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1119
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1120
+  (0.1ms) ROLLBACK
1121
+  (0.1ms) BEGIN
1122
+ --------------------------------------------------------------------------------------
1123
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
1124
+ --------------------------------------------------------------------------------------
1125
+  (0.1ms) SAVEPOINT active_record_1
1126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1127
+  (0.0ms) SAVEPOINT active_record_1
1147
1128
   (0.1ms) SAVEPOINT active_record_2
1148
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.657163"], ["updated_at", "2015-08-24 09:52:26.657163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1129
+ 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", "211"], ["created_at", "2015-09-28 11:47:44.747326"], ["updated_at", "2015-09-28 11:47:44.747326"], ["file_ext", "png"], ["mime_type", "image/png"]]
1149
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
1150
1131
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-08-24 09:52:26.659238"], ["updated_at", "2015-08-24 09:52:26.659238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1132
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.750111"], ["updated_at", "2015-09-28 11:47:44.750111"], ["file_ext", "png"], ["mime_type", "image/png"]]
1152
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
1153
1134
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-08-24 09:52:26.661481"], ["updated_at", "2015-08-24 09:52:26.661481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1135
+ 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", "213"], ["created_at", "2015-09-28 11:47:44.752831"], ["updated_at", "2015-09-28 11:47:44.752831"], ["file_ext", "png"], ["mime_type", "image/png"]]
1155
1136
   (0.1ms) RELEASE SAVEPOINT active_record_2
1156
- Processing by PushType::WysiwygMediaController#index as JSON
1157
- Parameters: {"filter"=>"file"}
1158
- 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
1159
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1160
- Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1161
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1162
-  (0.1ms) ROLLBACK
1163
-  (0.1ms) BEGIN
1164
- ------------------------------------------------------------------------------------------
1165
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1166
- ------------------------------------------------------------------------------------------
1167
-  (0.1ms) SAVEPOINT active_record_1
1168
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1169
-  (0.0ms) SAVEPOINT active_record_1
1170
1137
   (0.1ms) SAVEPOINT active_record_2
1171
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.678871"], ["updated_at", "2015-08-24 09:52:26.678871"], ["file_ext", "png"], ["mime_type", "image/png"]]
1138
+ 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", "214"], ["created_at", "2015-09-28 11:47:44.755504"], ["updated_at", "2015-09-28 11:47:44.755504"], ["file_ext", "png"], ["mime_type", "image/png"]]
1172
1139
   (0.1ms) RELEASE SAVEPOINT active_record_2
1173
1140
   (0.1ms) SAVEPOINT active_record_2
1174
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.681009"], ["updated_at", "2015-08-24 09:52:26.681009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1141
+ 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-09-28 11:47:44.758572"], ["updated_at", "2015-09-28 11:47:44.758572"], ["file_ext", "png"], ["mime_type", "image/png"]]
1175
1142
   (0.1ms) RELEASE SAVEPOINT active_record_2
1176
1143
   (0.1ms) SAVEPOINT active_record_2
1177
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.682926"], ["updated_at", "2015-08-24 09:52:26.682926"], ["file_ext", "png"], ["mime_type", "image/png"]]
1144
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.761466"], ["updated_at", "2015-09-28 11:47:44.761466"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1178
1145
   (0.1ms) RELEASE SAVEPOINT active_record_2
1179
1146
   (0.1ms) SAVEPOINT active_record_2
1180
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.684979"], ["updated_at", "2015-08-24 09:52:26.684979"], ["file_ext", "png"], ["mime_type", "image/png"]]
1147
+ 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", "217"], ["created_at", "2015-09-28 11:47:44.764422"], ["updated_at", "2015-09-28 11:47:44.764422"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1181
1148
   (0.1ms) RELEASE SAVEPOINT active_record_2
1182
1149
   (0.1ms) SAVEPOINT active_record_2
1183
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.686971"], ["updated_at", "2015-08-24 09:52:26.686971"], ["file_ext", "png"], ["mime_type", "image/png"]]
1150
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.767335"], ["updated_at", "2015-09-28 11:47:44.767335"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1184
1151
   (0.1ms) RELEASE SAVEPOINT active_record_2
1185
1152
   (0.1ms) SAVEPOINT active_record_2
1186
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.689220"], ["updated_at", "2015-08-24 09:52:26.689220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1153
+ 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", "219"], ["created_at", "2015-09-28 11:47:44.770047"], ["updated_at", "2015-09-28 11:47:44.770047"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1187
1154
   (0.1ms) RELEASE SAVEPOINT active_record_2
1188
1155
   (0.1ms) SAVEPOINT active_record_2
1189
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.691277"], ["updated_at", "2015-08-24 09:52:26.691277"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1156
+ 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", "220"], ["created_at", "2015-09-28 11:47:44.772865"], ["updated_at", "2015-09-28 11:47:44.772865"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1190
1157
   (0.1ms) RELEASE SAVEPOINT active_record_2
1191
1158
   (0.1ms) SAVEPOINT active_record_2
1192
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.693389"], ["updated_at", "2015-08-24 09:52:26.693389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1159
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.775947"], ["updated_at", "2015-09-28 11:47:44.775947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1193
1160
   (0.1ms) RELEASE SAVEPOINT active_record_2
1194
1161
   (0.1ms) SAVEPOINT active_record_2
1195
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.695449"], ["updated_at", "2015-08-24 09:52:26.695449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1162
+ 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", "222"], ["created_at", "2015-09-28 11:47:44.778796"], ["updated_at", "2015-09-28 11:47:44.778796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1196
1163
   (0.1ms) RELEASE SAVEPOINT active_record_2
1197
1164
   (0.1ms) SAVEPOINT active_record_2
1198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.697600"], ["updated_at", "2015-08-24 09:52:26.697600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1165
+ 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", "223"], ["created_at", "2015-09-28 11:47:44.781984"], ["updated_at", "2015-09-28 11:47:44.781984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1199
1166
   (0.1ms) RELEASE SAVEPOINT active_record_2
1200
1167
   (0.1ms) SAVEPOINT active_record_2
1201
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.699702"], ["updated_at", "2015-08-24 09:52:26.699702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1168
+ 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", "224"], ["created_at", "2015-09-28 11:47:44.785043"], ["updated_at", "2015-09-28 11:47:44.785043"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1202
1169
   (0.1ms) RELEASE SAVEPOINT active_record_2
1203
1170
   (0.1ms) SAVEPOINT active_record_2
1204
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.701879"], ["updated_at", "2015-08-24 09:52:26.701879"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1171
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.788223"], ["updated_at", "2015-09-28 11:47:44.788223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1205
1172
   (0.1ms) RELEASE SAVEPOINT active_record_2
1206
1173
   (0.1ms) SAVEPOINT active_record_2
1207
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.703931"], ["updated_at", "2015-08-24 09:52:26.703931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1174
+ 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", "226"], ["created_at", "2015-09-28 11:47:44.790996"], ["updated_at", "2015-09-28 11:47:44.790996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1208
1175
   (0.1ms) RELEASE SAVEPOINT active_record_2
1209
1176
   (0.1ms) SAVEPOINT active_record_2
1210
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.705872"], ["updated_at", "2015-08-24 09:52:26.705872"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1177
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.794156"], ["updated_at", "2015-09-28 11:47:44.794156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1211
1178
   (0.1ms) RELEASE SAVEPOINT active_record_2
1212
1179
   (0.1ms) SAVEPOINT active_record_2
1213
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.707841"], ["updated_at", "2015-08-24 09:52:26.707841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1180
+ 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", "228"], ["created_at", "2015-09-28 11:47:44.796743"], ["updated_at", "2015-09-28 11:47:44.796743"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1214
1181
   (0.1ms) RELEASE SAVEPOINT active_record_2
1182
+ Processing by PushType::WysiwygMediaController#index as JSON
1183
+ Parameters: {"filter"=>"file", "page"=>2}
1184
+ 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
1185
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1186
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
1187
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1188
+  (0.1ms) ROLLBACK
1189
+  (0.1ms) BEGIN
1190
+ --------------------------------------------------------------------------------------
1191
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
1192
+ --------------------------------------------------------------------------------------
1193
+  (0.1ms) SAVEPOINT active_record_1
1194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1195
+  (0.1ms) SAVEPOINT active_record_1
1215
1196
   (0.1ms) SAVEPOINT active_record_2
1216
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.709853"], ["updated_at", "2015-08-24 09:52:26.709853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1197
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.805370"], ["updated_at", "2015-09-28 11:47:44.805370"], ["file_ext", "png"], ["mime_type", "image/png"]]
1217
1198
   (0.1ms) RELEASE SAVEPOINT active_record_2
1218
1199
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-08-24 09:52:26.712225"], ["updated_at", "2015-08-24 09:52:26.712225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1200
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.808155"], ["updated_at", "2015-09-28 11:47:44.808155"], ["file_ext", "png"], ["mime_type", "image/png"]]
1220
1201
   (0.1ms) RELEASE SAVEPOINT active_record_2
1221
1202
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-08-24 09:52:26.714438"], ["updated_at", "2015-08-24 09:52:26.714438"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1203
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.810796"], ["updated_at", "2015-09-28 11:47:44.810796"], ["file_ext", "png"], ["mime_type", "image/png"]]
1223
1204
   (0.1ms) RELEASE SAVEPOINT active_record_2
1224
- Processing by PushType::WysiwygMediaController#index as JSON
1225
- Parameters: {"filter"=>"file"}
1226
- 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
1227
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1228
- Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1229
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1230
-  (0.1ms) ROLLBACK
1231
-  (0.1ms) BEGIN
1232
- ------------------------------------------------------------------------------------------
1233
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1234
- ------------------------------------------------------------------------------------------
1235
-  (0.1ms) SAVEPOINT active_record_1
1236
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1237
-  (0.0ms) SAVEPOINT active_record_1
1238
1205
   (0.1ms) SAVEPOINT active_record_2
1239
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.731101"], ["updated_at", "2015-08-24 09:52:26.731101"], ["file_ext", "png"], ["mime_type", "image/png"]]
1206
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.813226"], ["updated_at", "2015-09-28 11:47:44.813226"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
1207
   (0.1ms) RELEASE SAVEPOINT active_record_2
1241
1208
   (0.1ms) SAVEPOINT active_record_2
1242
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.733484"], ["updated_at", "2015-08-24 09:52:26.733484"], ["file_ext", "png"], ["mime_type", "image/png"]]
1209
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.815712"], ["updated_at", "2015-09-28 11:47:44.815712"], ["file_ext", "png"], ["mime_type", "image/png"]]
1243
1210
   (0.1ms) RELEASE SAVEPOINT active_record_2
1244
1211
   (0.1ms) SAVEPOINT active_record_2
1245
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.735773"], ["updated_at", "2015-08-24 09:52:26.735773"], ["file_ext", "png"], ["mime_type", "image/png"]]
1212
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.818350"], ["updated_at", "2015-09-28 11:47:44.818350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1246
1213
   (0.1ms) RELEASE SAVEPOINT active_record_2
1247
1214
   (0.1ms) SAVEPOINT active_record_2
1248
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.737794"], ["updated_at", "2015-08-24 09:52:26.737794"], ["file_ext", "png"], ["mime_type", "image/png"]]
1215
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.820813"], ["updated_at", "2015-09-28 11:47:44.820813"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1249
1216
   (0.1ms) RELEASE SAVEPOINT active_record_2
1250
1217
   (0.1ms) SAVEPOINT active_record_2
1251
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.739889"], ["updated_at", "2015-08-24 09:52:26.739889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1218
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.823166"], ["updated_at", "2015-09-28 11:47:44.823166"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1252
1219
   (0.1ms) RELEASE SAVEPOINT active_record_2
1253
1220
   (0.1ms) SAVEPOINT active_record_2
1254
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.741890"], ["updated_at", "2015-08-24 09:52:26.741890"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1221
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.825520"], ["updated_at", "2015-09-28 11:47:44.825520"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1255
1222
   (0.1ms) RELEASE SAVEPOINT active_record_2
1256
1223
   (0.1ms) SAVEPOINT active_record_2
1257
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.744077"], ["updated_at", "2015-08-24 09:52:26.744077"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1224
+ 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", "238"], ["created_at", "2015-09-28 11:47:44.827965"], ["updated_at", "2015-09-28 11:47:44.827965"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1258
1225
   (0.1ms) RELEASE SAVEPOINT active_record_2
1259
1226
   (0.1ms) SAVEPOINT active_record_2
1260
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.746375"], ["updated_at", "2015-08-24 09:52:26.746375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1227
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.830572"], ["updated_at", "2015-09-28 11:47:44.830572"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1261
1228
   (0.1ms) RELEASE SAVEPOINT active_record_2
1262
1229
   (0.1ms) SAVEPOINT active_record_2
1263
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.748527"], ["updated_at", "2015-08-24 09:52:26.748527"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1230
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.833163"], ["updated_at", "2015-09-28 11:47:44.833163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1264
1231
   (0.1ms) RELEASE SAVEPOINT active_record_2
1265
1232
   (0.1ms) SAVEPOINT active_record_2
1266
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.750727"], ["updated_at", "2015-08-24 09:52:26.750727"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1233
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.835561"], ["updated_at", "2015-09-28 11:47:44.835561"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1267
1234
   (0.1ms) RELEASE SAVEPOINT active_record_2
1268
1235
   (0.1ms) SAVEPOINT active_record_2
1269
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.752796"], ["updated_at", "2015-08-24 09:52:26.752796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1236
+ 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", "242"], ["created_at", "2015-09-28 11:47:44.838086"], ["updated_at", "2015-09-28 11:47:44.838086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1270
1237
   (0.1ms) RELEASE SAVEPOINT active_record_2
1271
1238
   (0.1ms) SAVEPOINT active_record_2
1272
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.755025"], ["updated_at", "2015-08-24 09:52:26.755025"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1239
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.840791"], ["updated_at", "2015-09-28 11:47:44.840791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1273
1240
   (0.1ms) RELEASE SAVEPOINT active_record_2
1274
1241
   (0.1ms) SAVEPOINT active_record_2
1275
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.757224"], ["updated_at", "2015-08-24 09:52:26.757224"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1242
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-09-28 11:47:44.843388"], ["updated_at", "2015-09-28 11:47:44.843388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1276
1243
   (0.1ms) RELEASE SAVEPOINT active_record_2
1277
1244
   (0.1ms) SAVEPOINT active_record_2
1278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.759318"], ["updated_at", "2015-08-24 09:52:26.759318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1245
+ 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", "245"], ["created_at", "2015-09-28 11:47:44.845995"], ["updated_at", "2015-09-28 11:47:44.845995"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1279
1246
   (0.1ms) RELEASE SAVEPOINT active_record_2
1280
1247
   (0.1ms) SAVEPOINT active_record_2
1281
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.761383"], ["updated_at", "2015-08-24 09:52:26.761383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1248
+ 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", "246"], ["created_at", "2015-09-28 11:47:44.848659"], ["updated_at", "2015-09-28 11:47:44.848659"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1282
1249
   (0.1ms) RELEASE SAVEPOINT active_record_2
1250
+ Processing by PushType::WysiwygMediaController#index as JSON
1251
+ Parameters: {"filter"=>"file", "page"=>2}
1252
+ 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
1253
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1254
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1255
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1256
+  (0.1ms) ROLLBACK
1257
+  (0.1ms) BEGIN
1258
+ ---------------------------------------------------------------------------
1259
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
1260
+ ---------------------------------------------------------------------------
1261
+  (0.1ms) SAVEPOINT active_record_1
1262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1263
+  (0.1ms) SAVEPOINT active_record_1
1283
1264
   (0.1ms) SAVEPOINT active_record_2
1284
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.763647"], ["updated_at", "2015-08-24 09:52:26.763647"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.858799"], ["updated_at", "2015-09-28 11:47:44.858799"], ["file_ext", "png"], ["mime_type", "image/png"]]
1285
1266
   (0.1ms) RELEASE SAVEPOINT active_record_2
1286
1267
   (0.1ms) SAVEPOINT active_record_2
1287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.765878"], ["updated_at", "2015-08-24 09:52:26.765878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1268
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.861042"], ["updated_at", "2015-09-28 11:47:44.861042"], ["file_ext", "png"], ["mime_type", "image/png"]]
1288
1269
   (0.1ms) RELEASE SAVEPOINT active_record_2
1289
1270
   (0.1ms) SAVEPOINT active_record_2
1290
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.768251"], ["updated_at", "2015-08-24 09:52:26.768251"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1271
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.863062"], ["updated_at", "2015-09-28 11:47:44.863062"], ["file_ext", "png"], ["mime_type", "image/png"]]
1291
1272
   (0.1ms) RELEASE SAVEPOINT active_record_2
1292
- Processing by PushType::WysiwygMediaController#index as JSON
1293
- Parameters: {"filter"=>"file"}
1294
- 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
1295
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1296
- Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1297
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1273
+  (0.1ms) SAVEPOINT active_record_2
1274
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.864977"], ["updated_at", "2015-09-28 11:47:44.864977"], ["file_ext", "png"], ["mime_type", "image/png"]]
1275
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1276
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1277
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1298
1278
   (0.1ms) ROLLBACK
1299
1279
   (0.1ms) BEGIN
1300
- ------------------------------------------------------------------------------------------
1301
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1302
- ------------------------------------------------------------------------------------------
1280
+ ---------------------------------------------------------------------------
1281
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
1282
+ ---------------------------------------------------------------------------
1303
1283
   (0.0ms) SAVEPOINT active_record_1
1304
1284
   (0.0ms) RELEASE SAVEPOINT active_record_1
1305
-  (0.1ms) SAVEPOINT active_record_1
1285
+  (0.0ms) SAVEPOINT active_record_1
1306
1286
   (0.1ms) SAVEPOINT active_record_2
1307
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.784570"], ["updated_at", "2015-08-24 09:52:26.784570"], ["file_ext", "png"], ["mime_type", "image/png"]]
1287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.869325"], ["updated_at", "2015-09-28 11:47:44.869325"], ["file_ext", "png"], ["mime_type", "image/png"]]
1308
1288
   (0.1ms) RELEASE SAVEPOINT active_record_2
1309
1289
   (0.1ms) SAVEPOINT active_record_2
1310
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.786776"], ["updated_at", "2015-08-24 09:52:26.786776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1290
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.871416"], ["updated_at", "2015-09-28 11:47:44.871416"], ["file_ext", "png"], ["mime_type", "image/png"]]
1311
1291
   (0.1ms) RELEASE SAVEPOINT active_record_2
1312
1292
   (0.1ms) SAVEPOINT active_record_2
1313
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.788794"], ["updated_at", "2015-08-24 09:52:26.788794"], ["file_ext", "png"], ["mime_type", "image/png"]]
1293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.873499"], ["updated_at", "2015-09-28 11:47:44.873499"], ["file_ext", "png"], ["mime_type", "image/png"]]
1314
1294
   (0.1ms) RELEASE SAVEPOINT active_record_2
1315
1295
   (0.1ms) SAVEPOINT active_record_2
1316
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.790847"], ["updated_at", "2015-08-24 09:52:26.790847"], ["file_ext", "png"], ["mime_type", "image/png"]]
1296
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.875646"], ["updated_at", "2015-09-28 11:47:44.875646"], ["file_ext", "png"], ["mime_type", "image/png"]]
1317
1297
   (0.1ms) RELEASE SAVEPOINT active_record_2
1318
-  (0.1ms) SAVEPOINT active_record_2
1319
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-08-24 09:52:26.792953"], ["updated_at", "2015-08-24 09:52:26.792953"], ["file_ext", "png"], ["mime_type", "image/png"]]
1320
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1298
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1299
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1300
+  (0.1ms) ROLLBACK
1301
+  (0.0ms) BEGIN
1302
+ ---------------------------------------------------------------------------
1303
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
1304
+ ---------------------------------------------------------------------------
1305
+  (0.0ms) SAVEPOINT active_record_1
1306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1307
+  (0.0ms) SAVEPOINT active_record_1
1321
1308
   (0.1ms) SAVEPOINT active_record_2
1322
- 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", "254"], ["created_at", "2015-08-24 09:52:26.795120"], ["updated_at", "2015-08-24 09:52:26.795120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1309
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "255"], ["created_at", "2015-09-28 11:47:44.879917"], ["updated_at", "2015-09-28 11:47:44.879917"], ["file_ext", "png"], ["mime_type", "image/png"]]
1323
1310
   (0.1ms) RELEASE SAVEPOINT active_record_2
1324
1311
   (0.1ms) SAVEPOINT active_record_2
1325
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.797334"], ["updated_at", "2015-08-24 09:52:26.797334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1312
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "256"], ["created_at", "2015-09-28 11:47:44.882161"], ["updated_at", "2015-09-28 11:47:44.882161"], ["file_ext", "png"], ["mime_type", "image/png"]]
1326
1313
   (0.1ms) RELEASE SAVEPOINT active_record_2
1327
1314
   (0.1ms) SAVEPOINT active_record_2
1328
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.799424"], ["updated_at", "2015-08-24 09:52:26.799424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "257"], ["created_at", "2015-09-28 11:47:44.885073"], ["updated_at", "2015-09-28 11:47:44.885073"], ["file_ext", "png"], ["mime_type", "image/png"]]
1329
1316
   (0.1ms) RELEASE SAVEPOINT active_record_2
1330
1317
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-08-24 09:52:26.801532"], ["updated_at", "2015-08-24 09:52:26.801532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1318
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "258"], ["created_at", "2015-09-28 11:47:44.887143"], ["updated_at", "2015-09-28 11:47:44.887143"], ["file_ext", "png"], ["mime_type", "image/png"]]
1332
1319
   (0.1ms) RELEASE SAVEPOINT active_record_2
1333
-  (0.1ms) SAVEPOINT active_record_2
1334
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.803739"], ["updated_at", "2015-08-24 09:52:26.803739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1335
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1320
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1321
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1322
+  (0.1ms) ROLLBACK
1323
+  (0.1ms) BEGIN
1324
+ ---------------------------------------------------------------------------
1325
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
1326
+ ---------------------------------------------------------------------------
1327
+  (0.0ms) SAVEPOINT active_record_1
1328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1329
+  (0.1ms) SAVEPOINT active_record_1
1336
1330
   (0.1ms) SAVEPOINT active_record_2
1337
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.806015"], ["updated_at", "2015-08-24 09:52:26.806015"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "259"], ["created_at", "2015-09-28 11:47:44.891724"], ["updated_at", "2015-09-28 11:47:44.891724"], ["file_ext", "png"], ["mime_type", "image/png"]]
1338
1332
   (0.1ms) RELEASE SAVEPOINT active_record_2
1339
1333
   (0.1ms) SAVEPOINT active_record_2
1340
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.808221"], ["updated_at", "2015-08-24 09:52:26.808221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1334
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "260"], ["created_at", "2015-09-28 11:47:44.893989"], ["updated_at", "2015-09-28 11:47:44.893989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1341
1335
   (0.1ms) RELEASE SAVEPOINT active_record_2
1342
1336
   (0.1ms) SAVEPOINT active_record_2
1343
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.810310"], ["updated_at", "2015-08-24 09:52:26.810310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1337
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "261"], ["created_at", "2015-09-28 11:47:44.895922"], ["updated_at", "2015-09-28 11:47:44.895922"], ["file_ext", "png"], ["mime_type", "image/png"]]
1344
1338
   (0.1ms) RELEASE SAVEPOINT active_record_2
1345
1339
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-08-24 09:52:26.812505"], ["updated_at", "2015-08-24 09:52:26.812505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1340
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "262"], ["created_at", "2015-09-28 11:47:44.898060"], ["updated_at", "2015-09-28 11:47:44.898060"], ["file_ext", "png"], ["mime_type", "image/png"]]
1347
1341
   (0.1ms) RELEASE SAVEPOINT active_record_2
1348
-  (0.1ms) SAVEPOINT active_record_2
1349
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.814607"], ["updated_at", "2015-08-24 09:52:26.814607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1350
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1342
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1343
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1344
+  (0.1ms) ROLLBACK
1345
+  (0.1ms) BEGIN
1346
+ ---------------------------------------------------------------------------
1347
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
1348
+ ---------------------------------------------------------------------------
1349
+  (0.1ms) SAVEPOINT active_record_1
1350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1351
+  (0.1ms) SAVEPOINT active_record_1
1351
1352
   (0.1ms) SAVEPOINT active_record_2
1352
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.816798"], ["updated_at", "2015-08-24 09:52:26.816798"], ["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", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-09-28 11:47:44.902709"], ["updated_at", "2015-09-28 11:47:44.902709"], ["file_ext", "png"], ["mime_type", "image/png"]]
1353
1354
   (0.1ms) RELEASE SAVEPOINT active_record_2
1354
1355
   (0.1ms) SAVEPOINT active_record_2
1355
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.819014"], ["updated_at", "2015-08-24 09:52:26.819014"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-09-28 11:47:44.904897"], ["updated_at", "2015-09-28 11:47:44.904897"], ["file_ext", "png"], ["mime_type", "image/png"]]
1356
1357
   (0.1ms) RELEASE SAVEPOINT active_record_2
1357
1358
   (0.1ms) SAVEPOINT active_record_2
1358
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-24 09:52:26.821242"], ["updated_at", "2015-08-24 09:52:26.821242"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1359
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.906961"], ["updated_at", "2015-09-28 11:47:44.906961"], ["file_ext", "png"], ["mime_type", "image/png"]]
1359
1360
   (0.1ms) RELEASE SAVEPOINT active_record_2
1360
- Processing by PushType::WysiwygMediaController#index as JSON
1361
- Parameters: {"filter"=>"file"}
1362
- 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
1363
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1364
- Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1361
+  (0.1ms) SAVEPOINT active_record_2
1362
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.909020"], ["updated_at", "2015-09-28 11:47:44.909020"], ["file_ext", "png"], ["mime_type", "image/png"]]
1363
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1364
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1365
1365
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1366
1366
   (0.1ms) ROLLBACK
1367
1367
   (0.1ms) BEGIN
@@ -1369,15 +1369,15 @@ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1369
1369
  PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
1370
1370
  ------------------------------------------------------------------------------------
1371
1371
   (0.1ms) SAVEPOINT active_record_1
1372
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1373
-  (0.0ms) SAVEPOINT active_record_1
1374
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1373
+  (0.1ms) SAVEPOINT active_record_1
1374
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1375
1375
  Processing by PushType::WysiwygMediaController#create as JSON
1376
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9da9cacc60 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-etq4ka>>}}
1376
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3aed7bd08 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150928-7156-lga9fm>>}}
1377
1377
   (0.1ms) SAVEPOINT active_record_2
1378
- 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", "267"], ["created_at", "2015-08-24 09:52:26.840635"], ["updated_at", "2015-08-24 09:52:26.840635"], ["file_ext", "png"], ["mime_type", "image/png"]]
1378
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-09-28 11:47:44.916585"], ["updated_at", "2015-09-28 11:47:44.916585"], ["file_ext", "png"], ["mime_type", "image/png"]]
1379
1379
   (0.1ms) RELEASE SAVEPOINT active_record_2
1380
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1381
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1380
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1381
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1382
1382
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1383
1383
   (0.1ms) ROLLBACK