push_type_wysiwyg 0.6.0.beta.3 → 0.6.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61e7563eb19301a540676596a9b08aa88ef2aeee
4
- data.tar.gz: caa56a48dff88a7a5710d87619d96d78cb243d86
3
+ metadata.gz: 6fd38360d4302fec33fa87ad45dde8ddbbce8e30
4
+ data.tar.gz: 0d8ae59bf9fccbaf8bb76f667bdbe80726182bd5
5
5
  SHA512:
6
- metadata.gz: 9162854783fffc081116293b5d85f40900d7e6972dfd6d4e327ec3aca0fa09a1b11c8298fed5c7ef0d13a1b0d45e10c6e8a2996730cc6119c89b13636485eaf5
7
- data.tar.gz: de89f1f966abe7365ad580e77222c695f0d33562aca1821738327835fb1ef1222083da1f71df5a44bfc57c7eda8cde7f16b367ceb9ed6d54f2901bb8874f5b6d
6
+ metadata.gz: 1d1bc5c0d2a34ff7430ac60222974afcb27e01631f0bc29b7345c77ba21b9e4d7cb8bfb3af87490901903b94d926b6afe85a571324a2390084fd7fcee904c102
7
+ data.tar.gz: 778e36f4bd6be1d3596e5d9dbc088e9b5ce44b6222df94c630d567d9a79d3f6976bfe146d46fd34c94b6e4209d49db2a549271f2183ae878afa6c5df1244e24c
@@ -50,6 +50,6 @@ PushType.setup do |config|
50
50
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
51
51
  # }
52
52
 
53
- # config.dragonfly_secret = 'b96e70349a312515315c8397f533c5c8f64baa4c6ce1fff9ad7f022b92250e4a'
53
+ # config.dragonfly_secret = '486f3e8533a04d2125fe493c7445efa55779f8b8022dbde8c982c7a4e436ee8b'
54
54
 
55
55
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 60ca5ae2a3abc542cf44f657dc3f9a5311ae4e46ae93f4d1017fc109ebfc780cc31d84ad38763f9dbc898cbdb4cf2fc3d72a5778caa1603651d41b156d7dd573
14
+ secret_key_base: 6c746b3a9af4e6a8d174f8f0e740bce8c64ab37472ed63eaeba4cc35849d40cdaa1e0800a1993e9fdbcdfff0c0f4cb0c41a348e54c19407643d01f0a5a6f7ae5
15
15
 
16
16
  test:
17
- secret_key_base: 31f78d92cca4abf9ee1e3e6a262c82c3758b7168b92228ff9faea7779d48892b09a57fcf68e3c4990103cc0771f60d16ca714ce32fbffc97065d8bf2251cef0a
17
+ secret_key_base: f7c3a5ae36d2378e7e5fcf0e0fdea0516854eec9cd6509dbea565baa6b33d5adc2132c182bfce3fe6d2e777f009573911e8c5bfe41bcf666dc3eaca09bdb3322
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151102202765) do
14
+ ActiveRecord::Schema.define(version: 20151108150844) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -1,56 +1,56 @@
1
-  (7.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1
+  (13.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
2
   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20151102202759)
4
+ Migrating to CreatePushTypeUsers (20151108150838)
5
5
   (0.1ms) BEGIN
6
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202759"]]
9
-  (0.6ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20151102202760)
6
+ SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.3ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150838"]]
9
+  (0.7ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20151108150839)
11
11
   (0.1ms) BEGIN
12
-  (2.3ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202760"]]
14
-  (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20151102202761)
12
+  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150839"]]
14
+  (0.5ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20151108150840)
16
16
   (0.1ms) BEGIN
17
-  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
17
+  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
18
   (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202761"]]
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150840"]]
21
21
   (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20151102202762)
22
+ Migrating to CreatePushTypeAssets (20151108150841)
23
23
   (0.1ms) BEGIN
24
-  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202762"]]
26
-  (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20151102202763)
24
+  (2.0ms) 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", "20151108150841"]]
26
+  (0.4ms) COMMIT
27
+ Migrating to CreatePushTypeTaxonomies (20151108150842)
28
28
   (0.1ms) BEGIN
29
-  (2.0ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
29
+  (2.2ms) 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", "20151102202763"]]
32
-  (0.5ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20151102202764)
34
-  (0.1ms) BEGIN
35
-  (0.7ms) 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
-  (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102202764"]]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150842"]]
39
32
   (0.3ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20151102202765)
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20151108150843)
34
+  (0.1ms) BEGIN
35
+  (0.6ms) 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")
37
+  (0.6ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150843"]]
39
+  (0.4ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20151108150844)
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
46
   (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
-  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
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", "20151102202765"]]
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", "20151108150844"]]
51
51
   (0.4ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
53
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
54
54
  FROM pg_constraint c
55
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
56
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -62,7 +62,7 @@ WHERE c.contype = 'f'
62
62
  AND t3.nspname = ANY (current_schemas(false))
63
63
  ORDER BY c.conname
64
64
 
65
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
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
@@ -86,7 +86,7 @@ WHERE c.contype = 'f'
86
86
  AND t3.nspname = ANY (current_schemas(false))
87
87
  ORDER BY c.conname
88
88
 
89
-  (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
89
+  (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
90
90
  FROM pg_constraint c
91
91
  JOIN pg_class t1 ON c.conrelid = t1.oid
92
92
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -122,9 +122,9 @@ 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.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
-  (1.0ms)  SELECT schemaname || '.' || tablename
125
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
+  (0.9ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE
130
130
  tablename !~ '_prt_' AND
@@ -132,247 +132,242 @@ ORDER BY c.conname
132
132
  schemaname = ANY (current_schemas(false))
133
133
  
134
134
   (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
135
-  (11.8ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
135
+  (9.9ms) 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
138
  --------------------------------------------------------------------------
139
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
139
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
140
140
  --------------------------------------------------------------------------
141
141
   (0.1ms) SAVEPOINT active_record_1
142
142
   (0.1ms) RELEASE SAVEPOINT active_record_1
143
-  (0.0ms) SAVEPOINT active_record_1
143
+  (0.1ms) SAVEPOINT active_record_1
144
144
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-11-02 20:28:04.903332"], ["updated_at", "2015-11-02 20:28:04.903332"], ["file_ext", "png"], ["mime_type", "image/png"]]
145
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-11-08 15:08:43.670435"], ["updated_at", "2015-11-08 15:08:43.670435"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
147
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
148
148
   (0.1ms) ROLLBACK
149
149
   (0.1ms) BEGIN
150
150
  --------------------------------------------------------------------------
151
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
151
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
152
152
  --------------------------------------------------------------------------
153
-  (0.1ms) SAVEPOINT active_record_1
154
-  (0.0ms) RELEASE SAVEPOINT active_record_1
155
153
   (0.0ms) SAVEPOINT active_record_1
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.1ms) SAVEPOINT active_record_1
156
156
   (0.1ms) SAVEPOINT active_record_2
157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-11-02 20:28:04.911705"], ["updated_at", "2015-11-02 20:28:04.911705"], ["file_ext", "png"], ["mime_type", "image/png"]]
157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-11-08 15:08:43.678838"], ["updated_at", "2015-11-08 15:08:43.678838"], ["file_ext", "png"], ["mime_type", "image/png"]]
158
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
159
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
160
160
   (0.1ms) ROLLBACK
161
161
   (0.1ms) BEGIN
162
162
  --------------------------------------------------------------------------
163
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
163
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
164
164
  --------------------------------------------------------------------------
165
-  (0.1ms) SAVEPOINT active_record_1
165
+  (0.0ms) SAVEPOINT active_record_1
166
166
   (0.0ms) RELEASE SAVEPOINT active_record_1
167
167
   (0.0ms) SAVEPOINT active_record_1
168
168
   (0.1ms) SAVEPOINT active_record_2
169
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-11-02 20:28:04.915639"], ["updated_at", "2015-11-02 20:28:04.915639"], ["file_ext", "png"], ["mime_type", "image/png"]]
169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-11-08 15:08:43.682640"], ["updated_at", "2015-11-08 15:08:43.682640"], ["file_ext", "png"], ["mime_type", "image/png"]]
170
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
171
171
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
172
172
   (0.1ms) ROLLBACK
173
173
   (0.1ms) BEGIN
174
174
  --------------------------------------------------------------------------
175
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
175
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
176
176
  --------------------------------------------------------------------------
177
177
   (0.0ms) SAVEPOINT active_record_1
178
-  (0.0ms) RELEASE SAVEPOINT active_record_1
179
-  (0.0ms) SAVEPOINT active_record_1
180
-  (0.4ms) SAVEPOINT active_record_2
181
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-11-02 20:28:04.920520"], ["updated_at", "2015-11-02 20:28:04.920520"], ["file_ext", "png"], ["mime_type", "image/png"]]
178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
179
+  (0.1ms) SAVEPOINT active_record_1
180
+  (0.1ms) SAVEPOINT active_record_2
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-11-08 15:08:43.686483"], ["updated_at", "2015-11-08 15:08:43.686483"], ["file_ext", "png"], ["mime_type", "image/png"]]
182
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
183
183
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
184
184
   (0.1ms) ROLLBACK
185
185
   (0.0ms) BEGIN
186
186
  --------------------------------------------------------------------------
187
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
187
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
188
188
  --------------------------------------------------------------------------
189
189
   (0.0ms) SAVEPOINT active_record_1
190
190
   (0.0ms) RELEASE SAVEPOINT active_record_1
191
191
   (0.0ms) SAVEPOINT active_record_1
192
192
   (0.1ms) SAVEPOINT active_record_2
193
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-11-02 20:28:04.925446"], ["updated_at", "2015-11-02 20:28:04.925446"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-11-08 15:08:43.690200"], ["updated_at", "2015-11-08 15:08:43.690200"], ["file_ext", "png"], ["mime_type", "image/png"]]
194
194
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
195
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
196
196
   (0.1ms) ROLLBACK
197
197
   (0.1ms) BEGIN
198
198
  --------------------------------------------------------------------------
199
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
199
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
200
200
  --------------------------------------------------------------------------
201
-  (0.0ms) SAVEPOINT active_record_1
201
+  (0.1ms) SAVEPOINT active_record_1
202
202
   (0.0ms) RELEASE SAVEPOINT active_record_1
203
-  (0.0ms) SAVEPOINT active_record_1
203
+  (0.1ms) SAVEPOINT active_record_1
204
204
   (0.1ms) SAVEPOINT active_record_2
205
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-11-02 20:28:04.930063"], ["updated_at", "2015-11-02 20:28:04.930063"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-11-08 15:08:43.694534"], ["updated_at", "2015-11-08 15:08:43.694534"], ["file_ext", "png"], ["mime_type", "image/png"]]
206
206
   (0.1ms) RELEASE SAVEPOINT active_record_2
207
207
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
208
208
   (0.1ms) ROLLBACK
209
209
   (0.1ms) BEGIN
210
210
  --------------------------------------------------------------------------
211
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
211
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
212
212
  --------------------------------------------------------------------------
213
213
   (0.0ms) SAVEPOINT active_record_1
214
-  (0.0ms) RELEASE SAVEPOINT active_record_1
214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
215
215
   (0.0ms) SAVEPOINT active_record_1
216
216
   (0.1ms) SAVEPOINT active_record_2
217
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-11-02 20:28:04.934314"], ["updated_at", "2015-11-02 20:28:04.934314"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-11-08 15:08:43.698509"], ["updated_at", "2015-11-08 15:08:43.698509"], ["file_ext", "png"], ["mime_type", "image/png"]]
218
218
   (0.1ms) RELEASE SAVEPOINT active_record_2
219
219
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
220
   (0.1ms) ROLLBACK
221
221
   (0.1ms) BEGIN
222
- ---------------------------------------------------------------------------
223
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
224
- ---------------------------------------------------------------------------
222
+ ------------------------------------------------------------------------------------
223
+ PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
224
+ ------------------------------------------------------------------------------------
225
225
   (0.1ms) SAVEPOINT active_record_1
226
226
   (0.1ms) RELEASE SAVEPOINT active_record_1
227
227
   (0.1ms) SAVEPOINT active_record_1
228
-  (0.1ms) SAVEPOINT active_record_2
229
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-11-02 20:28:04.939401"], ["updated_at", "2015-11-02 20:28:04.939401"], ["file_ext", "png"], ["mime_type", "image/png"]]
230
-  (0.1ms) RELEASE SAVEPOINT active_record_2
231
-  (0.1ms) SAVEPOINT active_record_2
232
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-11-02 20:28:04.941637"], ["updated_at", "2015-11-02 20:28:04.941637"], ["file_ext", "png"], ["mime_type", "image/png"]]
233
-  (0.1ms) RELEASE SAVEPOINT active_record_2
234
-  (0.1ms) SAVEPOINT active_record_2
235
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-11-02 20:28:04.943832"], ["updated_at", "2015-11-02 20:28:04.943832"], ["file_ext", "png"], ["mime_type", "image/png"]]
236
-  (0.1ms) RELEASE SAVEPOINT active_record_2
228
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
229
+ Processing by PushType::WysiwygMediaController#create as JSON
230
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fb3f90424f0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151108-11009-u1ghas>>}}
237
231
   (0.1ms) SAVEPOINT active_record_2
238
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-11-02 20:28:04.946050"], ["updated_at", "2015-11-02 20:28:04.946050"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-11-08 15:08:43.733644"], ["updated_at", "2015-11-08 15:08:43.733644"], ["file_ext", "png"], ["mime_type", "image/png"]]
239
233
   (0.1ms) RELEASE SAVEPOINT active_record_2
240
- PushType::Asset Load (0.5ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
241
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
242
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
243
-  (0.1ms) ROLLBACK
244
-  (0.1ms) BEGIN
234
+ Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 0.3ms)
235
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
236
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
237
+  (0.1ms) ROLLBACK
238
+  (0.1ms) BEGIN
245
239
  ---------------------------------------------------------------------------
246
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
240
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
247
241
  ---------------------------------------------------------------------------
248
-  (0.1ms) SAVEPOINT active_record_1
249
-  (0.0ms) RELEASE SAVEPOINT active_record_1
250
-  (0.0ms) SAVEPOINT active_record_1
251
-  (0.1ms) SAVEPOINT active_record_2
252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-11-02 20:28:04.954526"], ["updated_at", "2015-11-02 20:28:04.954526"], ["file_ext", "png"], ["mime_type", "image/png"]]
253
-  (0.1ms) RELEASE SAVEPOINT active_record_2
242
+  (0.0ms) SAVEPOINT active_record_1
243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
244
+  (0.0ms) SAVEPOINT active_record_1
254
245
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-11-02 20:28:04.957007"], ["updated_at", "2015-11-02 20:28:04.957007"], ["file_ext", "png"], ["mime_type", "image/png"]]
246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-11-08 15:08:43.739741"], ["updated_at", "2015-11-08 15:08:43.739741"], ["file_ext", "png"], ["mime_type", "image/png"]]
256
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
248
   (0.1ms) SAVEPOINT active_record_2
258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-11-02 20:28:04.959216"], ["updated_at", "2015-11-02 20:28:04.959216"], ["file_ext", "png"], ["mime_type", "image/png"]]
249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-11-08 15:08:43.742028"], ["updated_at", "2015-11-08 15:08:43.742028"], ["file_ext", "png"], ["mime_type", "image/png"]]
259
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
251
   (0.1ms) SAVEPOINT active_record_2
261
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-11-02 20:28:04.961630"], ["updated_at", "2015-11-02 20:28:04.961630"], ["file_ext", "png"], ["mime_type", "image/png"]]
252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-11-08 15:08:43.744131"], ["updated_at", "2015-11-08 15:08:43.744131"], ["file_ext", "png"], ["mime_type", "image/png"]]
262
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
264
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
265
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
266
-  (0.1ms) ROLLBACK
267
-  (0.1ms) BEGIN
268
- ---------------------------------------------------------------------------
269
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
270
- ---------------------------------------------------------------------------
271
-  (0.0ms) SAVEPOINT active_record_1
272
-  (0.0ms) RELEASE SAVEPOINT active_record_1
273
-  (0.0ms) SAVEPOINT active_record_1
274
254
   (0.1ms) SAVEPOINT active_record_2
275
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-11-02 20:28:04.967364"], ["updated_at", "2015-11-02 20:28:04.967364"], ["file_ext", "png"], ["mime_type", "image/png"]]
255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-11-08 15:08:43.746213"], ["updated_at", "2015-11-08 15:08:43.746213"], ["file_ext", "png"], ["mime_type", "image/png"]]
276
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
+ PushType::Asset Load (0.5ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
258
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
259
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
260
+  (0.1ms) ROLLBACK
261
+  (0.1ms) BEGIN
262
+ ---------------------------------------------------------------------------
263
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
264
+ ---------------------------------------------------------------------------
265
+  (0.1ms) SAVEPOINT active_record_1
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+  (0.0ms) SAVEPOINT active_record_1
277
268
   (0.1ms) SAVEPOINT active_record_2
278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-11-02 20:28:04.969726"], ["updated_at", "2015-11-02 20:28:04.969726"], ["file_ext", "png"], ["mime_type", "image/png"]]
269
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-11-08 15:08:43.754181"], ["updated_at", "2015-11-08 15:08:43.754181"], ["file_ext", "png"], ["mime_type", "image/png"]]
279
270
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
271
   (0.1ms) SAVEPOINT active_record_2
281
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-11-02 20:28:04.971886"], ["updated_at", "2015-11-02 20:28:04.971886"], ["file_ext", "png"], ["mime_type", "image/png"]]
272
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-11-08 15:08:43.756445"], ["updated_at", "2015-11-08 15:08:43.756445"], ["file_ext", "png"], ["mime_type", "image/png"]]
282
273
   (0.1ms) RELEASE SAVEPOINT active_record_2
283
274
   (0.1ms) SAVEPOINT active_record_2
284
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-11-02 20:28:04.974084"], ["updated_at", "2015-11-02 20:28:04.974084"], ["file_ext", "png"], ["mime_type", "image/png"]]
275
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-11-08 15:08:43.758588"], ["updated_at", "2015-11-08 15:08:43.758588"], ["file_ext", "png"], ["mime_type", "image/png"]]
285
276
   (0.1ms) RELEASE SAVEPOINT active_record_2
286
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
287
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
288
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
289
-  (0.1ms) ROLLBACK
290
-  (0.0ms) BEGIN
291
- ---------------------------------------------------------------------------
292
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
293
- ---------------------------------------------------------------------------
294
-  (0.0ms) SAVEPOINT active_record_1
295
-  (0.0ms) RELEASE SAVEPOINT active_record_1
296
-  (0.0ms) SAVEPOINT active_record_1
297
277
   (0.1ms) SAVEPOINT active_record_2
298
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-11-02 20:28:04.979752"], ["updated_at", "2015-11-02 20:28:04.979752"], ["file_ext", "png"], ["mime_type", "image/png"]]
278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-11-08 15:08:43.760659"], ["updated_at", "2015-11-08 15:08:43.760659"], ["file_ext", "png"], ["mime_type", "image/png"]]
299
279
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
+ 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
281
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
282
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
283
+  (0.1ms) ROLLBACK
284
+  (0.1ms) BEGIN
285
+ ---------------------------------------------------------------------------
286
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
287
+ ---------------------------------------------------------------------------
288
+  (0.1ms) SAVEPOINT active_record_1
289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
290
+  (0.1ms) SAVEPOINT active_record_1
300
291
   (0.1ms) SAVEPOINT active_record_2
301
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-11-02 20:28:04.982075"], ["updated_at", "2015-11-02 20:28:04.982075"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "17"], ["created_at", "2015-11-08 15:08:43.766210"], ["updated_at", "2015-11-08 15:08:43.766210"], ["file_ext", "png"], ["mime_type", "image/png"]]
302
293
   (0.1ms) RELEASE SAVEPOINT active_record_2
303
294
   (0.1ms) SAVEPOINT active_record_2
304
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-11-02 20:28:04.984238"], ["updated_at", "2015-11-02 20:28:04.984238"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "18"], ["created_at", "2015-11-08 15:08:43.768430"], ["updated_at", "2015-11-08 15:08:43.768430"], ["file_ext", "png"], ["mime_type", "image/png"]]
305
296
   (0.1ms) RELEASE SAVEPOINT active_record_2
306
297
   (0.1ms) SAVEPOINT active_record_2
307
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-11-02 20:28:04.986446"], ["updated_at", "2015-11-02 20:28:04.986446"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "19"], ["created_at", "2015-11-08 15:08:43.770561"], ["updated_at", "2015-11-08 15:08:43.770561"], ["file_ext", "png"], ["mime_type", "image/png"]]
308
299
   (0.1ms) RELEASE SAVEPOINT active_record_2
309
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
310
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
311
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
312
-  (0.1ms) ROLLBACK
313
-  (0.1ms) BEGIN
314
- ---------------------------------------------------------------------------
315
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
316
- ---------------------------------------------------------------------------
317
-  (0.1ms) SAVEPOINT active_record_1
318
-  (0.0ms) RELEASE SAVEPOINT active_record_1
319
-  (0.0ms) SAVEPOINT active_record_1
320
300
   (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", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-11-02 20:28:04.992077"], ["updated_at", "2015-11-02 20:28:04.992077"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "20"], ["created_at", "2015-11-08 15:08:43.772857"], ["updated_at", "2015-11-08 15:08:43.772857"], ["file_ext", "png"], ["mime_type", "image/png"]]
322
302
   (0.1ms) RELEASE SAVEPOINT active_record_2
303
+ 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
304
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
305
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
306
+  (0.1ms) ROLLBACK
307
+  (0.1ms) BEGIN
308
+ ---------------------------------------------------------------------------
309
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
310
+ ---------------------------------------------------------------------------
311
+  (0.0ms) SAVEPOINT active_record_1
312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
313
+  (0.0ms) SAVEPOINT active_record_1
323
314
   (0.1ms) SAVEPOINT active_record_2
324
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-11-02 20:28:04.994325"], ["updated_at", "2015-11-02 20:28:04.994325"], ["file_ext", "png"], ["mime_type", "image/png"]]
315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-11-08 15:08:43.778478"], ["updated_at", "2015-11-08 15:08:43.778478"], ["file_ext", "png"], ["mime_type", "image/png"]]
325
316
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
317
   (0.1ms) SAVEPOINT active_record_2
327
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-11-02 20:28:04.996661"], ["updated_at", "2015-11-02 20:28:04.996661"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-11-08 15:08:43.780728"], ["updated_at", "2015-11-08 15:08:43.780728"], ["file_ext", "png"], ["mime_type", "image/png"]]
328
319
   (0.1ms) RELEASE SAVEPOINT active_record_2
329
320
   (0.1ms) SAVEPOINT active_record_2
330
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-11-02 20:28:04.998955"], ["updated_at", "2015-11-02 20:28:04.998955"], ["file_ext", "png"], ["mime_type", "image/png"]]
321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-11-08 15:08:43.783019"], ["updated_at", "2015-11-08 15:08:43.783019"], ["file_ext", "png"], ["mime_type", "image/png"]]
331
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
332
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
333
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
334
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
335
-  (0.1ms) ROLLBACK
336
-  (0.1ms) BEGIN
337
- ---------------------------------------------------------------------------
338
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
339
- ---------------------------------------------------------------------------
340
-  (0.1ms) SAVEPOINT active_record_1
341
-  (0.1ms) RELEASE SAVEPOINT active_record_1
342
-  (0.1ms) SAVEPOINT active_record_1
343
323
   (0.1ms) SAVEPOINT active_record_2
344
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-11-02 20:28:05.006185"], ["updated_at", "2015-11-02 20:28:05.006185"], ["file_ext", "png"], ["mime_type", "image/png"]]
324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-11-08 15:08:43.785210"], ["updated_at", "2015-11-08 15:08:43.785210"], ["file_ext", "png"], ["mime_type", "image/png"]]
345
325
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
+ 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
327
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
328
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
329
+  (0.1ms) ROLLBACK
330
+  (0.0ms) BEGIN
331
+ ---------------------------------------------------------------------------
332
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
333
+ ---------------------------------------------------------------------------
334
+  (0.0ms) SAVEPOINT active_record_1
335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
336
+  (0.0ms) SAVEPOINT active_record_1
346
337
   (0.1ms) SAVEPOINT active_record_2
347
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-11-02 20:28:05.008547"], ["updated_at", "2015-11-02 20:28:05.008547"], ["file_ext", "png"], ["mime_type", "image/png"]]
338
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-11-08 15:08:43.790698"], ["updated_at", "2015-11-08 15:08:43.790698"], ["file_ext", "png"], ["mime_type", "image/png"]]
348
339
   (0.1ms) RELEASE SAVEPOINT active_record_2
349
340
   (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", "30"], ["created_at", "2015-11-02 20:28:05.011035"], ["updated_at", "2015-11-02 20:28:05.011035"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "26"], ["created_at", "2015-11-08 15:08:43.792820"], ["updated_at", "2015-11-08 15:08:43.792820"], ["file_ext", "png"], ["mime_type", "image/png"]]
351
342
   (0.1ms) RELEASE SAVEPOINT active_record_2
352
343
   (0.1ms) SAVEPOINT active_record_2
353
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-11-02 20:28:05.013157"], ["updated_at", "2015-11-02 20:28:05.013157"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "27"], ["created_at", "2015-11-08 15:08:43.795004"], ["updated_at", "2015-11-08 15:08:43.795004"], ["file_ext", "png"], ["mime_type", "image/png"]]
354
345
   (0.1ms) RELEASE SAVEPOINT active_record_2
346
+  (0.1ms) SAVEPOINT active_record_2
347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-11-08 15:08:43.797061"], ["updated_at", "2015-11-08 15:08:43.797061"], ["file_ext", "png"], ["mime_type", "image/png"]]
348
+  (0.1ms) RELEASE SAVEPOINT active_record_2
349
+ 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
355
350
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
356
351
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
357
352
   (0.1ms) ROLLBACK
358
353
   (0.1ms) BEGIN
359
354
  ---------------------------------------------------------------------------
360
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
355
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
361
356
  ---------------------------------------------------------------------------
362
-  (0.0ms) SAVEPOINT active_record_1
363
-  (0.0ms) RELEASE SAVEPOINT active_record_1
357
+  (0.1ms) SAVEPOINT active_record_1
358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
364
359
   (0.1ms) SAVEPOINT active_record_1
365
360
   (0.1ms) SAVEPOINT active_record_2
366
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "32"], ["created_at", "2015-11-02 20:28:05.017732"], ["updated_at", "2015-11-02 20:28:05.017732"], ["file_ext", "png"], ["mime_type", "image/png"]]
361
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-11-08 15:08:43.805218"], ["updated_at", "2015-11-08 15:08:43.805218"], ["file_ext", "png"], ["mime_type", "image/png"]]
367
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
368
363
   (0.1ms) SAVEPOINT active_record_2
369
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "33"], ["created_at", "2015-11-02 20:28:05.019972"], ["updated_at", "2015-11-02 20:28:05.019972"], ["file_ext", "png"], ["mime_type", "image/png"]]
364
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2015-11-08 15:08:43.807483"], ["updated_at", "2015-11-08 15:08:43.807483"], ["file_ext", "png"], ["mime_type", "image/png"]]
370
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
371
366
   (0.1ms) SAVEPOINT active_record_2
372
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "34"], ["created_at", "2015-11-02 20:28:05.022361"], ["updated_at", "2015-11-02 20:28:05.022361"], ["file_ext", "png"], ["mime_type", "image/png"]]
367
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2015-11-08 15:08:43.809599"], ["updated_at", "2015-11-08 15:08:43.809599"], ["file_ext", "png"], ["mime_type", "image/png"]]
373
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
374
369
   (0.1ms) SAVEPOINT active_record_2
375
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "35"], ["created_at", "2015-11-02 20:28:05.024418"], ["updated_at", "2015-11-02 20:28:05.024418"], ["file_ext", "png"], ["mime_type", "image/png"]]
370
+ 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", "32"], ["created_at", "2015-11-08 15:08:43.811633"], ["updated_at", "2015-11-08 15:08:43.811633"], ["file_ext", "png"], ["mime_type", "image/png"]]
376
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
377
372
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
378
373
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
@@ -381,145 +376,150 @@ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
381
376
  ---------------------------------------------------------------------------
382
377
  PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
383
378
  ---------------------------------------------------------------------------
384
-  (0.1ms) SAVEPOINT active_record_1
379
+  (0.0ms) SAVEPOINT active_record_1
385
380
   (0.1ms) RELEASE SAVEPOINT active_record_1
386
381
   (0.0ms) SAVEPOINT active_record_1
387
382
   (0.1ms) SAVEPOINT active_record_2
388
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "36"], ["created_at", "2015-11-02 20:28:05.028929"], ["updated_at", "2015-11-02 20:28:05.028929"], ["file_ext", "png"], ["mime_type", "image/png"]]
383
+ 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", "33"], ["created_at", "2015-11-08 15:08:43.816427"], ["updated_at", "2015-11-08 15:08:43.816427"], ["file_ext", "png"], ["mime_type", "image/png"]]
389
384
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
385
   (0.1ms) SAVEPOINT active_record_2
391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-11-02 20:28:05.031104"], ["updated_at", "2015-11-02 20:28:05.031104"], ["file_ext", "png"], ["mime_type", "image/png"]]
386
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "34"], ["created_at", "2015-11-08 15:08:43.819044"], ["updated_at", "2015-11-08 15:08:43.819044"], ["file_ext", "png"], ["mime_type", "image/png"]]
392
387
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
388
   (0.1ms) SAVEPOINT active_record_2
394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-11-02 20:28:05.033267"], ["updated_at", "2015-11-02 20:28:05.033267"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "35"], ["created_at", "2015-11-08 15:08:43.821225"], ["updated_at", "2015-11-08 15:08:43.821225"], ["file_ext", "png"], ["mime_type", "image/png"]]
395
390
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
391
   (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-11-02 20:28:05.035337"], ["updated_at", "2015-11-02 20:28:05.035337"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "36"], ["created_at", "2015-11-08 15:08:43.823266"], ["updated_at", "2015-11-08 15:08:43.823266"], ["file_ext", "png"], ["mime_type", "image/png"]]
398
393
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
394
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
400
395
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
401
396
   (0.1ms) ROLLBACK
402
397
   (0.1ms) BEGIN
403
398
  ---------------------------------------------------------------------------
404
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
399
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
405
400
  ---------------------------------------------------------------------------
406
-  (0.0ms) SAVEPOINT active_record_1
407
-  (0.0ms) RELEASE SAVEPOINT active_record_1
401
+  (0.1ms) SAVEPOINT active_record_1
402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
408
403
   (0.0ms) SAVEPOINT active_record_1
409
404
   (0.1ms) SAVEPOINT active_record_2
410
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-11-02 20:28:05.039856"], ["updated_at", "2015-11-02 20:28:05.039856"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-11-08 15:08:43.827684"], ["updated_at", "2015-11-08 15:08:43.827684"], ["file_ext", "png"], ["mime_type", "image/png"]]
411
406
   (0.1ms) RELEASE SAVEPOINT active_record_2
412
407
   (0.1ms) SAVEPOINT active_record_2
413
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-11-02 20:28:05.042162"], ["updated_at", "2015-11-02 20:28:05.042162"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-11-08 15:08:43.830065"], ["updated_at", "2015-11-08 15:08:43.830065"], ["file_ext", "png"], ["mime_type", "image/png"]]
414
409
   (0.1ms) RELEASE SAVEPOINT active_record_2
415
410
   (0.1ms) SAVEPOINT active_record_2
416
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-11-02 20:28:05.044406"], ["updated_at", "2015-11-02 20:28:05.044406"], ["file_ext", "png"], ["mime_type", "image/png"]]
411
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-11-08 15:08:43.832401"], ["updated_at", "2015-11-08 15:08:43.832401"], ["file_ext", "png"], ["mime_type", "image/png"]]
417
412
   (0.1ms) RELEASE SAVEPOINT active_record_2
418
413
   (0.1ms) SAVEPOINT active_record_2
419
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-11-02 20:28:05.046579"], ["updated_at", "2015-11-02 20:28:05.046579"], ["file_ext", "png"], ["mime_type", "image/png"]]
414
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-11-08 15:08:43.834499"], ["updated_at", "2015-11-08 15:08:43.834499"], ["file_ext", "png"], ["mime_type", "image/png"]]
420
415
   (0.1ms) RELEASE SAVEPOINT active_record_2
421
416
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
422
417
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
423
-  (0.1ms) ROLLBACK
418
+  (0.2ms) ROLLBACK
424
419
   (0.1ms) BEGIN
425
420
  ---------------------------------------------------------------------------
426
421
  PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
427
422
  ---------------------------------------------------------------------------
428
-  (0.0ms) SAVEPOINT active_record_1
423
+  (0.1ms) SAVEPOINT active_record_1
429
424
   (0.1ms) RELEASE SAVEPOINT active_record_1
430
425
   (0.1ms) SAVEPOINT active_record_1
431
426
   (0.1ms) SAVEPOINT active_record_2
432
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2015-11-02 20:28:05.051049"], ["updated_at", "2015-11-02 20:28:05.051049"], ["file_ext", "png"], ["mime_type", "image/png"]]
427
+ 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", "41"], ["created_at", "2015-11-08 15:08:43.839028"], ["updated_at", "2015-11-08 15:08:43.839028"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
428
   (0.1ms) RELEASE SAVEPOINT active_record_2
434
429
   (0.1ms) SAVEPOINT active_record_2
435
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2015-11-02 20:28:05.053147"], ["updated_at", "2015-11-02 20:28:05.053147"], ["file_ext", "png"], ["mime_type", "image/png"]]
430
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-11-08 15:08:43.841255"], ["updated_at", "2015-11-08 15:08:43.841255"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
431
   (0.1ms) RELEASE SAVEPOINT active_record_2
437
432
   (0.1ms) SAVEPOINT active_record_2
438
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2015-11-02 20:28:05.055321"], ["updated_at", "2015-11-02 20:28:05.055321"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-11-08 15:08:43.843291"], ["updated_at", "2015-11-08 15:08:43.843291"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
434
   (0.1ms) RELEASE SAVEPOINT active_record_2
440
435
   (0.1ms) SAVEPOINT active_record_2
441
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-11-02 20:28:05.057394"], ["updated_at", "2015-11-02 20:28:05.057394"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2015-11-08 15:08:43.845297"], ["updated_at", "2015-11-08 15:08:43.845297"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
437
   (0.1ms) RELEASE SAVEPOINT active_record_2
443
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
438
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
444
439
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
445
440
   (0.1ms) ROLLBACK
446
441
   (0.1ms) BEGIN
447
- ------------------------------------------------------------------------------------
448
- PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
449
- ------------------------------------------------------------------------------------
450
-  (0.1ms) SAVEPOINT active_record_1
451
-  (0.1ms) RELEASE SAVEPOINT active_record_1
452
-  (0.1ms) SAVEPOINT active_record_1
453
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
454
- Processing by PushType::WysiwygMediaController#create as JSON
455
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8cc3dc9568 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-v7ehvf>>}}
442
+ ---------------------------------------------------------------------------
443
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
444
+ ---------------------------------------------------------------------------
445
+  (0.0ms) SAVEPOINT active_record_1
446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
447
+  (0.0ms) SAVEPOINT active_record_1
448
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2015-11-08 15:08:43.849788"], ["updated_at", "2015-11-08 15:08:43.849788"], ["file_ext", "png"], ["mime_type", "image/png"]]
450
+  (0.1ms) RELEASE SAVEPOINT active_record_2
451
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2015-11-08 15:08:43.852010"], ["updated_at", "2015-11-08 15:08:43.852010"], ["file_ext", "png"], ["mime_type", "image/png"]]
453
+  (0.1ms) RELEASE SAVEPOINT active_record_2
454
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-11-08 15:08:43.854070"], ["updated_at", "2015-11-08 15:08:43.854070"], ["file_ext", "png"], ["mime_type", "image/png"]]
456
+  (0.1ms) RELEASE SAVEPOINT active_record_2
456
457
   (0.1ms) SAVEPOINT active_record_2
457
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-11-02 20:28:05.078927"], ["updated_at", "2015-11-02 20:28:05.078927"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-11-08 15:08:43.856229"], ["updated_at", "2015-11-08 15:08:43.856229"], ["file_ext", "png"], ["mime_type", "image/png"]]
458
459
   (0.1ms) RELEASE SAVEPOINT active_record_2
459
- Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.4ms)
460
460
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
461
461
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
462
462
   (0.1ms) ROLLBACK
463
-  (0.0ms) BEGIN
463
+  (0.1ms) BEGIN
464
464
  -------------------------------------------------------------------------------------------
465
465
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
466
466
  -------------------------------------------------------------------------------------------
467
-  (0.0ms) SAVEPOINT active_record_1
467
+  (0.1ms) SAVEPOINT active_record_1
468
468
   (0.1ms) RELEASE SAVEPOINT active_record_1
469
469
   (0.0ms) SAVEPOINT active_record_1
470
470
   (0.1ms) SAVEPOINT active_record_2
471
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "49"], ["created_at", "2015-11-02 20:28:05.084897"], ["updated_at", "2015-11-02 20:28:05.084897"], ["file_ext", "png"], ["mime_type", "image/png"]]
471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "49"], ["created_at", "2015-11-08 15:08:43.861130"], ["updated_at", "2015-11-08 15:08:43.861130"], ["file_ext", "png"], ["mime_type", "image/png"]]
472
472
   (0.1ms) RELEASE SAVEPOINT active_record_2
473
473
   (0.1ms) SAVEPOINT active_record_2
474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "50"], ["created_at", "2015-11-02 20:28:05.087111"], ["updated_at", "2015-11-02 20:28:05.087111"], ["file_ext", "png"], ["mime_type", "image/png"]]
474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "50"], ["created_at", "2015-11-08 15:08:43.863250"], ["updated_at", "2015-11-08 15:08:43.863250"], ["file_ext", "png"], ["mime_type", "image/png"]]
475
475
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
476
   (0.1ms) SAVEPOINT active_record_2
477
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "51"], ["created_at", "2015-11-02 20:28:05.089346"], ["updated_at", "2015-11-02 20:28:05.089346"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "51"], ["created_at", "2015-11-08 15:08:43.865207"], ["updated_at", "2015-11-08 15:08:43.865207"], ["file_ext", "png"], ["mime_type", "image/png"]]
478
478
   (0.1ms) RELEASE SAVEPOINT active_record_2
479
479
   (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", "52"], ["created_at", "2015-11-02 20:28:05.091668"], ["updated_at", "2015-11-02 20:28:05.091668"], ["file_ext", "png"], ["mime_type", "image/png"]]
480
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "52"], ["created_at", "2015-11-08 15:08:43.867227"], ["updated_at", "2015-11-08 15:08:43.867227"], ["file_ext", "png"], ["mime_type", "image/png"]]
481
481
   (0.1ms) RELEASE SAVEPOINT active_record_2
482
482
   (0.1ms) SAVEPOINT active_record_2
483
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "53"], ["created_at", "2015-11-02 20:28:05.093880"], ["updated_at", "2015-11-02 20:28:05.093880"], ["file_ext", "png"], ["mime_type", "image/png"]]
483
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "53"], ["created_at", "2015-11-08 15:08:43.869218"], ["updated_at", "2015-11-08 15:08:43.869218"], ["file_ext", "png"], ["mime_type", "image/png"]]
484
484
   (0.1ms) RELEASE SAVEPOINT active_record_2
485
485
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-11-02 20:28:05.096395"], ["updated_at", "2015-11-02 20:28:05.096395"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-11-08 15:08:43.871590"], ["updated_at", "2015-11-08 15:08:43.871590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
487
487
   (0.1ms) RELEASE SAVEPOINT active_record_2
488
488
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-11-02 20:28:05.098617"], ["updated_at", "2015-11-02 20:28:05.098617"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-11-08 15:08:43.873623"], ["updated_at", "2015-11-08 15:08:43.873623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
490
490
   (0.1ms) RELEASE SAVEPOINT active_record_2
491
491
   (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", "56"], ["created_at", "2015-11-02 20:28:05.100748"], ["updated_at", "2015-11-02 20:28:05.100748"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
492
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-11-08 15:08:43.875775"], ["updated_at", "2015-11-08 15:08:43.875775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
493
493
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
494
   (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", "57"], ["created_at", "2015-11-02 20:28:05.102936"], ["updated_at", "2015-11-02 20:28:05.102936"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
495
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2015-11-08 15:08:43.877822"], ["updated_at", "2015-11-08 15:08:43.877822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
496
496
   (0.1ms) RELEASE SAVEPOINT active_record_2
497
497
   (0.1ms) SAVEPOINT active_record_2
498
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-11-02 20:28:05.105623"], ["updated_at", "2015-11-02 20:28:05.105623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
498
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-11-08 15:08:43.879841"], ["updated_at", "2015-11-08 15:08:43.879841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
499
499
   (0.1ms) RELEASE SAVEPOINT active_record_2
500
500
   (0.1ms) SAVEPOINT active_record_2
501
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-11-02 20:28:05.107971"], ["updated_at", "2015-11-02 20:28:05.107971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
501
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-11-08 15:08:43.881942"], ["updated_at", "2015-11-08 15:08:43.881942"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
502
502
   (0.1ms) RELEASE SAVEPOINT active_record_2
503
503
   (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", "60"], ["created_at", "2015-11-02 20:28:05.110030"], ["updated_at", "2015-11-02 20:28:05.110030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
504
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-11-08 15:08:43.884099"], ["updated_at", "2015-11-08 15:08:43.884099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
505
505
   (0.1ms) RELEASE SAVEPOINT active_record_2
506
506
   (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", "61"], ["created_at", "2015-11-02 20:28:05.112157"], ["updated_at", "2015-11-02 20:28:05.112157"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
507
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-11-08 15:08:43.886099"], ["updated_at", "2015-11-08 15:08:43.886099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
508
   (0.1ms) RELEASE SAVEPOINT active_record_2
509
509
   (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", "62"], ["created_at", "2015-11-02 20:28:05.114302"], ["updated_at", "2015-11-02 20:28:05.114302"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
510
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-11-08 15:08:43.888209"], ["updated_at", "2015-11-08 15:08:43.888209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
511
   (0.1ms) RELEASE SAVEPOINT active_record_2
512
512
   (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", "63"], ["created_at", "2015-11-02 20:28:05.116466"], ["updated_at", "2015-11-02 20:28:05.116466"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-11-08 15:08:43.890318"], ["updated_at", "2015-11-08 15:08:43.890318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
514
   (0.1ms) RELEASE SAVEPOINT active_record_2
515
515
   (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", "64"], ["created_at", "2015-11-02 20:28:05.118914"], ["updated_at", "2015-11-02 20:28:05.118914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-11-08 15:08:43.892409"], ["updated_at", "2015-11-08 15:08:43.892409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
517
   (0.1ms) RELEASE SAVEPOINT active_record_2
518
518
   (0.1ms) SAVEPOINT active_record_2
519
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-11-02 20:28:05.121063"], ["updated_at", "2015-11-02 20:28:05.121063"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-11-08 15:08:43.894801"], ["updated_at", "2015-11-08 15:08:43.894801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
520
   (0.1ms) RELEASE SAVEPOINT active_record_2
521
521
   (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", "66"], ["created_at", "2015-11-02 20:28:05.123191"], ["updated_at", "2015-11-02 20:28:05.123191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-11-08 15:08:43.896892"], ["updated_at", "2015-11-08 15:08:43.896892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
523
   (0.1ms) RELEASE SAVEPOINT active_record_2
524
524
  Processing by PushType::WysiwygMediaController#index as JSON
525
525
  Parameters: {"filter"=>"image"}
@@ -527,141 +527,141 @@ Processing by PushType::WysiwygMediaController#index as JSON
527
527
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
528
528
  Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.6ms)
529
529
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
530
-  (0.2ms) ROLLBACK
530
+  (0.1ms) ROLLBACK
531
531
   (0.1ms) BEGIN
532
532
  -------------------------------------------------------------------------------------------
533
533
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
534
534
  -------------------------------------------------------------------------------------------
535
535
   (0.1ms) SAVEPOINT active_record_1
536
-  (0.1ms) RELEASE SAVEPOINT active_record_1
536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
537
537
   (0.0ms) SAVEPOINT active_record_1
538
538
   (0.1ms) SAVEPOINT active_record_2
539
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "67"], ["created_at", "2015-11-02 20:28:05.136979"], ["updated_at", "2015-11-02 20:28:05.136979"], ["file_ext", "png"], ["mime_type", "image/png"]]
539
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "67"], ["created_at", "2015-11-08 15:08:43.909622"], ["updated_at", "2015-11-08 15:08:43.909622"], ["file_ext", "png"], ["mime_type", "image/png"]]
540
540
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
541
   (0.1ms) SAVEPOINT active_record_2
542
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "68"], ["created_at", "2015-11-02 20:28:05.139309"], ["updated_at", "2015-11-02 20:28:05.139309"], ["file_ext", "png"], ["mime_type", "image/png"]]
542
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "68"], ["created_at", "2015-11-08 15:08:43.911853"], ["updated_at", "2015-11-08 15:08:43.911853"], ["file_ext", "png"], ["mime_type", "image/png"]]
543
543
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
544
   (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", "69"], ["created_at", "2015-11-02 20:28:05.141445"], ["updated_at", "2015-11-02 20:28:05.141445"], ["file_ext", "png"], ["mime_type", "image/png"]]
545
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "69"], ["created_at", "2015-11-08 15:08:43.913993"], ["updated_at", "2015-11-08 15:08:43.913993"], ["file_ext", "png"], ["mime_type", "image/png"]]
546
546
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
547
   (0.1ms) SAVEPOINT active_record_2
548
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "70"], ["created_at", "2015-11-02 20:28:05.143642"], ["updated_at", "2015-11-02 20:28:05.143642"], ["file_ext", "png"], ["mime_type", "image/png"]]
548
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "70"], ["created_at", "2015-11-08 15:08:43.916143"], ["updated_at", "2015-11-08 15:08:43.916143"], ["file_ext", "png"], ["mime_type", "image/png"]]
549
549
   (0.1ms) RELEASE SAVEPOINT active_record_2
550
550
   (0.1ms) SAVEPOINT active_record_2
551
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "71"], ["created_at", "2015-11-02 20:28:05.145805"], ["updated_at", "2015-11-02 20:28:05.145805"], ["file_ext", "png"], ["mime_type", "image/png"]]
551
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "71"], ["created_at", "2015-11-08 15:08:43.918169"], ["updated_at", "2015-11-08 15:08:43.918169"], ["file_ext", "png"], ["mime_type", "image/png"]]
552
552
   (0.1ms) RELEASE SAVEPOINT active_record_2
553
553
   (0.1ms) SAVEPOINT active_record_2
554
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-11-02 20:28:05.148275"], ["updated_at", "2015-11-02 20:28:05.148275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
554
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-11-08 15:08:43.920380"], ["updated_at", "2015-11-08 15:08:43.920380"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
555
555
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
556
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-11-02 20:28:05.151262"], ["updated_at", "2015-11-02 20:28:05.151262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-11-08 15:08:43.922435"], ["updated_at", "2015-11-08 15:08:43.922435"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
559
   (0.1ms) SAVEPOINT active_record_2
560
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-11-02 20:28:05.153554"], ["updated_at", "2015-11-02 20:28:05.153554"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-11-08 15:08:43.924528"], ["updated_at", "2015-11-08 15:08:43.924528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
561
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
562
   (0.1ms) SAVEPOINT active_record_2
563
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-11-02 20:28:05.155790"], ["updated_at", "2015-11-02 20:28:05.155790"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
563
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-11-08 15:08:43.926521"], ["updated_at", "2015-11-08 15:08:43.926521"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
564
564
   (0.1ms) RELEASE SAVEPOINT active_record_2
565
565
   (0.1ms) SAVEPOINT active_record_2
566
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-11-02 20:28:05.158197"], ["updated_at", "2015-11-02 20:28:05.158197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
566
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-11-08 15:08:43.928555"], ["updated_at", "2015-11-08 15:08:43.928555"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
567
567
   (0.1ms) RELEASE SAVEPOINT active_record_2
568
568
   (0.1ms) SAVEPOINT active_record_2
569
- SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-11-02 20:28:05.160533"], ["updated_at", "2015-11-02 20:28:05.160533"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
569
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-11-08 15:08:43.930732"], ["updated_at", "2015-11-08 15:08:43.930732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
570
570
   (0.1ms) RELEASE SAVEPOINT active_record_2
571
571
   (0.1ms) SAVEPOINT active_record_2
572
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-11-02 20:28:05.162918"], ["updated_at", "2015-11-02 20:28:05.162918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
572
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-11-08 15:08:43.933057"], ["updated_at", "2015-11-08 15:08:43.933057"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
573
573
   (0.1ms) RELEASE SAVEPOINT active_record_2
574
574
   (0.1ms) SAVEPOINT active_record_2
575
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-11-02 20:28:05.164952"], ["updated_at", "2015-11-02 20:28:05.164952"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-11-08 15:08:43.935056"], ["updated_at", "2015-11-08 15:08:43.935056"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
576
576
   (0.1ms) RELEASE SAVEPOINT active_record_2
577
577
   (0.1ms) SAVEPOINT active_record_2
578
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-11-02 20:28:05.167102"], ["updated_at", "2015-11-02 20:28:05.167102"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
578
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-11-08 15:08:43.937097"], ["updated_at", "2015-11-08 15:08:43.937097"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
579
579
   (0.1ms) RELEASE SAVEPOINT active_record_2
580
580
   (0.1ms) SAVEPOINT active_record_2
581
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-11-02 20:28:05.169221"], ["updated_at", "2015-11-02 20:28:05.169221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-11-08 15:08:43.939156"], ["updated_at", "2015-11-08 15:08:43.939156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
582
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
583
583
   (0.1ms) SAVEPOINT active_record_2
584
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-11-02 20:28:05.171892"], ["updated_at", "2015-11-02 20:28:05.171892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-11-08 15:08:43.941238"], ["updated_at", "2015-11-08 15:08:43.941238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
585
585
   (0.1ms) RELEASE SAVEPOINT active_record_2
586
586
   (0.1ms) SAVEPOINT active_record_2
587
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-11-02 20:28:05.174881"], ["updated_at", "2015-11-02 20:28:05.174881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-11-08 15:08:43.944089"], ["updated_at", "2015-11-08 15:08:43.944089"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
588
588
   (0.1ms) RELEASE SAVEPOINT active_record_2
589
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", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-11-02 20:28:05.177353"], ["updated_at", "2015-11-02 20:28:05.177353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-11-08 15:08:43.946223"], ["updated_at", "2015-11-08 15:08:43.946223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
591
591
   (0.1ms) RELEASE SAVEPOINT active_record_2
592
592
  Processing by PushType::WysiwygMediaController#index as JSON
593
593
  Parameters: {"filter"=>"image"}
594
594
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
595
595
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
596
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
596
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
597
597
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
598
598
   (0.1ms) ROLLBACK
599
599
   (0.1ms) BEGIN
600
600
  -------------------------------------------------------------------------------------------
601
601
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
602
602
  -------------------------------------------------------------------------------------------
603
-  (0.1ms) SAVEPOINT active_record_1
603
+  (0.0ms) SAVEPOINT active_record_1
604
604
   (0.0ms) RELEASE SAVEPOINT active_record_1
605
605
   (0.0ms) SAVEPOINT active_record_1
606
606
   (0.1ms) SAVEPOINT active_record_2
607
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-11-02 20:28:05.185815"], ["updated_at", "2015-11-02 20:28:05.185815"], ["file_ext", "png"], ["mime_type", "image/png"]]
607
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-11-08 15:08:43.954223"], ["updated_at", "2015-11-08 15:08:43.954223"], ["file_ext", "png"], ["mime_type", "image/png"]]
608
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
609
   (0.1ms) SAVEPOINT active_record_2
610
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-11-02 20:28:05.188058"], ["updated_at", "2015-11-02 20:28:05.188058"], ["file_ext", "png"], ["mime_type", "image/png"]]
610
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-11-08 15:08:43.956519"], ["updated_at", "2015-11-08 15:08:43.956519"], ["file_ext", "png"], ["mime_type", "image/png"]]
611
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
612
   (0.1ms) SAVEPOINT active_record_2
613
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-11-02 20:28:05.190218"], ["updated_at", "2015-11-02 20:28:05.190218"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "87"], ["created_at", "2015-11-08 15:08:43.958566"], ["updated_at", "2015-11-08 15:08:43.958566"], ["file_ext", "png"], ["mime_type", "image/png"]]
614
614
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
615
   (0.1ms) SAVEPOINT active_record_2
616
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "88"], ["created_at", "2015-11-02 20:28:05.193216"], ["updated_at", "2015-11-02 20:28:05.193216"], ["file_ext", "png"], ["mime_type", "image/png"]]
616
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "88"], ["created_at", "2015-11-08 15:08:43.960580"], ["updated_at", "2015-11-08 15:08:43.960580"], ["file_ext", "png"], ["mime_type", "image/png"]]
617
617
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
618
   (0.1ms) SAVEPOINT active_record_2
619
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "89"], ["created_at", "2015-11-02 20:28:05.195731"], ["updated_at", "2015-11-02 20:28:05.195731"], ["file_ext", "png"], ["mime_type", "image/png"]]
619
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "89"], ["created_at", "2015-11-08 15:08:43.962588"], ["updated_at", "2015-11-08 15:08:43.962588"], ["file_ext", "png"], ["mime_type", "image/png"]]
620
620
   (0.1ms) RELEASE SAVEPOINT active_record_2
621
621
   (0.1ms) SAVEPOINT active_record_2
622
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-11-02 20:28:05.197961"], ["updated_at", "2015-11-02 20:28:05.197961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
622
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-11-08 15:08:43.964560"], ["updated_at", "2015-11-08 15:08:43.964560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
623
623
   (0.1ms) RELEASE SAVEPOINT active_record_2
624
624
   (0.1ms) SAVEPOINT active_record_2
625
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-11-02 20:28:05.200237"], ["updated_at", "2015-11-02 20:28:05.200237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
625
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-11-08 15:08:43.966667"], ["updated_at", "2015-11-08 15:08:43.966667"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
626
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
627
627
   (0.1ms) SAVEPOINT active_record_2
628
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-11-02 20:28:05.202414"], ["updated_at", "2015-11-02 20:28:05.202414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
628
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-11-08 15:08:43.968782"], ["updated_at", "2015-11-08 15:08:43.968782"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
629
629
   (0.1ms) RELEASE SAVEPOINT active_record_2
630
630
   (0.1ms) SAVEPOINT active_record_2
631
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-11-02 20:28:05.204448"], ["updated_at", "2015-11-02 20:28:05.204448"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
631
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-11-08 15:08:43.970818"], ["updated_at", "2015-11-08 15:08:43.970818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
632
632
   (0.1ms) RELEASE SAVEPOINT active_record_2
633
633
   (0.1ms) SAVEPOINT active_record_2
634
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-11-02 20:28:05.206714"], ["updated_at", "2015-11-02 20:28:05.206714"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
634
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-11-08 15:08:43.972749"], ["updated_at", "2015-11-08 15:08:43.972749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
635
635
   (0.1ms) RELEASE SAVEPOINT active_record_2
636
636
   (0.1ms) SAVEPOINT active_record_2
637
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-11-02 20:28:05.209024"], ["updated_at", "2015-11-02 20:28:05.209024"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
637
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-11-08 15:08:43.974862"], ["updated_at", "2015-11-08 15:08:43.974862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
638
638
   (0.1ms) RELEASE SAVEPOINT active_record_2
639
639
   (0.1ms) SAVEPOINT active_record_2
640
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-11-02 20:28:05.211185"], ["updated_at", "2015-11-02 20:28:05.211185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
640
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-11-08 15:08:43.976853"], ["updated_at", "2015-11-08 15:08:43.976853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
641
641
   (0.1ms) RELEASE SAVEPOINT active_record_2
642
642
   (0.1ms) SAVEPOINT active_record_2
643
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-11-02 20:28:05.213524"], ["updated_at", "2015-11-02 20:28:05.213524"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
643
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-11-08 15:08:43.978950"], ["updated_at", "2015-11-08 15:08:43.978950"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
644
644
   (0.1ms) RELEASE SAVEPOINT active_record_2
645
645
   (0.1ms) SAVEPOINT active_record_2
646
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-11-02 20:28:05.215671"], ["updated_at", "2015-11-02 20:28:05.215671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
646
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-11-08 15:08:43.981022"], ["updated_at", "2015-11-08 15:08:43.981022"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
647
647
   (0.1ms) RELEASE SAVEPOINT active_record_2
648
648
   (0.1ms) SAVEPOINT active_record_2
649
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-11-02 20:28:05.217822"], ["updated_at", "2015-11-02 20:28:05.217822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-11-08 15:08:43.983129"], ["updated_at", "2015-11-08 15:08:43.983129"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
650
650
   (0.1ms) RELEASE SAVEPOINT active_record_2
651
651
   (0.1ms) SAVEPOINT active_record_2
652
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-11-02 20:28:05.220324"], ["updated_at", "2015-11-02 20:28:05.220324"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-11-08 15:08:43.985077"], ["updated_at", "2015-11-08 15:08:43.985077"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
653
653
   (0.1ms) RELEASE SAVEPOINT active_record_2
654
654
   (0.1ms) SAVEPOINT active_record_2
655
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-11-02 20:28:05.222398"], ["updated_at", "2015-11-02 20:28:05.222398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-11-08 15:08:43.987166"], ["updated_at", "2015-11-08 15:08:43.987166"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
656
656
   (0.1ms) RELEASE SAVEPOINT active_record_2
657
657
   (0.1ms) SAVEPOINT active_record_2
658
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-11-02 20:28:05.224480"], ["updated_at", "2015-11-02 20:28:05.224480"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-11-08 15:08:43.989370"], ["updated_at", "2015-11-08 15:08:43.989370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
659
   (0.1ms) RELEASE SAVEPOINT active_record_2
660
660
  Processing by PushType::WysiwygMediaController#index as JSON
661
661
  Parameters: {"filter"=>"image"}
662
662
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
663
663
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
664
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
664
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
665
665
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
666
666
   (0.1ms) ROLLBACK
667
667
   (0.1ms) BEGIN
@@ -669,89 +669,89 @@ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
669
669
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
670
670
  -------------------------------------------------------------------------------------------
671
671
   (0.1ms) SAVEPOINT active_record_1
672
-  (0.0ms) RELEASE SAVEPOINT active_record_1
673
-  (0.1ms) SAVEPOINT active_record_1
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+  (0.0ms) SAVEPOINT active_record_1
674
674
   (0.1ms) SAVEPOINT active_record_2
675
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-11-02 20:28:05.232748"], ["updated_at", "2015-11-02 20:28:05.232748"], ["file_ext", "png"], ["mime_type", "image/png"]]
675
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-11-08 15:08:43.997264"], ["updated_at", "2015-11-08 15:08:43.997264"], ["file_ext", "png"], ["mime_type", "image/png"]]
676
676
   (0.1ms) RELEASE SAVEPOINT active_record_2
677
677
   (0.1ms) SAVEPOINT active_record_2
678
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-11-02 20:28:05.234944"], ["updated_at", "2015-11-02 20:28:05.234944"], ["file_ext", "png"], ["mime_type", "image/png"]]
678
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-11-08 15:08:43.999468"], ["updated_at", "2015-11-08 15:08:43.999468"], ["file_ext", "png"], ["mime_type", "image/png"]]
679
679
   (0.1ms) RELEASE SAVEPOINT active_record_2
680
680
   (0.1ms) SAVEPOINT active_record_2
681
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-11-02 20:28:05.237137"], ["updated_at", "2015-11-02 20:28:05.237137"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-11-08 15:08:44.001969"], ["updated_at", "2015-11-08 15:08:44.001969"], ["file_ext", "png"], ["mime_type", "image/png"]]
682
682
   (0.1ms) RELEASE SAVEPOINT active_record_2
683
683
   (0.1ms) SAVEPOINT active_record_2
684
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "106"], ["created_at", "2015-11-02 20:28:05.239315"], ["updated_at", "2015-11-02 20:28:05.239315"], ["file_ext", "png"], ["mime_type", "image/png"]]
684
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "106"], ["created_at", "2015-11-08 15:08:44.004237"], ["updated_at", "2015-11-08 15:08:44.004237"], ["file_ext", "png"], ["mime_type", "image/png"]]
685
685
   (0.1ms) RELEASE SAVEPOINT active_record_2
686
686
   (0.1ms) SAVEPOINT active_record_2
687
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "107"], ["created_at", "2015-11-02 20:28:05.241415"], ["updated_at", "2015-11-02 20:28:05.241415"], ["file_ext", "png"], ["mime_type", "image/png"]]
687
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "107"], ["created_at", "2015-11-08 15:08:44.006339"], ["updated_at", "2015-11-08 15:08:44.006339"], ["file_ext", "png"], ["mime_type", "image/png"]]
688
688
   (0.1ms) RELEASE SAVEPOINT active_record_2
689
689
   (0.1ms) SAVEPOINT active_record_2
690
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-11-02 20:28:05.243592"], ["updated_at", "2015-11-02 20:28:05.243592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
690
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-11-08 15:08:44.008427"], ["updated_at", "2015-11-08 15:08:44.008427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
691
691
   (0.1ms) RELEASE SAVEPOINT active_record_2
692
692
   (0.1ms) SAVEPOINT active_record_2
693
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-11-02 20:28:05.245620"], ["updated_at", "2015-11-02 20:28:05.245620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
693
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-11-08 15:08:44.010609"], ["updated_at", "2015-11-08 15:08:44.010609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
694
   (0.1ms) RELEASE SAVEPOINT active_record_2
695
695
   (0.1ms) SAVEPOINT active_record_2
696
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-11-02 20:28:05.247703"], ["updated_at", "2015-11-02 20:28:05.247703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
696
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-11-08 15:08:44.012665"], ["updated_at", "2015-11-08 15:08:44.012665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
697
697
   (0.1ms) RELEASE SAVEPOINT active_record_2
698
698
   (0.1ms) SAVEPOINT active_record_2
699
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-11-02 20:28:05.249703"], ["updated_at", "2015-11-02 20:28:05.249703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
699
+ 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", "111"], ["created_at", "2015-11-08 15:08:44.014736"], ["updated_at", "2015-11-08 15:08:44.014736"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
700
700
   (0.1ms) RELEASE SAVEPOINT active_record_2
701
701
   (0.1ms) SAVEPOINT active_record_2
702
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-11-02 20:28:05.251711"], ["updated_at", "2015-11-02 20:28:05.251711"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
702
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-11-08 15:08:44.016889"], ["updated_at", "2015-11-08 15:08:44.016889"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
703
703
   (0.1ms) RELEASE SAVEPOINT active_record_2
704
704
   (0.1ms) SAVEPOINT active_record_2
705
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-11-02 20:28:05.253911"], ["updated_at", "2015-11-02 20:28:05.253911"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
705
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-11-08 15:08:44.019004"], ["updated_at", "2015-11-08 15:08:44.019004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
706
706
   (0.1ms) RELEASE SAVEPOINT active_record_2
707
707
   (0.1ms) SAVEPOINT active_record_2
708
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-11-02 20:28:05.255987"], ["updated_at", "2015-11-02 20:28:05.255987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
708
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-11-08 15:08:44.021081"], ["updated_at", "2015-11-08 15:08:44.021081"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
709
709
   (0.1ms) RELEASE SAVEPOINT active_record_2
710
710
   (0.1ms) SAVEPOINT active_record_2
711
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-11-02 20:28:05.258032"], ["updated_at", "2015-11-02 20:28:05.258032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
711
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-11-08 15:08:44.023287"], ["updated_at", "2015-11-08 15:08:44.023287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
712
712
   (0.1ms) RELEASE SAVEPOINT active_record_2
713
713
   (0.1ms) SAVEPOINT active_record_2
714
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-11-02 20:28:05.260209"], ["updated_at", "2015-11-02 20:28:05.260209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
714
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-11-08 15:08:44.025328"], ["updated_at", "2015-11-08 15:08:44.025328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
715
715
   (0.1ms) RELEASE SAVEPOINT active_record_2
716
716
   (0.1ms) SAVEPOINT active_record_2
717
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-11-02 20:28:05.262276"], ["updated_at", "2015-11-02 20:28:05.262276"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
717
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-11-08 15:08:44.027378"], ["updated_at", "2015-11-08 15:08:44.027378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
718
718
   (0.1ms) RELEASE SAVEPOINT active_record_2
719
719
   (0.1ms) SAVEPOINT active_record_2
720
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-11-02 20:28:05.264378"], ["updated_at", "2015-11-02 20:28:05.264378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
720
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-11-08 15:08:44.029499"], ["updated_at", "2015-11-08 15:08:44.029499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
721
721
   (0.1ms) RELEASE SAVEPOINT active_record_2
722
722
   (0.1ms) SAVEPOINT active_record_2
723
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-11-02 20:28:05.266707"], ["updated_at", "2015-11-02 20:28:05.266707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-11-08 15:08:44.031906"], ["updated_at", "2015-11-08 15:08:44.031906"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
724
724
   (0.1ms) RELEASE SAVEPOINT active_record_2
725
725
   (0.1ms) SAVEPOINT active_record_2
726
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-11-02 20:28:05.268881"], ["updated_at", "2015-11-02 20:28:05.268881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
726
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-11-08 15:08:44.034152"], ["updated_at", "2015-11-08 15:08:44.034152"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
727
   (0.1ms) RELEASE SAVEPOINT active_record_2
728
728
  Processing by PushType::WysiwygMediaController#index as JSON
729
729
  Parameters: {"filter"=>"image"}
730
- 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
730
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
731
731
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
732
732
  Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
733
733
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
734
734
   (0.1ms) ROLLBACK
735
-  (0.1ms) BEGIN
735
+  (0.0ms) BEGIN
736
736
  --------------------------------------------------------------------------------------------
737
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
737
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
738
738
  --------------------------------------------------------------------------------------------
739
-  (0.1ms) SAVEPOINT active_record_1
739
+  (0.0ms) SAVEPOINT active_record_1
740
740
   (0.0ms) RELEASE SAVEPOINT active_record_1
741
741
   (0.0ms) SAVEPOINT active_record_1
742
742
  Processing by PushType::WysiwygMediaController#create as JSON
743
743
  Parameters: {"asset"=>{}}
744
744
   (0.1ms) SAVEPOINT active_record_2
745
745
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
746
- Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)
746
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)
747
747
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
748
748
   (0.1ms) ROLLBACK
749
749
   (0.1ms) BEGIN
750
750
  --------------------------------------------------------------------------------------------
751
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
751
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
752
752
  --------------------------------------------------------------------------------------------
753
-  (0.1ms) SAVEPOINT active_record_1
754
-  (0.1ms) RELEASE SAVEPOINT active_record_1
753
+  (0.0ms) SAVEPOINT active_record_1
754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
755
755
   (0.0ms) SAVEPOINT active_record_1
756
756
  Processing by PushType::WysiwygMediaController#create as JSON
757
757
  Parameters: {"asset"=>{}}
@@ -762,10 +762,10 @@ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
762
762
   (0.1ms) ROLLBACK
763
763
   (0.1ms) BEGIN
764
764
  --------------------------------------------------------------------------------------------
765
- PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
765
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
766
766
  --------------------------------------------------------------------------------------------
767
-  (0.1ms) SAVEPOINT active_record_1
768
-  (0.1ms) RELEASE SAVEPOINT active_record_1
767
+  (0.0ms) SAVEPOINT active_record_1
768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
769
769
   (0.0ms) SAVEPOINT active_record_1
770
770
  Processing by PushType::WysiwygMediaController#create as JSON
771
771
  Parameters: {"asset"=>{}}
@@ -775,726 +775,726 @@ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
775
775
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
776
776
   (0.1ms) ROLLBACK
777
777
   (0.1ms) BEGIN
778
- -----------------------------------------------
779
- PushType::WysiwygFieldTest: test_0003_anonymous
780
- -----------------------------------------------
781
-  (0.1ms) SAVEPOINT active_record_1
782
-  (0.0ms) RELEASE SAVEPOINT active_record_1
778
+ --------------------------------------------------------------------------------------
779
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
780
+ --------------------------------------------------------------------------------------
783
781
   (0.0ms) SAVEPOINT active_record_1
784
-  (0.1ms) SAVEPOINT active_record_2
785
- PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
786
- SQL (0.2ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", "2015-11-02 20:28:05.311604"], ["updated_at", "2015-11-02 20:28:05.311604"]]
787
-  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tea5cca713923c75a6e5197062c850a82
788
- SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"], ["descendant_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"], ["generations", 0]]
789
-  (0.5ms) UPDATE "push_type_nodes"
790
- SET "sort_order" = t.seq + -1
791
- FROM (
792
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
793
- FROM "push_type_nodes"
794
- WHERE "parent_id" IS NULL
795
- ) AS t
796
- WHERE "push_type_nodes"."id" = t.id
797
- 
798
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"]]
799
- PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "dd91e25c-aad1-4815-a892-8a4315c1ea35"]]
800
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t82751ba85017326fc6a7ab1827b8cbf9
801
-  (0.1ms) RELEASE SAVEPOINT active_record_2
802
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
803
-  (0.1ms) ROLLBACK
804
-  (0.1ms) BEGIN
805
- -----------------------------------------------
806
- PushType::WysiwygFieldTest: test_0001_anonymous
807
- -----------------------------------------------
808
-  (0.1ms) SAVEPOINT active_record_1
809
782
   (0.0ms) RELEASE SAVEPOINT active_record_1
810
783
   (0.0ms) SAVEPOINT active_record_1
811
784
   (0.1ms) SAVEPOINT active_record_2
812
- PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
813
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["status", 0], ["created_at", "2015-11-02 20:28:05.334540"], ["updated_at", "2015-11-02 20:28:05.334540"]]
814
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5d03a142c60fe4043a69917a96824803
815
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"], ["descendant_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"], ["generations", 0]]
816
-  (0.3ms) UPDATE "push_type_nodes"
817
- SET "sort_order" = t.seq + -1
818
- FROM (
819
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
820
- FROM "push_type_nodes"
821
- WHERE "parent_id" IS NULL
822
- ) AS t
823
- WHERE "push_type_nodes"."id" = t.id
824
- 
825
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"]]
826
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5b7d7783-3f95-4389-aa4f-62bac8100b37"]]
827
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t86fa6a081ceffa907e667e9188f93fbb
828
-  (0.1ms) RELEASE SAVEPOINT active_record_2
829
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
830
-  (0.1ms) ROLLBACK
831
-  (0.0ms) BEGIN
832
- -----------------------------------------------
833
- PushType::WysiwygFieldTest: test_0004_anonymous
834
- -----------------------------------------------
835
-  (0.0ms) SAVEPOINT active_record_1
836
-  (0.0ms) RELEASE SAVEPOINT active_record_1
837
-  (0.0ms) SAVEPOINT active_record_1
838
-  (0.1ms) SAVEPOINT active_record_2
839
- PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
840
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["status", 0], ["created_at", "2015-11-02 20:28:05.342459"], ["updated_at", "2015-11-02 20:28:05.342459"]]
841
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6aac47c5906c940e200230baabee15e8
842
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7265df95-7550-4155-b35f-18578c49548f"], ["descendant_id", "7265df95-7550-4155-b35f-18578c49548f"], ["generations", 0]]
843
-  (0.3ms) UPDATE "push_type_nodes"
844
- SET "sort_order" = t.seq + -1
845
- FROM (
846
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
847
- FROM "push_type_nodes"
848
- WHERE "parent_id" IS NULL
849
- ) AS t
850
- WHERE "push_type_nodes"."id" = t.id
851
- 
852
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7265df95-7550-4155-b35f-18578c49548f"]]
853
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "7265df95-7550-4155-b35f-18578c49548f"]]
854
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6f83d7cb875117305005b18c34c2994d
855
-  (0.1ms) RELEASE SAVEPOINT active_record_2
856
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
857
-  (0.1ms) ROLLBACK
858
-  (0.1ms) BEGIN
859
- -----------------------------------------------
860
- PushType::WysiwygFieldTest: test_0002_anonymous
861
- -----------------------------------------------
862
-  (0.0ms) SAVEPOINT active_record_1
863
-  (0.0ms) RELEASE SAVEPOINT active_record_1
864
-  (0.0ms) SAVEPOINT active_record_1
865
-  (0.1ms) SAVEPOINT active_record_2
866
- PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
867
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-11-02 20:28:05.350293"], ["updated_at", "2015-11-02 20:28:05.350293"]]
868
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfbace101b9e68a3e0489f83484232602
869
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"], ["descendant_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"], ["generations", 0]]
870
-  (0.3ms) UPDATE "push_type_nodes"
871
- SET "sort_order" = t.seq + -1
872
- FROM (
873
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
874
- FROM "push_type_nodes"
875
- WHERE "parent_id" IS NULL
876
- ) AS t
877
- WHERE "push_type_nodes"."id" = t.id
878
- 
879
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"]]
880
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "14dcdeea-c51c-4a4d-b0f0-142c3fc64fbd"]]
881
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbcb181e8802041f35584f44257f68946
882
-  (0.1ms) RELEASE SAVEPOINT active_record_2
883
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
884
-  (0.1ms) ROLLBACK
885
-  (0.1ms) BEGIN
886
- -----------------------------------------------
887
- PushType::WysiwygFieldTest: test_0005_anonymous
888
- -----------------------------------------------
889
-  (0.0ms) SAVEPOINT active_record_1
890
-  (0.0ms) RELEASE SAVEPOINT active_record_1
891
-  (0.0ms) SAVEPOINT active_record_1
892
-  (0.1ms) SAVEPOINT active_record_2
893
- PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
894
- SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", "2015-11-02 20:28:05.357923"], ["updated_at", "2015-11-02 20:28:05.357923"]]
895
-  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2afab455acaad66ef9e0af32b775164d
896
- SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"], ["descendant_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"], ["generations", 0]]
897
-  (0.2ms) UPDATE "push_type_nodes"
898
- SET "sort_order" = t.seq + -1
899
- FROM (
900
- SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
901
- FROM "push_type_nodes"
902
- WHERE "parent_id" IS NULL
903
- ) AS t
904
- WHERE "push_type_nodes"."id" = t.id
905
- 
906
- PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"]]
907
- PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "aa16b120-94a7-44da-ae84-9a4aae532b2d"]]
908
-  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6d4903ac943561a160f91fddf828c233
909
-  (0.1ms) RELEASE SAVEPOINT active_record_2
910
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
911
-  (0.1ms) ROLLBACK
912
-  (0.1ms) BEGIN
913
- -----------------------------------------------------------------------------------------
914
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
915
- -----------------------------------------------------------------------------------------
916
-  (0.1ms) SAVEPOINT active_record_1
917
-  (0.1ms) RELEASE SAVEPOINT active_record_1
918
-  (0.1ms) SAVEPOINT active_record_1
919
- Processing by PushType::WysiwygMediaController#create as JSON
920
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccb3c8db8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1ttyqle>>}}
921
-  (0.1ms) SAVEPOINT active_record_2
922
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-11-02 20:28:05.369455"], ["updated_at", "2015-11-02 20:28:05.369455"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
-  (0.1ms) RELEASE SAVEPOINT active_record_2
924
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
925
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
926
-  (0.1ms) ROLLBACK
927
-  (0.1ms) BEGIN
928
- -----------------------------------------------------------------------------------------
929
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
930
- -----------------------------------------------------------------------------------------
931
-  (0.1ms) SAVEPOINT active_record_1
932
-  (0.0ms) RELEASE SAVEPOINT active_record_1
933
-  (0.0ms) SAVEPOINT active_record_1
934
- Processing by PushType::WysiwygMediaController#create as JSON
935
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccb4087d8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1gsimqo>>}}
936
-  (0.1ms) SAVEPOINT active_record_2
937
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-11-02 20:28:05.375169"], ["updated_at", "2015-11-02 20:28:05.375169"], ["file_ext", "png"], ["mime_type", "image/png"]]
938
-  (0.1ms) RELEASE SAVEPOINT active_record_2
939
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
940
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
941
-  (0.1ms) ROLLBACK
942
-  (0.1ms) BEGIN
943
- -----------------------------------------------------------------------------------------
944
- PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
945
- -----------------------------------------------------------------------------------------
946
-  (0.1ms) SAVEPOINT active_record_1
947
-  (0.1ms) RELEASE SAVEPOINT active_record_1
948
-  (0.0ms) SAVEPOINT active_record_1
949
- Processing by PushType::WysiwygMediaController#create as JSON
950
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f8ccbb144c8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151102-15120-1efqzz7>>}}
951
-  (0.1ms) SAVEPOINT active_record_2
952
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-11-02 20:28:05.380876"], ["updated_at", "2015-11-02 20:28:05.380876"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-11-08 15:08:44.056576"], ["updated_at", "2015-11-08 15:08:44.056576"], ["file_ext", "png"], ["mime_type", "image/png"]]
953
786
   (0.1ms) RELEASE SAVEPOINT active_record_2
954
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
955
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
956
-  (0.1ms) ROLLBACK
957
-  (0.1ms) BEGIN
958
- --------------------------------------------------------------------------------------
959
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
960
- --------------------------------------------------------------------------------------
961
-  (0.0ms) SAVEPOINT active_record_1
962
-  (0.0ms) RELEASE SAVEPOINT active_record_1
963
-  (0.0ms) SAVEPOINT active_record_1
964
787
   (0.1ms) SAVEPOINT active_record_2
965
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "124"], ["created_at", "2015-11-02 20:28:05.385364"], ["updated_at", "2015-11-02 20:28:05.385364"], ["file_ext", "png"], ["mime_type", "image/png"]]
788
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-11-08 15:08:44.058787"], ["updated_at", "2015-11-08 15:08:44.058787"], ["file_ext", "png"], ["mime_type", "image/png"]]
966
789
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
790
   (0.1ms) SAVEPOINT active_record_2
968
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "125"], ["created_at", "2015-11-02 20:28:05.387732"], ["updated_at", "2015-11-02 20:28:05.387732"], ["file_ext", "png"], ["mime_type", "image/png"]]
791
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-11-08 15:08:44.060826"], ["updated_at", "2015-11-08 15:08:44.060826"], ["file_ext", "png"], ["mime_type", "image/png"]]
969
792
   (0.1ms) RELEASE SAVEPOINT active_record_2
970
793
   (0.1ms) SAVEPOINT active_record_2
971
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "126"], ["created_at", "2015-11-02 20:28:05.390046"], ["updated_at", "2015-11-02 20:28:05.390046"], ["file_ext", "png"], ["mime_type", "image/png"]]
794
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "124"], ["created_at", "2015-11-08 15:08:44.062832"], ["updated_at", "2015-11-08 15:08:44.062832"], ["file_ext", "png"], ["mime_type", "image/png"]]
972
795
   (0.1ms) RELEASE SAVEPOINT active_record_2
973
796
   (0.1ms) SAVEPOINT active_record_2
974
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "127"], ["created_at", "2015-11-02 20:28:05.392312"], ["updated_at", "2015-11-02 20:28:05.392312"], ["file_ext", "png"], ["mime_type", "image/png"]]
797
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "125"], ["created_at", "2015-11-08 15:08:44.064936"], ["updated_at", "2015-11-08 15:08:44.064936"], ["file_ext", "png"], ["mime_type", "image/png"]]
975
798
   (0.1ms) RELEASE SAVEPOINT active_record_2
976
799
   (0.1ms) SAVEPOINT active_record_2
977
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-11-02 20:28:05.394693"], ["updated_at", "2015-11-02 20:28:05.394693"], ["file_ext", "png"], ["mime_type", "image/png"]]
800
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-11-08 15:08:44.067224"], ["updated_at", "2015-11-08 15:08:44.067224"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
978
801
   (0.1ms) RELEASE SAVEPOINT active_record_2
979
802
   (0.1ms) SAVEPOINT active_record_2
980
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-11-02 20:28:05.396875"], ["updated_at", "2015-11-02 20:28:05.396875"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
803
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-11-08 15:08:44.069327"], ["updated_at", "2015-11-08 15:08:44.069327"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
981
804
   (0.1ms) RELEASE SAVEPOINT active_record_2
982
805
   (0.1ms) SAVEPOINT active_record_2
983
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-11-02 20:28:05.399156"], ["updated_at", "2015-11-02 20:28:05.399156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
806
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-11-08 15:08:44.071417"], ["updated_at", "2015-11-08 15:08:44.071417"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
984
807
   (0.1ms) RELEASE SAVEPOINT active_record_2
985
808
   (0.1ms) SAVEPOINT active_record_2
986
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-11-02 20:28:05.401447"], ["updated_at", "2015-11-02 20:28:05.401447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
809
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-11-08 15:08:44.073417"], ["updated_at", "2015-11-08 15:08:44.073417"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
810
   (0.1ms) RELEASE SAVEPOINT active_record_2
988
811
   (0.1ms) SAVEPOINT active_record_2
989
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-11-02 20:28:05.403832"], ["updated_at", "2015-11-02 20:28:05.403832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-11-08 15:08:44.075467"], ["updated_at", "2015-11-08 15:08:44.075467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
990
813
   (0.1ms) RELEASE SAVEPOINT active_record_2
991
814
   (0.1ms) SAVEPOINT active_record_2
992
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-11-02 20:28:05.405989"], ["updated_at", "2015-11-02 20:28:05.405989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-11-08 15:08:44.077892"], ["updated_at", "2015-11-08 15:08:44.077892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
993
816
   (0.1ms) RELEASE SAVEPOINT active_record_2
994
817
   (0.1ms) SAVEPOINT active_record_2
995
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-11-02 20:28:05.408186"], ["updated_at", "2015-11-02 20:28:05.408186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-11-08 15:08:44.080068"], ["updated_at", "2015-11-08 15:08:44.080068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
996
819
   (0.1ms) RELEASE SAVEPOINT active_record_2
997
820
   (0.1ms) SAVEPOINT active_record_2
998
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-11-02 20:28:05.410370"], ["updated_at", "2015-11-02 20:28:05.410370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-11-08 15:08:44.082150"], ["updated_at", "2015-11-08 15:08:44.082150"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
999
822
   (0.1ms) RELEASE SAVEPOINT active_record_2
1000
823
   (0.1ms) SAVEPOINT active_record_2
1001
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-11-02 20:28:05.412597"], ["updated_at", "2015-11-02 20:28:05.412597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-11-08 15:08:44.084293"], ["updated_at", "2015-11-08 15:08:44.084293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1002
825
   (0.1ms) RELEASE SAVEPOINT active_record_2
1003
826
   (0.1ms) SAVEPOINT active_record_2
1004
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-11-02 20:28:05.414869"], ["updated_at", "2015-11-02 20:28:05.414869"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "135"], ["created_at", "2015-11-08 15:08:44.086318"], ["updated_at", "2015-11-08 15:08:44.086318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1005
828
   (0.1ms) RELEASE SAVEPOINT active_record_2
1006
829
   (0.1ms) SAVEPOINT active_record_2
1007
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-11-02 20:28:05.417133"], ["updated_at", "2015-11-02 20:28:05.417133"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "136"], ["created_at", "2015-11-08 15:08:44.088317"], ["updated_at", "2015-11-08 15:08:44.088317"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1008
831
   (0.1ms) RELEASE SAVEPOINT active_record_2
1009
832
   (0.1ms) SAVEPOINT active_record_2
1010
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-11-02 20:28:05.419278"], ["updated_at", "2015-11-02 20:28:05.419278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "137"], ["created_at", "2015-11-08 15:08:44.090439"], ["updated_at", "2015-11-08 15:08:44.090439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1011
834
   (0.1ms) RELEASE SAVEPOINT active_record_2
1012
835
   (0.1ms) SAVEPOINT active_record_2
1013
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-11-02 20:28:05.421464"], ["updated_at", "2015-11-02 20:28:05.421464"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "138"], ["created_at", "2015-11-08 15:08:44.092563"], ["updated_at", "2015-11-08 15:08:44.092563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1014
837
   (0.1ms) RELEASE SAVEPOINT active_record_2
1015
-  (0.1ms) SAVEPOINT active_record_2
1016
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-11-02 20:28:05.423550"], ["updated_at", "2015-11-02 20:28:05.423550"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1017
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1018
838
  Processing by PushType::WysiwygMediaController#index as JSON
1019
839
  Parameters: {"filter"=>"file", "page"=>2}
1020
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1021
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1022
- Completed 200 OK in 119ms (Views: 0.4ms | ActiveRecord: 0.8ms)
1023
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1024
-  (0.1ms) ROLLBACK
1025
-  (0.1ms) BEGIN
840
+ 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
841
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
842
+ Completed 200 OK in 120ms (Views: 0.2ms | ActiveRecord: 0.6ms)
843
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
844
+  (0.1ms) ROLLBACK
845
+  (0.1ms) BEGIN
1026
846
  --------------------------------------------------------------------------------------
1027
847
  PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
1028
848
  --------------------------------------------------------------------------------------
1029
-  (0.1ms) SAVEPOINT active_record_1
1030
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1031
-  (0.1ms) SAVEPOINT active_record_1
1032
-  (0.1ms) SAVEPOINT active_record_2
1033
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "142"], ["created_at", "2015-11-02 20:28:05.547652"], ["updated_at", "2015-11-02 20:28:05.547652"], ["file_ext", "png"], ["mime_type", "image/png"]]
1034
-  (0.1ms) RELEASE SAVEPOINT active_record_2
849
+  (0.1ms) SAVEPOINT active_record_1
850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
851
+  (0.0ms) SAVEPOINT active_record_1
1035
852
   (0.1ms) SAVEPOINT active_record_2
1036
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "143"], ["created_at", "2015-11-02 20:28:05.550356"], ["updated_at", "2015-11-02 20:28:05.550356"], ["file_ext", "png"], ["mime_type", "image/png"]]
853
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-11-08 15:08:44.217566"], ["updated_at", "2015-11-08 15:08:44.217566"], ["file_ext", "png"], ["mime_type", "image/png"]]
1037
854
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
855
   (0.1ms) SAVEPOINT active_record_2
1039
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "144"], ["created_at", "2015-11-02 20:28:05.552777"], ["updated_at", "2015-11-02 20:28:05.552777"], ["file_ext", "png"], ["mime_type", "image/png"]]
856
+ 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", "140"], ["created_at", "2015-11-08 15:08:44.220567"], ["updated_at", "2015-11-08 15:08:44.220567"], ["file_ext", "png"], ["mime_type", "image/png"]]
1040
857
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
858
   (0.1ms) SAVEPOINT active_record_2
1042
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "145"], ["created_at", "2015-11-02 20:28:05.555251"], ["updated_at", "2015-11-02 20:28:05.555251"], ["file_ext", "png"], ["mime_type", "image/png"]]
859
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "141"], ["created_at", "2015-11-08 15:08:44.222958"], ["updated_at", "2015-11-08 15:08:44.222958"], ["file_ext", "png"], ["mime_type", "image/png"]]
1043
860
   (0.1ms) RELEASE SAVEPOINT active_record_2
1044
861
   (0.1ms) SAVEPOINT active_record_2
1045
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-11-02 20:28:05.557871"], ["updated_at", "2015-11-02 20:28:05.557871"], ["file_ext", "png"], ["mime_type", "image/png"]]
862
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "142"], ["created_at", "2015-11-08 15:08:44.225061"], ["updated_at", "2015-11-08 15:08:44.225061"], ["file_ext", "png"], ["mime_type", "image/png"]]
1046
863
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
864
   (0.1ms) SAVEPOINT active_record_2
1048
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-11-02 20:28:05.560355"], ["updated_at", "2015-11-02 20:28:05.560355"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
865
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "143"], ["created_at", "2015-11-08 15:08:44.227281"], ["updated_at", "2015-11-08 15:08:44.227281"], ["file_ext", "png"], ["mime_type", "image/png"]]
1049
866
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
867
   (0.1ms) SAVEPOINT active_record_2
1051
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-11-02 20:28:05.562883"], ["updated_at", "2015-11-02 20:28:05.562883"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
868
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-11-08 15:08:44.229460"], ["updated_at", "2015-11-08 15:08:44.229460"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
869
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
870
   (0.1ms) SAVEPOINT active_record_2
1054
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-11-02 20:28:05.565037"], ["updated_at", "2015-11-02 20:28:05.565037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
871
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-11-08 15:08:44.231791"], ["updated_at", "2015-11-08 15:08:44.231791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
872
   (0.1ms) RELEASE SAVEPOINT active_record_2
1056
873
   (0.1ms) SAVEPOINT active_record_2
1057
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-11-02 20:28:05.567289"], ["updated_at", "2015-11-02 20:28:05.567289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
874
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-11-08 15:08:44.234163"], ["updated_at", "2015-11-08 15:08:44.234163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
875
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
876
   (0.1ms) SAVEPOINT active_record_2
1060
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-11-02 20:28:05.569429"], ["updated_at", "2015-11-02 20:28:05.569429"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
877
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-11-08 15:08:44.236371"], ["updated_at", "2015-11-08 15:08:44.236371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
878
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
879
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-11-02 20:28:05.571474"], ["updated_at", "2015-11-02 20:28:05.571474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-11-08 15:08:44.238414"], ["updated_at", "2015-11-08 15:08:44.238414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
881
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
882
   (0.1ms) SAVEPOINT active_record_2
1066
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-11-02 20:28:05.573543"], ["updated_at", "2015-11-02 20:28:05.573543"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-11-08 15:08:44.240497"], ["updated_at", "2015-11-08 15:08:44.240497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
884
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
885
   (0.1ms) SAVEPOINT active_record_2
1069
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-11-02 20:28:05.575589"], ["updated_at", "2015-11-02 20:28:05.575589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-11-08 15:08:44.242559"], ["updated_at", "2015-11-08 15:08:44.242559"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1070
887
   (0.1ms) RELEASE SAVEPOINT active_record_2
1071
888
   (0.1ms) SAVEPOINT active_record_2
1072
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-11-02 20:28:05.577736"], ["updated_at", "2015-11-02 20:28:05.577736"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-11-08 15:08:44.244849"], ["updated_at", "2015-11-08 15:08:44.244849"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1073
890
   (0.1ms) RELEASE SAVEPOINT active_record_2
1074
891
   (0.1ms) SAVEPOINT active_record_2
1075
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-11-02 20:28:05.579953"], ["updated_at", "2015-11-02 20:28:05.579953"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-11-08 15:08:44.247014"], ["updated_at", "2015-11-08 15:08:44.247014"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1076
893
   (0.1ms) RELEASE SAVEPOINT active_record_2
1077
894
   (0.1ms) SAVEPOINT active_record_2
1078
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-11-02 20:28:05.582200"], ["updated_at", "2015-11-02 20:28:05.582200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "153"], ["created_at", "2015-11-08 15:08:44.249309"], ["updated_at", "2015-11-08 15:08:44.249309"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1079
896
   (0.1ms) RELEASE SAVEPOINT active_record_2
1080
897
   (0.1ms) SAVEPOINT active_record_2
1081
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-11-02 20:28:05.584378"], ["updated_at", "2015-11-02 20:28:05.584378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "154"], ["created_at", "2015-11-08 15:08:44.251558"], ["updated_at", "2015-11-08 15:08:44.251558"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1082
899
   (0.1ms) RELEASE SAVEPOINT active_record_2
1083
900
   (0.1ms) SAVEPOINT active_record_2
1084
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-11-02 20:28:05.586470"], ["updated_at", "2015-11-02 20:28:05.586470"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "155"], ["created_at", "2015-11-08 15:08:44.253786"], ["updated_at", "2015-11-08 15:08:44.253786"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1085
902
   (0.1ms) RELEASE SAVEPOINT active_record_2
903
+  (0.1ms) SAVEPOINT active_record_2
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", "156"], ["created_at", "2015-11-08 15:08:44.256234"], ["updated_at", "2015-11-08 15:08:44.256234"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
905
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1086
906
  Processing by PushType::WysiwygMediaController#index as JSON
1087
907
  Parameters: {"filter"=>"file", "page"=>2}
1088
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1089
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
908
+ 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
909
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1090
910
  Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1091
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1092
-  (0.1ms) ROLLBACK
1093
-  (0.1ms) BEGIN
911
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
912
+  (0.1ms) ROLLBACK
913
+  (0.1ms) BEGIN
1094
914
  --------------------------------------------------------------------------------------
1095
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
915
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
1096
916
  --------------------------------------------------------------------------------------
1097
-  (0.1ms) SAVEPOINT active_record_1
1098
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1099
-  (0.0ms) SAVEPOINT active_record_1
1100
-  (0.1ms) SAVEPOINT active_record_2
1101
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-11-02 20:28:05.593637"], ["updated_at", "2015-11-02 20:28:05.593637"], ["file_ext", "png"], ["mime_type", "image/png"]]
1102
-  (0.1ms) RELEASE SAVEPOINT active_record_2
917
+  (0.0ms) SAVEPOINT active_record_1
918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
919
+  (0.0ms) SAVEPOINT active_record_1
1103
920
   (0.1ms) SAVEPOINT active_record_2
1104
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-11-02 20:28:05.595821"], ["updated_at", "2015-11-02 20:28:05.595821"], ["file_ext", "png"], ["mime_type", "image/png"]]
921
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-11-08 15:08:44.263715"], ["updated_at", "2015-11-08 15:08:44.263715"], ["file_ext", "png"], ["mime_type", "image/png"]]
1105
922
   (0.1ms) RELEASE SAVEPOINT active_record_2
1106
923
   (0.1ms) SAVEPOINT active_record_2
1107
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-11-02 20:28:05.597871"], ["updated_at", "2015-11-02 20:28:05.597871"], ["file_ext", "png"], ["mime_type", "image/png"]]
924
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-11-08 15:08:44.266090"], ["updated_at", "2015-11-08 15:08:44.266090"], ["file_ext", "png"], ["mime_type", "image/png"]]
1108
925
   (0.1ms) RELEASE SAVEPOINT active_record_2
1109
926
   (0.1ms) SAVEPOINT active_record_2
1110
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-11-02 20:28:05.599889"], ["updated_at", "2015-11-02 20:28:05.599889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1111
-  (0.2ms) RELEASE SAVEPOINT active_record_2
927
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-11-08 15:08:44.268311"], ["updated_at", "2015-11-08 15:08:44.268311"], ["file_ext", "png"], ["mime_type", "image/png"]]
928
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1112
929
   (0.1ms) SAVEPOINT active_record_2
1113
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-11-02 20:28:05.602043"], ["updated_at", "2015-11-02 20:28:05.602043"], ["file_ext", "png"], ["mime_type", "image/png"]]
930
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-11-08 15:08:44.270422"], ["updated_at", "2015-11-08 15:08:44.270422"], ["file_ext", "png"], ["mime_type", "image/png"]]
1114
931
   (0.1ms) RELEASE SAVEPOINT active_record_2
1115
932
   (0.1ms) SAVEPOINT active_record_2
1116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-11-02 20:28:05.604216"], ["updated_at", "2015-11-02 20:28:05.604216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
933
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-11-08 15:08:44.272474"], ["updated_at", "2015-11-08 15:08:44.272474"], ["file_ext", "png"], ["mime_type", "image/png"]]
1117
934
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
935
   (0.1ms) SAVEPOINT active_record_2
1119
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-11-02 20:28:05.606186"], ["updated_at", "2015-11-02 20:28:05.606186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
936
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-11-08 15:08:44.274735"], ["updated_at", "2015-11-08 15:08:44.274735"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1120
937
   (0.1ms) RELEASE SAVEPOINT active_record_2
1121
938
   (0.1ms) SAVEPOINT active_record_2
1122
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-11-02 20:28:05.608292"], ["updated_at", "2015-11-02 20:28:05.608292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
939
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-11-08 15:08:44.276991"], ["updated_at", "2015-11-08 15:08:44.276991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1123
940
   (0.1ms) RELEASE SAVEPOINT active_record_2
1124
941
   (0.1ms) SAVEPOINT active_record_2
1125
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-11-02 20:28:05.610329"], ["updated_at", "2015-11-02 20:28:05.610329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
942
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-11-08 15:08:44.279220"], ["updated_at", "2015-11-08 15:08:44.279220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1126
943
   (0.1ms) RELEASE SAVEPOINT active_record_2
1127
944
   (0.1ms) SAVEPOINT active_record_2
1128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-11-02 20:28:05.612292"], ["updated_at", "2015-11-02 20:28:05.612292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-11-08 15:08:44.281444"], ["updated_at", "2015-11-08 15:08:44.281444"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1129
946
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
947
   (0.1ms) SAVEPOINT active_record_2
1131
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-11-02 20:28:05.614623"], ["updated_at", "2015-11-02 20:28:05.614623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
948
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-11-08 15:08:44.283569"], ["updated_at", "2015-11-08 15:08:44.283569"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1132
949
   (0.1ms) RELEASE SAVEPOINT active_record_2
1133
950
   (0.1ms) SAVEPOINT active_record_2
1134
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-11-02 20:28:05.616851"], ["updated_at", "2015-11-02 20:28:05.616851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
951
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-11-08 15:08:44.285745"], ["updated_at", "2015-11-08 15:08:44.285745"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1135
952
   (0.1ms) RELEASE SAVEPOINT active_record_2
1136
953
   (0.1ms) SAVEPOINT active_record_2
1137
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-11-02 20:28:05.618866"], ["updated_at", "2015-11-02 20:28:05.618866"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
954
+ 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-11-08 15:08:44.358155"], ["updated_at", "2015-11-08 15:08:44.358155"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1138
955
   (0.1ms) RELEASE SAVEPOINT active_record_2
1139
956
   (0.1ms) SAVEPOINT active_record_2
1140
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-11-02 20:28:05.620873"], ["updated_at", "2015-11-02 20:28:05.620873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
957
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-11-08 15:08:44.360910"], ["updated_at", "2015-11-08 15:08:44.360910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1141
958
   (0.1ms) RELEASE SAVEPOINT active_record_2
1142
959
   (0.1ms) SAVEPOINT active_record_2
1143
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-11-02 20:28:05.622885"], ["updated_at", "2015-11-02 20:28:05.622885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-11-08 15:08:44.363093"], ["updated_at", "2015-11-08 15:08:44.363093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1144
961
   (0.1ms) RELEASE SAVEPOINT active_record_2
1145
962
   (0.1ms) SAVEPOINT active_record_2
1146
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-11-02 20:28:05.624939"], ["updated_at", "2015-11-02 20:28:05.624939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-11-08 15:08:44.365201"], ["updated_at", "2015-11-08 15:08:44.365201"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1147
964
   (0.1ms) RELEASE SAVEPOINT active_record_2
1148
965
   (0.1ms) SAVEPOINT active_record_2
1149
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-11-02 20:28:05.627246"], ["updated_at", "2015-11-02 20:28:05.627246"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-11-08 15:08:44.367412"], ["updated_at", "2015-11-08 15:08:44.367412"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1150
967
   (0.1ms) RELEASE SAVEPOINT active_record_2
1151
968
   (0.1ms) SAVEPOINT active_record_2
1152
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-11-02 20:28:05.629804"], ["updated_at", "2015-11-02 20:28:05.629804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-11-08 15:08:44.369886"], ["updated_at", "2015-11-08 15:08:44.369886"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1153
970
   (0.1ms) RELEASE SAVEPOINT active_record_2
971
+  (0.1ms) SAVEPOINT active_record_2
972
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-11-08 15:08:44.372336"], ["updated_at", "2015-11-08 15:08:44.372336"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
973
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1154
974
  Processing by PushType::WysiwygMediaController#index as JSON
1155
975
  Parameters: {"filter"=>"file", "page"=>2}
1156
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1157
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
976
+ 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
977
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1158
978
  Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1159
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1160
-  (0.2ms) ROLLBACK
1161
-  (0.1ms) BEGIN
979
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
980
+  (0.2ms) ROLLBACK
981
+  (0.1ms) BEGIN
1162
982
  --------------------------------------------------------------------------------------
1163
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
983
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
1164
984
  --------------------------------------------------------------------------------------
1165
-  (0.1ms) SAVEPOINT active_record_1
1166
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1167
-  (0.1ms) SAVEPOINT active_record_1
1168
-  (0.1ms) SAVEPOINT active_record_2
1169
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-11-02 20:28:05.637567"], ["updated_at", "2015-11-02 20:28:05.637567"], ["file_ext", "png"], ["mime_type", "image/png"]]
1170
-  (0.1ms) RELEASE SAVEPOINT active_record_2
985
+  (0.0ms) SAVEPOINT active_record_1
986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
987
+  (0.0ms) SAVEPOINT active_record_1
1171
988
   (0.1ms) SAVEPOINT active_record_2
1172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-11-02 20:28:05.639720"], ["updated_at", "2015-11-02 20:28:05.639720"], ["file_ext", "png"], ["mime_type", "image/png"]]
989
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-11-08 15:08:44.380191"], ["updated_at", "2015-11-08 15:08:44.380191"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
990
   (0.1ms) RELEASE SAVEPOINT active_record_2
1174
991
   (0.1ms) SAVEPOINT active_record_2
1175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-11-02 20:28:05.642105"], ["updated_at", "2015-11-02 20:28:05.642105"], ["file_ext", "png"], ["mime_type", "image/png"]]
992
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-11-08 15:08:44.382617"], ["updated_at", "2015-11-08 15:08:44.382617"], ["file_ext", "png"], ["mime_type", "image/png"]]
1176
993
   (0.1ms) RELEASE SAVEPOINT active_record_2
1177
994
   (0.1ms) SAVEPOINT active_record_2
1178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-11-02 20:28:05.644359"], ["updated_at", "2015-11-02 20:28:05.644359"], ["file_ext", "png"], ["mime_type", "image/png"]]
995
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-11-08 15:08:44.384989"], ["updated_at", "2015-11-08 15:08:44.384989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1179
996
   (0.1ms) RELEASE SAVEPOINT active_record_2
1180
997
   (0.1ms) SAVEPOINT active_record_2
1181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-11-02 20:28:05.646495"], ["updated_at", "2015-11-02 20:28:05.646495"], ["file_ext", "png"], ["mime_type", "image/png"]]
998
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-11-08 15:08:44.387098"], ["updated_at", "2015-11-08 15:08:44.387098"], ["file_ext", "png"], ["mime_type", "image/png"]]
1182
999
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
1000
   (0.1ms) SAVEPOINT active_record_2
1184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-11-02 20:28:05.648632"], ["updated_at", "2015-11-02 20:28:05.648632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-11-08 15:08:44.389236"], ["updated_at", "2015-11-08 15:08:44.389236"], ["file_ext", "png"], ["mime_type", "image/png"]]
1185
1002
   (0.1ms) RELEASE SAVEPOINT active_record_2
1186
1003
   (0.1ms) SAVEPOINT active_record_2
1187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-11-02 20:28:05.650747"], ["updated_at", "2015-11-02 20:28:05.650747"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1004
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-11-08 15:08:44.391353"], ["updated_at", "2015-11-08 15:08:44.391353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1188
1005
   (0.1ms) RELEASE SAVEPOINT active_record_2
1189
1006
   (0.1ms) SAVEPOINT active_record_2
1190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-11-02 20:28:05.652897"], ["updated_at", "2015-11-02 20:28:05.652897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1007
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-11-08 15:08:44.393540"], ["updated_at", "2015-11-08 15:08:44.393540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1191
1008
   (0.1ms) RELEASE SAVEPOINT active_record_2
1192
1009
   (0.1ms) SAVEPOINT active_record_2
1193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-11-02 20:28:05.654939"], ["updated_at", "2015-11-02 20:28:05.654939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1010
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-11-08 15:08:44.395601"], ["updated_at", "2015-11-08 15:08:44.395601"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1194
1011
   (0.1ms) RELEASE SAVEPOINT active_record_2
1195
1012
   (0.1ms) SAVEPOINT active_record_2
1196
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-11-02 20:28:05.656991"], ["updated_at", "2015-11-02 20:28:05.656991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1013
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-11-08 15:08:44.397532"], ["updated_at", "2015-11-08 15:08:44.397532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1197
1014
   (0.1ms) RELEASE SAVEPOINT active_record_2
1198
1015
   (0.1ms) SAVEPOINT active_record_2
1199
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-11-02 20:28:05.659115"], ["updated_at", "2015-11-02 20:28:05.659115"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1016
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-11-08 15:08:44.399574"], ["updated_at", "2015-11-08 15:08:44.399574"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1200
1017
   (0.1ms) RELEASE SAVEPOINT active_record_2
1201
1018
   (0.1ms) SAVEPOINT active_record_2
1202
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-11-02 20:28:05.661165"], ["updated_at", "2015-11-02 20:28:05.661165"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-11-08 15:08:44.401633"], ["updated_at", "2015-11-08 15:08:44.401633"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1203
1020
   (0.1ms) RELEASE SAVEPOINT active_record_2
1204
1021
   (0.1ms) SAVEPOINT active_record_2
1205
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-11-02 20:28:05.663305"], ["updated_at", "2015-11-02 20:28:05.663305"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1022
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-11-08 15:08:44.403557"], ["updated_at", "2015-11-08 15:08:44.403557"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1206
1023
   (0.1ms) RELEASE SAVEPOINT active_record_2
1207
1024
   (0.1ms) SAVEPOINT active_record_2
1208
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-11-02 20:28:05.665405"], ["updated_at", "2015-11-02 20:28:05.665405"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1025
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-11-08 15:08:44.405533"], ["updated_at", "2015-11-08 15:08:44.405533"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1209
1026
   (0.1ms) RELEASE SAVEPOINT active_record_2
1210
1027
   (0.1ms) SAVEPOINT active_record_2
1211
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-11-02 20:28:05.667431"], ["updated_at", "2015-11-02 20:28:05.667431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-11-08 15:08:44.407598"], ["updated_at", "2015-11-08 15:08:44.407598"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1212
1029
   (0.1ms) RELEASE SAVEPOINT active_record_2
1213
1030
   (0.1ms) SAVEPOINT active_record_2
1214
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-11-02 20:28:05.669732"], ["updated_at", "2015-11-02 20:28:05.669732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-11-08 15:08:44.409508"], ["updated_at", "2015-11-08 15:08:44.409508"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1215
1032
   (0.1ms) RELEASE SAVEPOINT active_record_2
1216
1033
   (0.1ms) SAVEPOINT active_record_2
1217
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-11-02 20:28:05.672041"], ["updated_at", "2015-11-02 20:28:05.672041"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-11-08 15:08:44.411457"], ["updated_at", "2015-11-08 15:08:44.411457"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1218
1035
   (0.1ms) RELEASE SAVEPOINT active_record_2
1219
1036
   (0.1ms) SAVEPOINT active_record_2
1220
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-11-02 20:28:05.674070"], ["updated_at", "2015-11-02 20:28:05.674070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-11-08 15:08:44.413612"], ["updated_at", "2015-11-08 15:08:44.413612"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1221
1038
   (0.1ms) RELEASE SAVEPOINT active_record_2
1039
+  (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", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-11-08 15:08:44.415931"], ["updated_at", "2015-11-08 15:08:44.415931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1041
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1222
1042
  Processing by PushType::WysiwygMediaController#index as JSON
1223
1043
  Parameters: {"filter"=>"file", "page"=>2}
1224
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1225
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1226
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1044
+ 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
1045
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1046
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
1047
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1048
+  (0.1ms) ROLLBACK
1049
+  (0.1ms) BEGIN
1050
+ -----------------------------------------------
1051
+ PushType::WysiwygFieldTest: test_0001_anonymous
1052
+ -----------------------------------------------
1053
+  (0.1ms) SAVEPOINT active_record_1
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.0ms) SAVEPOINT active_record_1
1056
+  (0.1ms) SAVEPOINT active_record_2
1057
+ PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1058
+ SQL (0.3ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", "2015-11-08 15:08:44.440940"], ["updated_at", "2015-11-08 15:08:44.440940"]]
1059
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f4fc748341a3fe183b4bed424ec3393
1060
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ab21a45a-6138-487c-82c5-4478812d9408"], ["descendant_id", "ab21a45a-6138-487c-82c5-4478812d9408"], ["generations", 0]]
1061
+  (0.5ms) UPDATE "push_type_nodes"
1062
+ SET "sort_order" = t.seq + -1
1063
+ FROM (
1064
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1065
+ FROM "push_type_nodes"
1066
+ WHERE "parent_id" IS NULL
1067
+ ) AS t
1068
+ WHERE "push_type_nodes"."id" = t.id
1069
+ 
1070
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "ab21a45a-6138-487c-82c5-4478812d9408"]]
1071
+ PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ab21a45a-6138-487c-82c5-4478812d9408"]]
1072
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2529971faebe5f46d34fab17a7f77df5
1073
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1074
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1075
+  (0.1ms) ROLLBACK
1076
+  (0.1ms) BEGIN
1077
+ -----------------------------------------------
1078
+ PushType::WysiwygFieldTest: test_0003_anonymous
1079
+ -----------------------------------------------
1080
+  (0.0ms) SAVEPOINT active_record_1
1081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1082
+  (0.0ms) SAVEPOINT active_record_1
1083
+  (0.1ms) SAVEPOINT active_record_2
1084
+ PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1085
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["status", 0], ["created_at", "2015-11-08 15:08:44.462615"], ["updated_at", "2015-11-08 15:08:44.462615"]]
1086
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4c3c97d354825da15a5f422a02d44bcc
1087
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ac495665-0621-4818-86e1-b4e124aed72f"], ["descendant_id", "ac495665-0621-4818-86e1-b4e124aed72f"], ["generations", 0]]
1088
+  (0.3ms) UPDATE "push_type_nodes"
1089
+ SET "sort_order" = t.seq + -1
1090
+ FROM (
1091
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1092
+ FROM "push_type_nodes"
1093
+ WHERE "parent_id" IS NULL
1094
+ ) AS t
1095
+ WHERE "push_type_nodes"."id" = t.id
1096
+ 
1097
+ PushType::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "ac495665-0621-4818-86e1-b4e124aed72f"]]
1098
+ PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ac495665-0621-4818-86e1-b4e124aed72f"]]
1099
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t80e5f02b58e77b1e6ae0b0409cdf35af
1100
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1101
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1102
+  (0.1ms) ROLLBACK
1103
+  (0.1ms) BEGIN
1104
+ -----------------------------------------------
1105
+ PushType::WysiwygFieldTest: test_0005_anonymous
1106
+ -----------------------------------------------
1107
+  (0.1ms) SAVEPOINT active_record_1
1108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
+  (0.0ms) SAVEPOINT active_record_1
1110
+  (0.1ms) SAVEPOINT active_record_2
1111
+ PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1112
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["status", 0], ["created_at", "2015-11-08 15:08:44.470726"], ["updated_at", "2015-11-08 15:08:44.470726"]]
1113
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf36f01d51f12b9c5d7bd6f61feefbb61
1114
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1e2e2739-da81-4208-9a51-5cebc9a932a5"], ["descendant_id", "1e2e2739-da81-4208-9a51-5cebc9a932a5"], ["generations", 0]]
1115
+  (0.3ms) UPDATE "push_type_nodes"
1116
+ SET "sort_order" = t.seq + -1
1117
+ FROM (
1118
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1119
+ FROM "push_type_nodes"
1120
+ WHERE "parent_id" IS NULL
1121
+ ) AS t
1122
+ WHERE "push_type_nodes"."id" = t.id
1123
+ 
1124
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1e2e2739-da81-4208-9a51-5cebc9a932a5"]]
1125
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e2e2739-da81-4208-9a51-5cebc9a932a5"]]
1126
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb72c84459f2736625556ad2eb90433a1
1127
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1128
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1129
+  (0.1ms) ROLLBACK
1130
+  (0.1ms) BEGIN
1131
+ -----------------------------------------------
1132
+ PushType::WysiwygFieldTest: test_0004_anonymous
1133
+ -----------------------------------------------
1134
+  (0.0ms) SAVEPOINT active_record_1
1135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1136
+  (0.0ms) SAVEPOINT active_record_1
1137
+  (0.1ms) SAVEPOINT active_record_2
1138
+ PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1139
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", "2015-11-08 15:08:44.478049"], ["updated_at", "2015-11-08 15:08:44.478049"]]
1140
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t03fb6d0df26a2b3ab54f1997eb56817f
1141
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "23523a56-4078-4e1a-9dea-68390229f9c3"], ["descendant_id", "23523a56-4078-4e1a-9dea-68390229f9c3"], ["generations", 0]]
1142
+  (0.2ms) UPDATE "push_type_nodes"
1143
+ SET "sort_order" = t.seq + -1
1144
+ FROM (
1145
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1146
+ FROM "push_type_nodes"
1147
+ WHERE "parent_id" IS NULL
1148
+ ) AS t
1149
+ WHERE "push_type_nodes"."id" = t.id
1150
+ 
1151
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "23523a56-4078-4e1a-9dea-68390229f9c3"]]
1152
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "23523a56-4078-4e1a-9dea-68390229f9c3"]]
1153
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2e91fa3c1b65d06ea57f894c2fb93849
1154
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1155
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1156
+  (0.1ms) ROLLBACK
1157
+  (0.1ms) BEGIN
1158
+ -----------------------------------------------
1159
+ PushType::WysiwygFieldTest: test_0002_anonymous
1160
+ -----------------------------------------------
1161
+  (0.0ms) SAVEPOINT active_record_1
1162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1163
+  (0.0ms) SAVEPOINT active_record_1
1164
+  (0.1ms) SAVEPOINT active_record_2
1165
+ PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1
1166
+ SQL (0.1ms) INSERT INTO "push_type_nodes" ("field_store", "type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["field_store", "{\"foo\":\"abc\"}"], ["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", "2015-11-08 15:08:44.485298"], ["updated_at", "2015-11-08 15:08:44.485298"]]
1167
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t70c664b8ba07a35a82523f778f4fd2b9
1168
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3bacab20-b28b-4967-9936-164e80e82e2e"], ["descendant_id", "3bacab20-b28b-4967-9936-164e80e82e2e"], ["generations", 0]]
1169
+  (0.2ms) UPDATE "push_type_nodes"
1170
+ SET "sort_order" = t.seq + -1
1171
+ FROM (
1172
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
1173
+ FROM "push_type_nodes"
1174
+ WHERE "parent_id" IS NULL
1175
+ ) AS t
1176
+ WHERE "push_type_nodes"."id" = t.id
1177
+ 
1178
+ PushType::WysiwygFieldTest::TestPage Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3bacab20-b28b-4967-9936-164e80e82e2e"]]
1179
+ PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3bacab20-b28b-4967-9936-164e80e82e2e"]]
1180
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td81ee097164031a283a56d67e51cba34
1181
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1182
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1183
+  (0.1ms) ROLLBACK
1184
+  (0.1ms) BEGIN
1185
+ -----------------------------------------------------------------------------------------
1186
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
1187
+ -----------------------------------------------------------------------------------------
1188
+  (0.1ms) SAVEPOINT active_record_1
1189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1190
+  (0.1ms) SAVEPOINT active_record_1
1191
+ Processing by PushType::WysiwygMediaController#create as JSON
1192
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fb3f964dfe8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151108-11009-nx42q2>>}}
1193
+  (0.1ms) SAVEPOINT active_record_2
1194
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-11-08 15:08:44.495321"], ["updated_at", "2015-11-08 15:08:44.495321"], ["file_ext", "png"], ["mime_type", "image/png"]]
1195
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1196
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1197
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1198
+  (0.1ms) ROLLBACK
1199
+  (0.1ms) BEGIN
1200
+ -----------------------------------------------------------------------------------------
1201
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
1202
+ -----------------------------------------------------------------------------------------
1203
+  (0.1ms) SAVEPOINT active_record_1
1204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1205
+  (0.1ms) SAVEPOINT active_record_1
1206
+ Processing by PushType::WysiwygMediaController#create as JSON
1207
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fb3fb9f1c38 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151108-11009-1w6kfct>>}}
1208
+  (0.1ms) SAVEPOINT active_record_2
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", "194"], ["created_at", "2015-11-08 15:08:44.501112"], ["updated_at", "2015-11-08 15:08:44.501112"], ["file_ext", "png"], ["mime_type", "image/png"]]
1210
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1211
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1212
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1213
+  (0.1ms) ROLLBACK
1214
+  (0.1ms) BEGIN
1215
+ -----------------------------------------------------------------------------------------
1216
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
1217
+ -----------------------------------------------------------------------------------------
1218
+  (0.1ms) SAVEPOINT active_record_1
1219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1220
+  (0.0ms) SAVEPOINT active_record_1
1221
+ Processing by PushType::WysiwygMediaController#create as JSON
1222
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fb3fba39678 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20151108-11009-xj08bg>>}}
1223
+  (0.1ms) SAVEPOINT active_record_2
1224
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-11-08 15:08:44.506885"], ["updated_at", "2015-11-08 15:08:44.506885"], ["file_ext", "png"], ["mime_type", "image/png"]]
1225
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1226
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1227
1227
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1228
1228
   (0.1ms) ROLLBACK
1229
1229
   (0.1ms) BEGIN
1230
1230
  ------------------------------------------------------------------------------------------
1231
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1231
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1232
1232
  ------------------------------------------------------------------------------------------
1233
-  (0.0ms) SAVEPOINT active_record_1
1233
+  (0.1ms) SAVEPOINT active_record_1
1234
1234
   (0.0ms) RELEASE SAVEPOINT active_record_1
1235
1235
   (0.0ms) SAVEPOINT active_record_1
1236
1236
   (0.1ms) SAVEPOINT active_record_2
1237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-11-02 20:28:05.682165"], ["updated_at", "2015-11-02 20:28:05.682165"], ["file_ext", "png"], ["mime_type", "image/png"]]
1237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-11-08 15:08:44.511475"], ["updated_at", "2015-11-08 15:08:44.511475"], ["file_ext", "png"], ["mime_type", "image/png"]]
1238
1238
   (0.1ms) RELEASE SAVEPOINT active_record_2
1239
1239
   (0.1ms) SAVEPOINT active_record_2
1240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-11-02 20:28:05.684381"], ["updated_at", "2015-11-02 20:28:05.684381"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-11-08 15:08:44.513583"], ["updated_at", "2015-11-08 15:08:44.513583"], ["file_ext", "png"], ["mime_type", "image/png"]]
1241
1241
   (0.1ms) RELEASE SAVEPOINT active_record_2
1242
1242
   (0.1ms) SAVEPOINT active_record_2
1243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-11-02 20:28:05.686441"], ["updated_at", "2015-11-02 20:28:05.686441"], ["file_ext", "png"], ["mime_type", "image/png"]]
1243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-11-08 15:08:44.515738"], ["updated_at", "2015-11-08 15:08:44.515738"], ["file_ext", "png"], ["mime_type", "image/png"]]
1244
1244
   (0.1ms) RELEASE SAVEPOINT active_record_2
1245
1245
   (0.1ms) SAVEPOINT active_record_2
1246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-11-02 20:28:05.688539"], ["updated_at", "2015-11-02 20:28:05.688539"], ["file_ext", "png"], ["mime_type", "image/png"]]
1246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-11-08 15:08:44.517768"], ["updated_at", "2015-11-08 15:08:44.517768"], ["file_ext", "png"], ["mime_type", "image/png"]]
1247
1247
   (0.1ms) RELEASE SAVEPOINT active_record_2
1248
1248
   (0.1ms) SAVEPOINT active_record_2
1249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-11-02 20:28:05.690546"], ["updated_at", "2015-11-02 20:28:05.690546"], ["file_ext", "png"], ["mime_type", "image/png"]]
1249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-11-08 15:08:44.519751"], ["updated_at", "2015-11-08 15:08:44.519751"], ["file_ext", "png"], ["mime_type", "image/png"]]
1250
1250
   (0.1ms) RELEASE SAVEPOINT active_record_2
1251
1251
   (0.1ms) SAVEPOINT active_record_2
1252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-11-02 20:28:05.692679"], ["updated_at", "2015-11-02 20:28:05.692679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-11-08 15:08:44.521746"], ["updated_at", "2015-11-08 15:08:44.521746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1253
1253
   (0.1ms) RELEASE SAVEPOINT active_record_2
1254
1254
   (0.1ms) SAVEPOINT active_record_2
1255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-11-02 20:28:05.694780"], ["updated_at", "2015-11-02 20:28:05.694780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-11-08 15:08:44.523809"], ["updated_at", "2015-11-08 15:08:44.523809"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1256
1256
   (0.1ms) RELEASE SAVEPOINT active_record_2
1257
1257
   (0.1ms) SAVEPOINT active_record_2
1258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-11-02 20:28:05.696818"], ["updated_at", "2015-11-02 20:28:05.696818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-11-08 15:08:44.525827"], ["updated_at", "2015-11-08 15:08:44.525827"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1259
1259
   (0.1ms) RELEASE SAVEPOINT active_record_2
1260
1260
   (0.1ms) SAVEPOINT active_record_2
1261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-11-02 20:28:05.698898"], ["updated_at", "2015-11-02 20:28:05.698898"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1261
+ 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", "204"], ["created_at", "2015-11-08 15:08:44.564804"], ["updated_at", "2015-11-08 15:08:44.564804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1262
1262
   (0.1ms) RELEASE SAVEPOINT active_record_2
1263
1263
   (0.1ms) SAVEPOINT active_record_2
1264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-11-02 20:28:05.700909"], ["updated_at", "2015-11-02 20:28:05.700909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-11-08 15:08:44.567180"], ["updated_at", "2015-11-08 15:08:44.567180"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1265
1265
   (0.1ms) RELEASE SAVEPOINT active_record_2
1266
1266
   (0.1ms) SAVEPOINT active_record_2
1267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-11-02 20:28:05.703034"], ["updated_at", "2015-11-02 20:28:05.703034"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-11-08 15:08:44.569450"], ["updated_at", "2015-11-08 15:08:44.569450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1268
1268
   (0.1ms) RELEASE SAVEPOINT active_record_2
1269
1269
   (0.1ms) SAVEPOINT active_record_2
1270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-11-02 20:28:05.705095"], ["updated_at", "2015-11-02 20:28:05.705095"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1270
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-11-08 15:08:44.571523"], ["updated_at", "2015-11-08 15:08:44.571523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1271
1271
   (0.1ms) RELEASE SAVEPOINT active_record_2
1272
1272
   (0.1ms) SAVEPOINT active_record_2
1273
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-11-02 20:28:05.707194"], ["updated_at", "2015-11-02 20:28:05.707194"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1273
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-11-08 15:08:44.574168"], ["updated_at", "2015-11-08 15:08:44.574168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1274
1274
   (0.1ms) RELEASE SAVEPOINT active_record_2
1275
1275
   (0.1ms) SAVEPOINT active_record_2
1276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-11-02 20:28:05.709211"], ["updated_at", "2015-11-02 20:28:05.709211"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-11-08 15:08:44.576535"], ["updated_at", "2015-11-08 15:08:44.576535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1277
1277
   (0.1ms) RELEASE SAVEPOINT active_record_2
1278
1278
   (0.1ms) SAVEPOINT active_record_2
1279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-11-02 20:28:05.711341"], ["updated_at", "2015-11-02 20:28:05.711341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-11-08 15:08:44.578675"], ["updated_at", "2015-11-08 15:08:44.578675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1280
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1281
   (0.1ms) SAVEPOINT active_record_2
1282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-11-02 20:28:05.713348"], ["updated_at", "2015-11-02 20:28:05.713348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-11-08 15:08:44.580739"], ["updated_at", "2015-11-08 15:08:44.580739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1283
1283
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1284
   (0.1ms) SAVEPOINT active_record_2
1285
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-11-02 20:28:05.715669"], ["updated_at", "2015-11-02 20:28:05.715669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-11-08 15:08:44.583007"], ["updated_at", "2015-11-08 15:08:44.583007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1286
1286
   (0.1ms) RELEASE SAVEPOINT active_record_2
1287
1287
   (0.1ms) SAVEPOINT active_record_2
1288
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-11-02 20:28:05.717862"], ["updated_at", "2015-11-02 20:28:05.717862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1288
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-11-08 15:08:44.585434"], ["updated_at", "2015-11-08 15:08:44.585434"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1289
1289
   (0.1ms) RELEASE SAVEPOINT active_record_2
1290
1290
  Processing by PushType::WysiwygMediaController#index as JSON
1291
1291
  Parameters: {"filter"=>"file"}
1292
1292
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1293
1293
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1294
- Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1294
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1295
1295
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
1296
   (0.1ms) ROLLBACK
1297
1297
   (0.1ms) BEGIN
1298
1298
  ------------------------------------------------------------------------------------------
1299
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1299
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1300
1300
  ------------------------------------------------------------------------------------------
1301
-  (0.0ms) SAVEPOINT active_record_1
1302
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+  (0.1ms) SAVEPOINT active_record_1
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
1303
   (0.0ms) SAVEPOINT active_record_1
1304
1304
   (0.1ms) SAVEPOINT active_record_2
1305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-11-02 20:28:05.732693"], ["updated_at", "2015-11-02 20:28:05.732693"], ["file_ext", "png"], ["mime_type", "image/png"]]
1305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-11-08 15:08:44.602186"], ["updated_at", "2015-11-08 15:08:44.602186"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
1306
   (0.1ms) RELEASE SAVEPOINT active_record_2
1307
1307
   (0.1ms) SAVEPOINT active_record_2
1308
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-11-02 20:28:05.734978"], ["updated_at", "2015-11-02 20:28:05.734978"], ["file_ext", "png"], ["mime_type", "image/png"]]
1308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-11-08 15:08:44.604369"], ["updated_at", "2015-11-08 15:08:44.604369"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
1309
   (0.1ms) RELEASE SAVEPOINT active_record_2
1310
1310
   (0.1ms) SAVEPOINT active_record_2
1311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-11-02 20:28:05.751410"], ["updated_at", "2015-11-02 20:28:05.751410"], ["file_ext", "png"], ["mime_type", "image/png"]]
1311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-11-08 15:08:44.606342"], ["updated_at", "2015-11-08 15:08:44.606342"], ["file_ext", "png"], ["mime_type", "image/png"]]
1312
1312
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
1313
   (0.1ms) SAVEPOINT active_record_2
1314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-11-02 20:28:05.754005"], ["updated_at", "2015-11-02 20:28:05.754005"], ["file_ext", "png"], ["mime_type", "image/png"]]
1314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-11-08 15:08:44.608391"], ["updated_at", "2015-11-08 15:08:44.608391"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
1315
   (0.1ms) RELEASE SAVEPOINT active_record_2
1316
1316
   (0.1ms) SAVEPOINT active_record_2
1317
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-11-02 20:28:05.756215"], ["updated_at", "2015-11-02 20:28:05.756215"], ["file_ext", "png"], ["mime_type", "image/png"]]
1317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-11-08 15:08:44.610466"], ["updated_at", "2015-11-08 15:08:44.610466"], ["file_ext", "png"], ["mime_type", "image/png"]]
1318
1318
   (0.1ms) RELEASE SAVEPOINT active_record_2
1319
1319
   (0.1ms) SAVEPOINT active_record_2
1320
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-11-02 20:28:05.758518"], ["updated_at", "2015-11-02 20:28:05.758518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-11-08 15:08:44.612776"], ["updated_at", "2015-11-08 15:08:44.612776"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1321
1321
   (0.1ms) RELEASE SAVEPOINT active_record_2
1322
1322
   (0.1ms) SAVEPOINT active_record_2
1323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-11-02 20:28:05.760811"], ["updated_at", "2015-11-02 20:28:05.760811"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-11-08 15:08:44.615085"], ["updated_at", "2015-11-08 15:08:44.615085"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1324
1324
   (0.1ms) RELEASE SAVEPOINT active_record_2
1325
1325
   (0.1ms) SAVEPOINT active_record_2
1326
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-11-02 20:28:05.763036"], ["updated_at", "2015-11-02 20:28:05.763036"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1326
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-11-08 15:08:44.617211"], ["updated_at", "2015-11-08 15:08:44.617211"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1327
1327
   (0.1ms) RELEASE SAVEPOINT active_record_2
1328
1328
   (0.1ms) SAVEPOINT active_record_2
1329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-11-02 20:28:05.765324"], ["updated_at", "2015-11-02 20:28:05.765324"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1329
+ 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-11-08 15:08:44.619305"], ["updated_at", "2015-11-08 15:08:44.619305"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1330
1330
   (0.1ms) RELEASE SAVEPOINT active_record_2
1331
1331
   (0.1ms) SAVEPOINT active_record_2
1332
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-11-02 20:28:05.767679"], ["updated_at", "2015-11-02 20:28:05.767679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1332
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-11-08 15:08:44.621557"], ["updated_at", "2015-11-08 15:08:44.621557"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1333
1333
   (0.1ms) RELEASE SAVEPOINT active_record_2
1334
1334
   (0.1ms) SAVEPOINT active_record_2
1335
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-11-02 20:28:05.770310"], ["updated_at", "2015-11-02 20:28:05.770310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1335
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-11-08 15:08:44.623597"], ["updated_at", "2015-11-08 15:08:44.623597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1336
1336
   (0.1ms) RELEASE SAVEPOINT active_record_2
1337
1337
   (0.1ms) SAVEPOINT active_record_2
1338
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-11-02 20:28:05.772898"], ["updated_at", "2015-11-02 20:28:05.772898"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1338
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-11-08 15:08:44.625766"], ["updated_at", "2015-11-08 15:08:44.625766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1339
1339
   (0.1ms) RELEASE SAVEPOINT active_record_2
1340
1340
   (0.1ms) SAVEPOINT active_record_2
1341
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-11-02 20:28:05.775502"], ["updated_at", "2015-11-02 20:28:05.775502"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1341
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-11-08 15:08:44.628263"], ["updated_at", "2015-11-08 15:08:44.628263"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1342
1342
   (0.1ms) RELEASE SAVEPOINT active_record_2
1343
1343
   (0.1ms) SAVEPOINT active_record_2
1344
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-11-02 20:28:05.778096"], ["updated_at", "2015-11-02 20:28:05.778096"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1344
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-11-08 15:08:44.630469"], ["updated_at", "2015-11-08 15:08:44.630469"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1345
1345
   (0.1ms) RELEASE SAVEPOINT active_record_2
1346
1346
   (0.1ms) SAVEPOINT active_record_2
1347
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-11-02 20:28:05.780510"], ["updated_at", "2015-11-02 20:28:05.780510"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1347
+ 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-11-08 15:08:44.632889"], ["updated_at", "2015-11-08 15:08:44.632889"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1348
1348
   (0.1ms) RELEASE SAVEPOINT active_record_2
1349
1349
   (0.1ms) SAVEPOINT active_record_2
1350
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-11-02 20:28:05.783097"], ["updated_at", "2015-11-02 20:28:05.783097"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1351
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1350
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-11-08 15:08:44.635665"], ["updated_at", "2015-11-08 15:08:44.635665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1351
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1352
1352
   (0.1ms) SAVEPOINT active_record_2
1353
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-11-02 20:28:05.785550"], ["updated_at", "2015-11-02 20:28:05.785550"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1353
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-11-08 15:08:44.638178"], ["updated_at", "2015-11-08 15:08:44.638178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1354
1354
   (0.1ms) RELEASE SAVEPOINT active_record_2
1355
1355
   (0.1ms) SAVEPOINT active_record_2
1356
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-11-02 20:28:05.787805"], ["updated_at", "2015-11-02 20:28:05.787805"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1356
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-11-08 15:08:44.640715"], ["updated_at", "2015-11-08 15:08:44.640715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1357
1357
   (0.1ms) RELEASE SAVEPOINT active_record_2
1358
1358
  Processing by PushType::WysiwygMediaController#index as JSON
1359
1359
  Parameters: {"filter"=>"file"}
1360
1360
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1361
1361
   (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1362
- Completed 200 OK in 15ms (Views: 1.2ms | ActiveRecord: 0.6ms)
1362
+ Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1363
1363
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1364
1364
   (0.1ms) ROLLBACK
1365
1365
   (0.1ms) BEGIN
1366
1366
  ------------------------------------------------------------------------------------------
1367
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1367
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1368
1368
  ------------------------------------------------------------------------------------------
1369
-  (0.1ms) SAVEPOINT active_record_1
1369
+  (0.0ms) SAVEPOINT active_record_1
1370
1370
   (0.0ms) RELEASE SAVEPOINT active_record_1
1371
1371
   (0.0ms) SAVEPOINT active_record_1
1372
1372
   (0.1ms) SAVEPOINT active_record_2
1373
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-11-02 20:28:05.807816"], ["updated_at", "2015-11-02 20:28:05.807816"], ["file_ext", "png"], ["mime_type", "image/png"]]
1373
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-11-08 15:08:44.657165"], ["updated_at", "2015-11-08 15:08:44.657165"], ["file_ext", "png"], ["mime_type", "image/png"]]
1374
1374
   (0.1ms) RELEASE SAVEPOINT active_record_2
1375
1375
   (0.1ms) SAVEPOINT active_record_2
1376
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-11-02 20:28:05.810458"], ["updated_at", "2015-11-02 20:28:05.810458"], ["file_ext", "png"], ["mime_type", "image/png"]]
1376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-11-08 15:08:44.659452"], ["updated_at", "2015-11-08 15:08:44.659452"], ["file_ext", "png"], ["mime_type", "image/png"]]
1377
1377
   (0.1ms) RELEASE SAVEPOINT active_record_2
1378
1378
   (0.1ms) SAVEPOINT active_record_2
1379
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-11-02 20:28:05.812905"], ["updated_at", "2015-11-02 20:28:05.812905"], ["file_ext", "png"], ["mime_type", "image/png"]]
1379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-11-08 15:08:44.661461"], ["updated_at", "2015-11-08 15:08:44.661461"], ["file_ext", "png"], ["mime_type", "image/png"]]
1380
1380
   (0.1ms) RELEASE SAVEPOINT active_record_2
1381
1381
   (0.1ms) SAVEPOINT active_record_2
1382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-11-02 20:28:05.815202"], ["updated_at", "2015-11-02 20:28:05.815202"], ["file_ext", "png"], ["mime_type", "image/png"]]
1382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-11-08 15:08:44.663498"], ["updated_at", "2015-11-08 15:08:44.663498"], ["file_ext", "png"], ["mime_type", "image/png"]]
1383
1383
   (0.1ms) RELEASE SAVEPOINT active_record_2
1384
1384
   (0.1ms) SAVEPOINT active_record_2
1385
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-11-02 20:28:05.817653"], ["updated_at", "2015-11-02 20:28:05.817653"], ["file_ext", "png"], ["mime_type", "image/png"]]
1385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-11-08 15:08:44.665520"], ["updated_at", "2015-11-08 15:08:44.665520"], ["file_ext", "png"], ["mime_type", "image/png"]]
1386
1386
   (0.1ms) RELEASE SAVEPOINT active_record_2
1387
1387
   (0.1ms) SAVEPOINT active_record_2
1388
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-11-02 20:28:05.820142"], ["updated_at", "2015-11-02 20:28:05.820142"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-11-08 15:08:44.667797"], ["updated_at", "2015-11-08 15:08:44.667797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1389
1389
   (0.1ms) RELEASE SAVEPOINT active_record_2
1390
1390
   (0.1ms) SAVEPOINT active_record_2
1391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-11-02 20:28:05.822867"], ["updated_at", "2015-11-02 20:28:05.822867"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1391
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-11-08 15:08:44.669947"], ["updated_at", "2015-11-08 15:08:44.669947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1392
1392
   (0.1ms) RELEASE SAVEPOINT active_record_2
1393
1393
   (0.1ms) SAVEPOINT active_record_2
1394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-11-02 20:28:05.825377"], ["updated_at", "2015-11-02 20:28:05.825377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1394
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-11-08 15:08:44.672116"], ["updated_at", "2015-11-08 15:08:44.672116"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1395
1395
   (0.1ms) RELEASE SAVEPOINT active_record_2
1396
1396
   (0.1ms) SAVEPOINT active_record_2
1397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-11-02 20:28:05.827929"], ["updated_at", "2015-11-02 20:28:05.827929"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1397
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-11-08 15:08:44.674179"], ["updated_at", "2015-11-08 15:08:44.674179"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1398
1398
   (0.1ms) RELEASE SAVEPOINT active_record_2
1399
1399
   (0.1ms) SAVEPOINT active_record_2
1400
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-11-02 20:28:05.830608"], ["updated_at", "2015-11-02 20:28:05.830608"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1400
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-11-08 15:08:44.676243"], ["updated_at", "2015-11-08 15:08:44.676243"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1401
1401
   (0.1ms) RELEASE SAVEPOINT active_record_2
1402
1402
   (0.1ms) SAVEPOINT active_record_2
1403
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-11-02 20:28:05.833088"], ["updated_at", "2015-11-02 20:28:05.833088"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1403
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-11-08 15:08:44.678420"], ["updated_at", "2015-11-08 15:08:44.678420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1404
1404
   (0.1ms) RELEASE SAVEPOINT active_record_2
1405
1405
   (0.1ms) SAVEPOINT active_record_2
1406
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-11-02 20:28:05.835301"], ["updated_at", "2015-11-02 20:28:05.835301"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1406
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-11-08 15:08:44.680539"], ["updated_at", "2015-11-08 15:08:44.680539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1407
1407
   (0.1ms) RELEASE SAVEPOINT active_record_2
1408
1408
   (0.1ms) SAVEPOINT active_record_2
1409
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-11-02 20:28:05.837369"], ["updated_at", "2015-11-02 20:28:05.837369"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1409
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-11-08 15:08:44.682593"], ["updated_at", "2015-11-08 15:08:44.682593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1410
1410
   (0.1ms) RELEASE SAVEPOINT active_record_2
1411
1411
   (0.1ms) SAVEPOINT active_record_2
1412
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-11-02 20:28:05.839691"], ["updated_at", "2015-11-02 20:28:05.839691"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1412
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-11-08 15:08:44.684910"], ["updated_at", "2015-11-08 15:08:44.684910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1413
1413
   (0.1ms) RELEASE SAVEPOINT active_record_2
1414
1414
   (0.1ms) SAVEPOINT active_record_2
1415
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-11-02 20:28:05.842058"], ["updated_at", "2015-11-02 20:28:05.842058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1415
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-11-08 15:08:44.687129"], ["updated_at", "2015-11-08 15:08:44.687129"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1416
1416
   (0.1ms) RELEASE SAVEPOINT active_record_2
1417
1417
   (0.1ms) SAVEPOINT active_record_2
1418
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-11-02 20:28:05.844291"], ["updated_at", "2015-11-02 20:28:05.844291"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1418
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-11-08 15:08:44.689393"], ["updated_at", "2015-11-08 15:08:44.689393"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1419
1419
   (0.1ms) RELEASE SAVEPOINT active_record_2
1420
1420
   (0.1ms) SAVEPOINT active_record_2
1421
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-11-02 20:28:05.846724"], ["updated_at", "2015-11-02 20:28:05.846724"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1421
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-11-08 15:08:44.691765"], ["updated_at", "2015-11-08 15:08:44.691765"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1422
1422
   (0.1ms) RELEASE SAVEPOINT active_record_2
1423
1423
   (0.1ms) SAVEPOINT active_record_2
1424
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-11-02 20:28:05.848797"], ["updated_at", "2015-11-02 20:28:05.848797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1424
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-11-08 15:08:44.693888"], ["updated_at", "2015-11-08 15:08:44.693888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1425
1425
   (0.1ms) RELEASE SAVEPOINT active_record_2
1426
1426
  Processing by PushType::WysiwygMediaController#index as JSON
1427
1427
  Parameters: {"filter"=>"file"}
1428
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1429
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1430
- Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.6ms)
1428
+ 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
1429
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1430
+ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.6ms)
1431
1431
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1432
1432
   (0.1ms) ROLLBACK
1433
1433
   (0.1ms) BEGIN
1434
1434
  ------------------------------------------------------------------------------------------
1435
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1435
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1436
1436
  ------------------------------------------------------------------------------------------
1437
1437
   (0.0ms) SAVEPOINT active_record_1
1438
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1439
1439
   (0.0ms) SAVEPOINT active_record_1
1440
1440
   (0.1ms) SAVEPOINT active_record_2
1441
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-11-02 20:28:05.864139"], ["updated_at", "2015-11-02 20:28:05.864139"], ["file_ext", "png"], ["mime_type", "image/png"]]
1441
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-11-08 15:08:44.710667"], ["updated_at", "2015-11-08 15:08:44.710667"], ["file_ext", "png"], ["mime_type", "image/png"]]
1442
1442
   (0.1ms) RELEASE SAVEPOINT active_record_2
1443
1443
   (0.1ms) SAVEPOINT active_record_2
1444
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-11-02 20:28:05.866365"], ["updated_at", "2015-11-02 20:28:05.866365"], ["file_ext", "png"], ["mime_type", "image/png"]]
1444
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-11-08 15:08:44.713159"], ["updated_at", "2015-11-08 15:08:44.713159"], ["file_ext", "png"], ["mime_type", "image/png"]]
1445
1445
   (0.1ms) RELEASE SAVEPOINT active_record_2
1446
1446
   (0.1ms) SAVEPOINT active_record_2
1447
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-11-02 20:28:05.868487"], ["updated_at", "2015-11-02 20:28:05.868487"], ["file_ext", "png"], ["mime_type", "image/png"]]
1447
+ 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", "252"], ["created_at", "2015-11-08 15:08:44.715308"], ["updated_at", "2015-11-08 15:08:44.715308"], ["file_ext", "png"], ["mime_type", "image/png"]]
1448
1448
   (0.1ms) RELEASE SAVEPOINT active_record_2
1449
1449
   (0.1ms) SAVEPOINT active_record_2
1450
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-11-02 20:28:05.870505"], ["updated_at", "2015-11-02 20:28:05.870505"], ["file_ext", "png"], ["mime_type", "image/png"]]
1450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-11-08 15:08:44.717966"], ["updated_at", "2015-11-08 15:08:44.717966"], ["file_ext", "png"], ["mime_type", "image/png"]]
1451
1451
   (0.1ms) RELEASE SAVEPOINT active_record_2
1452
1452
   (0.1ms) SAVEPOINT active_record_2
1453
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-11-02 20:28:05.872702"], ["updated_at", "2015-11-02 20:28:05.872702"], ["file_ext", "png"], ["mime_type", "image/png"]]
1453
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-11-08 15:08:44.720190"], ["updated_at", "2015-11-08 15:08:44.720190"], ["file_ext", "png"], ["mime_type", "image/png"]]
1454
1454
   (0.1ms) RELEASE SAVEPOINT active_record_2
1455
1455
   (0.1ms) SAVEPOINT active_record_2
1456
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-11-02 20:28:05.875076"], ["updated_at", "2015-11-02 20:28:05.875076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1456
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-11-08 15:08:44.722518"], ["updated_at", "2015-11-08 15:08:44.722518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1457
1457
   (0.1ms) RELEASE SAVEPOINT active_record_2
1458
1458
   (0.1ms) SAVEPOINT active_record_2
1459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-11-02 20:28:05.877237"], ["updated_at", "2015-11-02 20:28:05.877237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-11-08 15:08:44.724734"], ["updated_at", "2015-11-08 15:08:44.724734"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1460
1460
   (0.1ms) RELEASE SAVEPOINT active_record_2
1461
1461
   (0.1ms) SAVEPOINT active_record_2
1462
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-11-02 20:28:05.879249"], ["updated_at", "2015-11-02 20:28:05.879249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1462
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-11-08 15:08:44.726926"], ["updated_at", "2015-11-08 15:08:44.726926"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1463
1463
   (0.1ms) RELEASE SAVEPOINT active_record_2
1464
1464
   (0.1ms) SAVEPOINT active_record_2
1465
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-11-02 20:28:05.881467"], ["updated_at", "2015-11-02 20:28:05.881467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1465
+ 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", "258"], ["created_at", "2015-11-08 15:08:44.729213"], ["updated_at", "2015-11-08 15:08:44.729213"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1466
1466
   (0.1ms) RELEASE SAVEPOINT active_record_2
1467
1467
   (0.1ms) SAVEPOINT active_record_2
1468
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-11-02 20:28:05.883540"], ["updated_at", "2015-11-02 20:28:05.883540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1468
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-11-08 15:08:44.731893"], ["updated_at", "2015-11-08 15:08:44.731893"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1469
1469
   (0.1ms) RELEASE SAVEPOINT active_record_2
1470
1470
   (0.1ms) SAVEPOINT active_record_2
1471
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-11-02 20:28:05.885753"], ["updated_at", "2015-11-02 20:28:05.885753"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-11-08 15:08:44.734241"], ["updated_at", "2015-11-08 15:08:44.734241"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1472
1472
   (0.1ms) RELEASE SAVEPOINT active_record_2
1473
1473
   (0.1ms) SAVEPOINT active_record_2
1474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-11-02 20:28:05.887915"], ["updated_at", "2015-11-02 20:28:05.887915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-11-08 15:08:44.736405"], ["updated_at", "2015-11-08 15:08:44.736405"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1475
1475
   (0.1ms) RELEASE SAVEPOINT active_record_2
1476
1476
   (0.1ms) SAVEPOINT active_record_2
1477
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-11-02 20:28:05.889964"], ["updated_at", "2015-11-02 20:28:05.889964"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1477
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-11-08 15:08:44.738671"], ["updated_at", "2015-11-08 15:08:44.738671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1478
1478
   (0.1ms) RELEASE SAVEPOINT active_record_2
1479
1479
   (0.1ms) SAVEPOINT active_record_2
1480
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-11-02 20:28:05.892171"], ["updated_at", "2015-11-02 20:28:05.892171"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1480
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-11-08 15:08:44.741028"], ["updated_at", "2015-11-08 15:08:44.741028"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1481
1481
   (0.1ms) RELEASE SAVEPOINT active_record_2
1482
1482
   (0.1ms) SAVEPOINT active_record_2
1483
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-11-02 20:28:05.894744"], ["updated_at", "2015-11-02 20:28:05.894744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1484
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1483
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-11-08 15:08:44.743597"], ["updated_at", "2015-11-08 15:08:44.743597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1484
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1485
1485
   (0.1ms) SAVEPOINT active_record_2
1486
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-11-02 20:28:05.897185"], ["updated_at", "2015-11-02 20:28:05.897185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-11-08 15:08:44.746033"], ["updated_at", "2015-11-08 15:08:44.746033"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1487
1487
   (0.1ms) RELEASE SAVEPOINT active_record_2
1488
1488
   (0.1ms) SAVEPOINT active_record_2
1489
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-11-02 20:28:05.899687"], ["updated_at", "2015-11-02 20:28:05.899687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-11-08 15:08:44.748232"], ["updated_at", "2015-11-08 15:08:44.748232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1490
1490
   (0.1ms) RELEASE SAVEPOINT active_record_2
1491
1491
   (0.1ms) SAVEPOINT active_record_2
1492
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "267"], ["created_at", "2015-11-02 20:28:05.901918"], ["updated_at", "2015-11-02 20:28:05.901918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1492
+ 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", "267"], ["created_at", "2015-11-08 15:08:44.750659"], ["updated_at", "2015-11-08 15:08:44.750659"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1493
1493
   (0.1ms) RELEASE SAVEPOINT active_record_2
1494
1494
  Processing by PushType::WysiwygMediaController#index as JSON
1495
1495
  Parameters: {"filter"=>"file"}
1496
1496
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1497
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1498
- Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1497
+  (16.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1498
+ Completed 200 OK in 28ms (Views: 1.0ms | ActiveRecord: 16.5ms)
1499
1499
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1500
1500
   (0.1ms) ROLLBACK