push_type_wysiwyg 0.6.0 → 0.7.0.beta.1

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: 127ec6725dae511d61dfc99c7e4b270c50d3a20e
4
- data.tar.gz: 3aa81b154f96e798e21398867cb9a61aa924f1d7
3
+ metadata.gz: 4e8de6fd51574e23834ab43cdf5c38b391bcff34
4
+ data.tar.gz: 7c14545f883d4b9cce3df10ad11a13d19ae0979e
5
5
  SHA512:
6
- metadata.gz: 739afdd8da57e2f45c1a82d43d909134af6e1d761b130e5976ce900ad633a13cab96fca7103360cca41afcdb34da4a0b976cb4c68c66c39c2bc15aea0403b7e0
7
- data.tar.gz: 1d05e52557277b0b8f4f6a7d20989a7dd2f6b687762abeeacca02a8ab3ac65f5b5686eb29086123693bc01ac9fcc1b6d021c5e3d984805948d27f2c922019416
6
+ metadata.gz: d6530fcbcd32dddcea07c914224015e6acbcc131457da1a301284817f0bedbe49fcb1ee1d5f0b7e2338c5d83150c52b951f855d732194408337c16fb6e173efd
7
+ data.tar.gz: ecf6a23996aec6b473a93415b61a6382e69128df6a1d4f98f8bb666b8b416dee5f7c076dae0de0c58f1ed0da30688fcf49ce7a493ecb8598190d4e2c2ce376be
@@ -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 = '486f3e8533a04d2125fe493c7445efa55779f8b8022dbde8c982c7a4e436ee8b'
53
+ # config.dragonfly_secret = '8d6bede1ec580afe518f63ec8880a5f792b6d88ad77408bc2c85c639f3725f6e'
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: 6c746b3a9af4e6a8d174f8f0e740bce8c64ab37472ed63eaeba4cc35849d40cdaa1e0800a1993e9fdbcdfff0c0f4cb0c41a348e54c19407643d01f0a5a6f7ae5
14
+ secret_key_base: 73c0ae56757d50841ac8d064fa4a89c3c467d025a5f47e584e3921d0d290994a8f7efd5c31414745d8db17865808a4d41a56dfb0fa783f92d18037b4dee8f565
15
15
 
16
16
  test:
17
- secret_key_base: f7c3a5ae36d2378e7e5fcf0e0fdea0516854eec9cd6509dbea565baa6b33d5adc2132c182bfce3fe6d2e777f009573911e8c5bfe41bcf666dc3eaca09bdb3322
17
+ secret_key_base: b21c18f8ffb5e8f6a198bc202d13de3cf68ee211ec3efea401e73609056458b6c5a19b5a11fdf0b6f60673b6af0a70647132cc4f8882f87ff4dfe87568ab4fe3
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: 20151108150844) do
14
+ ActiveRecord::Schema.define(version: 20160108132438) 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
-  (13.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20151108150838)
4
+ Migrating to CreatePushTypeUsers (20160108132432)
5
5
   (0.1ms) BEGIN
6
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"]]
7
+  (2.6ms) 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", "20160108132432"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20151108150839)
10
+ Migrating to CreatePushTypeNodes (20160108132433)
11
11
   (0.1ms) BEGIN
12
-  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150839"]]
14
-  (0.5ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20151108150840)
12
+  (1.9ms) 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", "20160108132433"]]
14
+  (0.4ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20160108132434)
16
16
   (0.1ms) BEGIN
17
-  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
17
+  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (0.7ms) 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", "20151108150840"]]
21
-  (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20151108150841)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160108132434"]]
21
+  (0.5ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20160108132435)
23
23
   (0.1ms) BEGIN
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)
24
+  (1.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160108132435"]]
26
+  (0.5ms) COMMIT
27
+ Migrating to CreatePushTypeTaxonomies (20160108132436)
28
28
   (0.1ms) BEGIN
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)
29
+  (2.1ms) 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", "20151108150842"]]
32
-  (0.3ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20151108150843)
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160108132436"]]
32
+  (0.4ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20160108132437)
34
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"]]
35
+  (0.5ms) 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.7ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160108132437"]]
39
39
   (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20151108150844)
40
+ Migrating to AddFieldStoreDefaultValues (20160108132438)
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.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
47
+  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
-  (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151108150844"]]
51
-  (0.4ms) COMMIT
49
+  (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160108132438"]]
51
+  (0.5ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
53
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
54
54
  FROM pg_constraint c
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.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
65
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
66
66
  FROM pg_constraint c
67
67
  JOIN pg_class t1 ON c.conrelid = t1.oid
68
68
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -74,7 +74,7 @@ WHERE c.contype = 'f'
74
74
  AND t3.nspname = ANY (current_schemas(false))
75
75
  ORDER BY c.conname
76
76
  
77
-  (1.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
77
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
78
78
  FROM pg_constraint c
79
79
  JOIN pg_class t1 ON c.conrelid = t1.oid
80
80
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -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.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
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
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
@@ -110,7 +110,7 @@ WHERE c.contype = 'f'
110
110
  AND t3.nspname = ANY (current_schemas(false))
111
111
  ORDER BY c.conname
112
112
 
113
-  (1.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
113
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
114
114
  FROM pg_constraint c
115
115
  JOIN pg_class t1 ON c.conrelid = t1.oid
116
116
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -124,7 +124,7 @@ ORDER BY c.conname
124
124
  
125
125
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
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
127
+  (1.0ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE
130
130
  tablename !~ '_prt_' AND
@@ -132,332 +132,90 @@ 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
-  (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;
135
+  (9.2ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
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_0001_anonymous
139
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
140
140
  --------------------------------------------------------------------------
141
141
   (0.1ms) SAVEPOINT active_record_1
142
142
   (0.1ms) RELEASE SAVEPOINT active_record_1
143
-  (0.1ms) SAVEPOINT active_record_1
143
+  (0.0ms) SAVEPOINT active_record_1
144
144
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-11-08 15:08:43.670435"], ["updated_at", "2015-11-08 15:08:43.670435"], ["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", "2016-01-08 13:24:37.893112"], ["updated_at", "2016-01-08 13:24:37.893112"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
147
+  (0.2ms) 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_0004_anonymous
151
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
152
152
  --------------------------------------------------------------------------
153
-  (0.0ms) SAVEPOINT active_record_1
154
-  (0.0ms) RELEASE SAVEPOINT active_record_1
155
153
   (0.1ms) SAVEPOINT active_record_1
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.0ms) 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-08 15:08:43.678838"], ["updated_at", "2015-11-08 15:08:43.678838"], ["file_ext", "png"], ["mime_type", "image/png"]]
157
+ 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", "2"], ["created_at", "2016-01-08 13:24:37.903156"], ["updated_at", "2016-01-08 13:24:37.903156"], ["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_0007_anonymous
163
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
164
164
  --------------------------------------------------------------------------
165
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-08 15:08:43.682640"], ["updated_at", "2015-11-08 15:08:43.682640"], ["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", "2016-01-08 13:24:37.907415"], ["updated_at", "2016-01-08 13:24:37.907415"], ["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_0005_anonymous
175
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
176
176
  --------------------------------------------------------------------------
177
177
   (0.0ms) SAVEPOINT active_record_1
178
-  (0.1ms) RELEASE SAVEPOINT active_record_1
179
-  (0.1ms) SAVEPOINT active_record_1
178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
179
+  (0.0ms) SAVEPOINT active_record_1
180
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"]]
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", "2016-01-08 13:24:37.911042"], ["updated_at", "2016-01-08 13:24:37.911042"], ["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
-  (0.0ms) BEGIN
185
+  (0.1ms) BEGIN
186
186
  --------------------------------------------------------------------------
187
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
187
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_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-08 15:08:43.690200"], ["updated_at", "2015-11-08 15:08:43.690200"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2016-01-08 13:24:37.914874"], ["updated_at", "2016-01-08 13:24:37.914874"], ["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_0002_anonymous
199
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
200
200
  --------------------------------------------------------------------------
201
201
   (0.1ms) SAVEPOINT active_record_1
202
202
   (0.0ms) RELEASE SAVEPOINT active_record_1
203
-  (0.1ms) SAVEPOINT active_record_1
203
+  (0.0ms) SAVEPOINT active_record_1
204
204
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "2016-01-08 13:24:37.918735"], ["updated_at", "2016-01-08 13:24:37.918735"], ["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
-  (0.1ms) BEGIN
209
+  (0.0ms) BEGIN
210
210
  --------------------------------------------------------------------------
211
- PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
211
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
212
212
  --------------------------------------------------------------------------
213
-  (0.0ms) SAVEPOINT active_record_1
214
-  (0.1ms) RELEASE SAVEPOINT active_record_1
215
-  (0.0ms) SAVEPOINT active_record_1
216
-  (0.1ms) SAVEPOINT active_record_2
217
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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
-  (0.1ms) RELEASE SAVEPOINT active_record_2
219
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
-  (0.1ms) ROLLBACK
221
-  (0.1ms) BEGIN
222
- ------------------------------------------------------------------------------------
223
- PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
224
- ------------------------------------------------------------------------------------
225
-  (0.1ms) SAVEPOINT active_record_1
226
-  (0.1ms) RELEASE SAVEPOINT active_record_1
227
-  (0.1ms) SAVEPOINT active_record_1
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>>}}
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", "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"]]
233
-  (0.1ms) RELEASE SAVEPOINT active_record_2
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
239
- ---------------------------------------------------------------------------
240
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
241
- ---------------------------------------------------------------------------
242
-  (0.0ms) SAVEPOINT active_record_1
243
-  (0.0ms) RELEASE SAVEPOINT active_record_1
244
-  (0.0ms) SAVEPOINT active_record_1
245
-  (0.1ms) SAVEPOINT active_record_2
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"]]
247
-  (0.1ms) RELEASE SAVEPOINT active_record_2
248
-  (0.1ms) SAVEPOINT active_record_2
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"]]
250
-  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "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"]]
253
-  (0.1ms) RELEASE SAVEPOINT active_record_2
254
-  (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", "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"]]
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
268
-  (0.1ms) SAVEPOINT active_record_2
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"]]
270
-  (0.1ms) RELEASE SAVEPOINT active_record_2
271
-  (0.1ms) SAVEPOINT active_record_2
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"]]
273
-  (0.1ms) RELEASE SAVEPOINT active_record_2
274
-  (0.1ms) SAVEPOINT active_record_2
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"]]
276
-  (0.1ms) RELEASE SAVEPOINT active_record_2
277
-  (0.1ms) SAVEPOINT active_record_2
278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
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
291
-  (0.1ms) SAVEPOINT active_record_2
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"]]
293
-  (0.1ms) RELEASE SAVEPOINT active_record_2
294
-  (0.1ms) SAVEPOINT active_record_2
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"]]
296
-  (0.1ms) RELEASE SAVEPOINT active_record_2
297
-  (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", "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"]]
299
-  (0.1ms) RELEASE SAVEPOINT active_record_2
300
-  (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", "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"]]
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
314
-  (0.1ms) SAVEPOINT active_record_2
315
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
316
-  (0.1ms) RELEASE SAVEPOINT active_record_2
317
-  (0.1ms) SAVEPOINT active_record_2
318
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
319
-  (0.1ms) RELEASE SAVEPOINT active_record_2
320
-  (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", "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"]]
322
-  (0.1ms) RELEASE SAVEPOINT active_record_2
323
-  (0.1ms) SAVEPOINT active_record_2
324
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
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
337
-  (0.1ms) SAVEPOINT active_record_2
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"]]
339
-  (0.1ms) RELEASE SAVEPOINT active_record_2
340
-  (0.1ms) SAVEPOINT active_record_2
341
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
342
-  (0.1ms) RELEASE SAVEPOINT active_record_2
343
-  (0.1ms) SAVEPOINT active_record_2
344
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
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
350
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
351
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
352
-  (0.1ms) ROLLBACK
353
-  (0.1ms) BEGIN
354
- ---------------------------------------------------------------------------
355
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
356
- ---------------------------------------------------------------------------
357
-  (0.1ms) SAVEPOINT active_record_1
358
-  (0.1ms) RELEASE SAVEPOINT active_record_1
359
-  (0.1ms) SAVEPOINT active_record_1
360
-  (0.1ms) SAVEPOINT active_record_2
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"]]
362
-  (0.1ms) RELEASE SAVEPOINT active_record_2
363
-  (0.1ms) SAVEPOINT active_record_2
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"]]
365
-  (0.1ms) RELEASE SAVEPOINT active_record_2
366
-  (0.1ms) SAVEPOINT active_record_2
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"]]
368
-  (0.1ms) RELEASE SAVEPOINT active_record_2
369
-  (0.1ms) SAVEPOINT active_record_2
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"]]
371
-  (0.1ms) RELEASE SAVEPOINT active_record_2
372
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
373
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
374
-  (0.1ms) ROLLBACK
375
-  (0.1ms) BEGIN
376
- ---------------------------------------------------------------------------
377
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
378
- ---------------------------------------------------------------------------
379
-  (0.0ms) SAVEPOINT active_record_1
380
-  (0.1ms) RELEASE SAVEPOINT active_record_1
381
-  (0.0ms) SAVEPOINT active_record_1
382
-  (0.1ms) SAVEPOINT active_record_2
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"]]
384
-  (0.1ms) RELEASE SAVEPOINT active_record_2
385
-  (0.1ms) SAVEPOINT active_record_2
386
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
387
-  (0.1ms) RELEASE SAVEPOINT active_record_2
388
-  (0.1ms) SAVEPOINT active_record_2
389
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
390
-  (0.1ms) RELEASE SAVEPOINT active_record_2
391
-  (0.1ms) SAVEPOINT active_record_2
392
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
393
-  (0.1ms) RELEASE SAVEPOINT active_record_2
394
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
395
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
396
-  (0.1ms) ROLLBACK
397
-  (0.1ms) BEGIN
398
- ---------------------------------------------------------------------------
399
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
400
- ---------------------------------------------------------------------------
401
-  (0.1ms) SAVEPOINT active_record_1
402
-  (0.1ms) RELEASE SAVEPOINT active_record_1
403
-  (0.0ms) SAVEPOINT active_record_1
404
-  (0.1ms) SAVEPOINT active_record_2
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"]]
406
-  (0.1ms) RELEASE SAVEPOINT active_record_2
407
-  (0.1ms) SAVEPOINT active_record_2
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"]]
409
-  (0.1ms) RELEASE SAVEPOINT active_record_2
410
-  (0.1ms) SAVEPOINT active_record_2
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"]]
412
-  (0.1ms) RELEASE SAVEPOINT active_record_2
413
-  (0.1ms) SAVEPOINT active_record_2
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"]]
415
-  (0.1ms) RELEASE SAVEPOINT active_record_2
416
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
417
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
418
-  (0.2ms) ROLLBACK
419
-  (0.1ms) BEGIN
420
- ---------------------------------------------------------------------------
421
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
422
- ---------------------------------------------------------------------------
423
-  (0.1ms) SAVEPOINT active_record_1
424
-  (0.1ms) RELEASE SAVEPOINT active_record_1
425
-  (0.1ms) SAVEPOINT active_record_1
426
-  (0.1ms) SAVEPOINT active_record_2
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"]]
428
-  (0.1ms) RELEASE SAVEPOINT active_record_2
429
-  (0.1ms) SAVEPOINT active_record_2
430
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
431
-  (0.1ms) RELEASE SAVEPOINT active_record_2
432
-  (0.1ms) SAVEPOINT active_record_2
433
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
434
-  (0.1ms) RELEASE SAVEPOINT active_record_2
435
-  (0.1ms) SAVEPOINT active_record_2
436
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
437
-  (0.1ms) RELEASE SAVEPOINT active_record_2
438
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
439
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
440
-  (0.1ms) ROLLBACK
441
-  (0.1ms) BEGIN
442
- ---------------------------------------------------------------------------
443
- PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
444
- ---------------------------------------------------------------------------
445
213
   (0.0ms) SAVEPOINT active_record_1
446
214
   (0.0ms) RELEASE SAVEPOINT active_record_1
447
215
   (0.0ms) SAVEPOINT active_record_1
448
216
   (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"]]
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", "2016-01-08 13:24:37.922353"], ["updated_at", "2016-01-08 13:24:37.922353"], ["file_ext", "png"], ["mime_type", "image/png"]]
456
218
   (0.1ms) RELEASE SAVEPOINT active_record_2
457
-  (0.1ms) SAVEPOINT active_record_2
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"]]
459
-  (0.1ms) RELEASE SAVEPOINT active_record_2
460
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
461
219
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
462
220
   (0.1ms) ROLLBACK
463
221
   (0.1ms) BEGIN
@@ -466,66 +224,66 @@ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_000
466
224
  -------------------------------------------------------------------------------------------
467
225
   (0.1ms) SAVEPOINT active_record_1
468
226
   (0.1ms) RELEASE SAVEPOINT active_record_1
469
-  (0.0ms) SAVEPOINT active_record_1
227
+  (0.1ms) SAVEPOINT active_record_1
470
228
   (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-08 15:08:43.861130"], ["updated_at", "2015-11-08 15:08:43.861130"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2016-01-08 13:24:37.955729"], ["updated_at", "2016-01-08 13:24:37.955729"], ["file_ext", "png"], ["mime_type", "image/png"]]
472
230
   (0.1ms) RELEASE SAVEPOINT active_record_2
473
231
   (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-08 15:08:43.863250"], ["updated_at", "2015-11-08 15:08:43.863250"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2016-01-08 13:24:37.958116"], ["updated_at", "2016-01-08 13:24:37.958116"], ["file_ext", "png"], ["mime_type", "image/png"]]
475
233
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
234
   (0.1ms) SAVEPOINT active_record_2
477
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "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"]]
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", "2016-01-08 13:24:37.960058"], ["updated_at", "2016-01-08 13:24:37.960058"], ["file_ext", "png"], ["mime_type", "image/png"]]
478
236
   (0.1ms) RELEASE SAVEPOINT active_record_2
479
237
   (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-08 15:08:43.867227"], ["updated_at", "2015-11-08 15:08:43.867227"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "2016-01-08 13:24:37.962043"], ["updated_at", "2016-01-08 13:24:37.962043"], ["file_ext", "png"], ["mime_type", "image/png"]]
481
239
   (0.1ms) RELEASE SAVEPOINT active_record_2
482
240
   (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-08 15:08:43.869218"], ["updated_at", "2015-11-08 15:08:43.869218"], ["file_ext", "png"], ["mime_type", "image/png"]]
241
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:37.963980"], ["updated_at", "2016-01-08 13:24:37.963980"], ["file_ext", "png"], ["mime_type", "image/png"]]
484
242
   (0.1ms) RELEASE SAVEPOINT active_record_2
485
243
   (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-08 15:08:43.871590"], ["updated_at", "2015-11-08 15:08:43.871590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2016-01-08 13:24:37.966197"], ["updated_at", "2016-01-08 13:24:37.966197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
487
245
   (0.1ms) RELEASE SAVEPOINT active_record_2
488
246
   (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-08 15:08:43.873623"], ["updated_at", "2015-11-08 15:08:43.873623"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2016-01-08 13:24:37.968238"], ["updated_at", "2016-01-08 13:24:37.968238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
490
248
   (0.1ms) RELEASE SAVEPOINT active_record_2
491
249
   (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-08 15:08:43.875775"], ["updated_at", "2015-11-08 15:08:43.875775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2016-01-08 13:24:37.970243"], ["updated_at", "2016-01-08 13:24:37.970243"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
493
251
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
252
   (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-08 15:08:43.877822"], ["updated_at", "2015-11-08 15:08:43.877822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2016-01-08 13:24:37.972217"], ["updated_at", "2016-01-08 13:24:37.972217"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
496
254
   (0.1ms) RELEASE SAVEPOINT active_record_2
497
255
   (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-08 15:08:43.879841"], ["updated_at", "2015-11-08 15:08:43.879841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2016-01-08 13:24:37.974179"], ["updated_at", "2016-01-08 13:24:37.974179"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
499
257
   (0.1ms) RELEASE SAVEPOINT active_record_2
500
258
   (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-08 15:08:43.881942"], ["updated_at", "2015-11-08 15:08:43.881942"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2016-01-08 13:24:37.976239"], ["updated_at", "2016-01-08 13:24:37.976239"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
502
260
   (0.1ms) RELEASE SAVEPOINT active_record_2
503
261
   (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-08 15:08:43.884099"], ["updated_at", "2015-11-08 15:08:43.884099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "19"], ["created_at", "2016-01-08 13:24:37.978302"], ["updated_at", "2016-01-08 13:24:37.978302"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
505
263
   (0.1ms) RELEASE SAVEPOINT active_record_2
506
264
   (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-08 15:08:43.886099"], ["updated_at", "2015-11-08 15:08:43.886099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2016-01-08 13:24:37.980309"], ["updated_at", "2016-01-08 13:24:37.980309"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
266
   (0.1ms) RELEASE SAVEPOINT active_record_2
509
267
   (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-08 15:08:43.888209"], ["updated_at", "2015-11-08 15:08:43.888209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "21"], ["created_at", "2016-01-08 13:24:37.982317"], ["updated_at", "2016-01-08 13:24:37.982317"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
269
   (0.1ms) RELEASE SAVEPOINT active_record_2
512
270
   (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-08 15:08:43.890318"], ["updated_at", "2015-11-08 15:08:43.890318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "22"], ["created_at", "2016-01-08 13:24:37.984326"], ["updated_at", "2016-01-08 13:24:37.984326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
272
   (0.1ms) RELEASE SAVEPOINT active_record_2
515
273
   (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-08 15:08:43.892409"], ["updated_at", "2015-11-08 15:08:43.892409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
274
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "23"], ["created_at", "2016-01-08 13:24:37.986293"], ["updated_at", "2016-01-08 13:24:37.986293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
275
   (0.1ms) RELEASE SAVEPOINT active_record_2
518
276
   (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-08 15:08:43.894801"], ["updated_at", "2015-11-08 15:08:43.894801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
277
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2016-01-08 13:24:37.988352"], ["updated_at", "2016-01-08 13:24:37.988352"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
278
   (0.1ms) RELEASE SAVEPOINT active_record_2
521
279
   (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-08 15:08:43.896892"], ["updated_at", "2015-11-08 15:08:43.896892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
280
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2016-01-08 13:24:37.990351"], ["updated_at", "2016-01-08 13:24:37.990351"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
281
   (0.1ms) RELEASE SAVEPOINT active_record_2
524
282
  Processing by PushType::WysiwygMediaController#index as JSON
525
283
  Parameters: {"filter"=>"image"}
526
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
284
+ PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
527
285
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
528
- Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.6ms)
286
+ Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.7ms)
529
287
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
530
288
   (0.1ms) ROLLBACK
531
289
   (0.1ms) BEGIN
@@ -536,58 +294,58 @@ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_000
536
294
   (0.0ms) RELEASE SAVEPOINT active_record_1
537
295
   (0.0ms) SAVEPOINT active_record_1
538
296
   (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-08 15:08:43.909622"], ["updated_at", "2015-11-08 15:08:43.909622"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2016-01-08 13:24:38.006573"], ["updated_at", "2016-01-08 13:24:38.006573"], ["file_ext", "png"], ["mime_type", "image/png"]]
540
298
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
299
   (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-08 15:08:43.911853"], ["updated_at", "2015-11-08 15:08:43.911853"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2016-01-08 13:24:38.008711"], ["updated_at", "2016-01-08 13:24:38.008711"], ["file_ext", "png"], ["mime_type", "image/png"]]
543
301
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
302
   (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-08 15:08:43.913993"], ["updated_at", "2015-11-08 15:08:43.913993"], ["file_ext", "png"], ["mime_type", "image/png"]]
303
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2016-01-08 13:24:38.010751"], ["updated_at", "2016-01-08 13:24:38.010751"], ["file_ext", "png"], ["mime_type", "image/png"]]
546
304
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
305
   (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-08 15:08:43.916143"], ["updated_at", "2015-11-08 15:08:43.916143"], ["file_ext", "png"], ["mime_type", "image/png"]]
306
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2016-01-08 13:24:38.012739"], ["updated_at", "2016-01-08 13:24:38.012739"], ["file_ext", "png"], ["mime_type", "image/png"]]
549
307
   (0.1ms) RELEASE SAVEPOINT active_record_2
550
308
   (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-08 15:08:43.918169"], ["updated_at", "2015-11-08 15:08:43.918169"], ["file_ext", "png"], ["mime_type", "image/png"]]
309
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2016-01-08 13:24:38.014695"], ["updated_at", "2016-01-08 13:24:38.014695"], ["file_ext", "png"], ["mime_type", "image/png"]]
552
310
   (0.1ms) RELEASE SAVEPOINT active_record_2
553
311
   (0.1ms) SAVEPOINT active_record_2
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"]]
312
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2016-01-08 13:24:38.016824"], ["updated_at", "2016-01-08 13:24:38.016824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
555
313
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
314
   (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-08 15:08:43.922435"], ["updated_at", "2015-11-08 15:08:43.922435"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2016-01-08 13:24:38.018967"], ["updated_at", "2016-01-08 13:24:38.018967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
316
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
317
   (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-08 15:08:43.924528"], ["updated_at", "2015-11-08 15:08:43.924528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2016-01-08 13:24:38.021047"], ["updated_at", "2016-01-08 13:24:38.021047"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
561
319
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
320
   (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-08 15:08:43.926521"], ["updated_at", "2015-11-08 15:08:43.926521"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2016-01-08 13:24:38.023005"], ["updated_at", "2016-01-08 13:24:38.023005"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
564
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
565
323
   (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-08 15:08:43.928555"], ["updated_at", "2015-11-08 15:08:43.928555"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2016-01-08 13:24:38.025191"], ["updated_at", "2016-01-08 13:24:38.025191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
567
325
   (0.1ms) RELEASE SAVEPOINT active_record_2
568
326
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2016-01-08 13:24:38.027205"], ["updated_at", "2016-01-08 13:24:38.027205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
570
328
   (0.1ms) RELEASE SAVEPOINT active_record_2
571
329
   (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-08 15:08:43.933057"], ["updated_at", "2015-11-08 15:08:43.933057"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2016-01-08 13:24:38.029453"], ["updated_at", "2016-01-08 13:24:38.029453"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
573
331
   (0.1ms) RELEASE SAVEPOINT active_record_2
574
332
   (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-08 15:08:43.935056"], ["updated_at", "2015-11-08 15:08:43.935056"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2016-01-08 13:24:38.031450"], ["updated_at", "2016-01-08 13:24:38.031450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
576
334
   (0.1ms) RELEASE SAVEPOINT active_record_2
577
335
   (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-08 15:08:43.937097"], ["updated_at", "2015-11-08 15:08:43.937097"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "39"], ["created_at", "2016-01-08 13:24:38.033399"], ["updated_at", "2016-01-08 13:24:38.033399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
579
337
   (0.1ms) RELEASE SAVEPOINT active_record_2
580
338
   (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-08 15:08:43.939156"], ["updated_at", "2015-11-08 15:08:43.939156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
339
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "40"], ["created_at", "2016-01-08 13:24:38.035449"], ["updated_at", "2016-01-08 13:24:38.035449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
582
340
   (0.1ms) RELEASE SAVEPOINT active_record_2
583
341
   (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-08 15:08:43.941238"], ["updated_at", "2015-11-08 15:08:43.941238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
342
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "41"], ["created_at", "2016-01-08 13:24:38.037525"], ["updated_at", "2016-01-08 13:24:38.037525"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
585
343
   (0.1ms) RELEASE SAVEPOINT active_record_2
586
344
   (0.1ms) SAVEPOINT active_record_2
587
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "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"]]
345
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2016-01-08 13:24:38.039539"], ["updated_at", "2016-01-08 13:24:38.039539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
588
346
   (0.1ms) RELEASE SAVEPOINT active_record_2
589
347
   (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-08 15:08:43.946223"], ["updated_at", "2015-11-08 15:08:43.946223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
348
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2016-01-08 13:24:38.041774"], ["updated_at", "2016-01-08 13:24:38.041774"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
591
349
   (0.1ms) RELEASE SAVEPOINT active_record_2
592
350
  Processing by PushType::WysiwygMediaController#index as JSON
593
351
  Parameters: {"filter"=>"image"}
@@ -600,136 +358,136 @@ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
600
358
  -------------------------------------------------------------------------------------------
601
359
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
602
360
  -------------------------------------------------------------------------------------------
603
-  (0.0ms) SAVEPOINT active_record_1
361
+  (0.1ms) SAVEPOINT active_record_1
604
362
   (0.0ms) RELEASE SAVEPOINT active_record_1
605
363
   (0.0ms) SAVEPOINT active_record_1
606
364
   (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-08 15:08:43.954223"], ["updated_at", "2015-11-08 15:08:43.954223"], ["file_ext", "png"], ["mime_type", "image/png"]]
365
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2016-01-08 13:24:38.049776"], ["updated_at", "2016-01-08 13:24:38.049776"], ["file_ext", "png"], ["mime_type", "image/png"]]
608
366
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
367
   (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-08 15:08:43.956519"], ["updated_at", "2015-11-08 15:08:43.956519"], ["file_ext", "png"], ["mime_type", "image/png"]]
368
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2016-01-08 13:24:38.051970"], ["updated_at", "2016-01-08 13:24:38.051970"], ["file_ext", "png"], ["mime_type", "image/png"]]
611
369
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
370
   (0.1ms) SAVEPOINT active_record_2
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"]]
371
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2016-01-08 13:24:38.053975"], ["updated_at", "2016-01-08 13:24:38.053975"], ["file_ext", "png"], ["mime_type", "image/png"]]
614
372
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
373
   (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-08 15:08:43.960580"], ["updated_at", "2015-11-08 15:08:43.960580"], ["file_ext", "png"], ["mime_type", "image/png"]]
374
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2016-01-08 13:24:38.056007"], ["updated_at", "2016-01-08 13:24:38.056007"], ["file_ext", "png"], ["mime_type", "image/png"]]
617
375
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
376
   (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-08 15:08:43.962588"], ["updated_at", "2015-11-08 15:08:43.962588"], ["file_ext", "png"], ["mime_type", "image/png"]]
377
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2016-01-08 13:24:38.058035"], ["updated_at", "2016-01-08 13:24:38.058035"], ["file_ext", "png"], ["mime_type", "image/png"]]
620
378
   (0.1ms) RELEASE SAVEPOINT active_record_2
621
379
   (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-08 15:08:43.964560"], ["updated_at", "2015-11-08 15:08:43.964560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2016-01-08 13:24:38.060225"], ["updated_at", "2016-01-08 13:24:38.060225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
623
381
   (0.1ms) RELEASE SAVEPOINT active_record_2
624
382
   (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-08 15:08:43.966667"], ["updated_at", "2015-11-08 15:08:43.966667"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2016-01-08 13:24:38.062314"], ["updated_at", "2016-01-08 13:24:38.062314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
626
384
   (0.1ms) RELEASE SAVEPOINT active_record_2
627
385
   (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-08 15:08:43.968782"], ["updated_at", "2015-11-08 15:08:43.968782"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2016-01-08 13:24:38.064414"], ["updated_at", "2016-01-08 13:24:38.064414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
629
387
   (0.1ms) RELEASE SAVEPOINT active_record_2
630
388
   (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-08 15:08:43.970818"], ["updated_at", "2015-11-08 15:08:43.970818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2016-01-08 13:24:38.066381"], ["updated_at", "2016-01-08 13:24:38.066381"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
632
390
   (0.1ms) RELEASE SAVEPOINT active_record_2
633
391
   (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-08 15:08:43.972749"], ["updated_at", "2015-11-08 15:08:43.972749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
+ 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", "53"], ["created_at", "2016-01-08 13:24:38.068408"], ["updated_at", "2016-01-08 13:24:38.068408"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
635
393
   (0.1ms) RELEASE SAVEPOINT active_record_2
636
394
   (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-08 15:08:43.974862"], ["updated_at", "2015-11-08 15:08:43.974862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2016-01-08 13:24:38.070609"], ["updated_at", "2016-01-08 13:24:38.070609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
638
396
   (0.1ms) RELEASE SAVEPOINT active_record_2
639
397
   (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-08 15:08:43.976853"], ["updated_at", "2015-11-08 15:08:43.976853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2016-01-08 13:24:38.072719"], ["updated_at", "2016-01-08 13:24:38.072719"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
641
399
   (0.1ms) RELEASE SAVEPOINT active_record_2
642
400
   (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-08 15:08:43.978950"], ["updated_at", "2015-11-08 15:08:43.978950"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
401
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2016-01-08 13:24:38.074807"], ["updated_at", "2016-01-08 13:24:38.074807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
644
402
   (0.1ms) RELEASE SAVEPOINT active_record_2
645
403
   (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-08 15:08:43.981022"], ["updated_at", "2015-11-08 15:08:43.981022"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
404
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2016-01-08 13:24:38.076810"], ["updated_at", "2016-01-08 13:24:38.076810"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
647
405
   (0.1ms) RELEASE SAVEPOINT active_record_2
648
406
   (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-08 15:08:43.983129"], ["updated_at", "2015-11-08 15:08:43.983129"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
407
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2016-01-08 13:24:38.078857"], ["updated_at", "2016-01-08 13:24:38.078857"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
650
408
   (0.1ms) RELEASE SAVEPOINT active_record_2
651
409
   (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-08 15:08:43.985077"], ["updated_at", "2015-11-08 15:08:43.985077"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2016-01-08 13:24:38.080918"], ["updated_at", "2016-01-08 13:24:38.080918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
653
411
   (0.1ms) RELEASE SAVEPOINT active_record_2
654
412
   (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-08 15:08:43.987166"], ["updated_at", "2015-11-08 15:08:43.987166"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2016-01-08 13:24:38.083222"], ["updated_at", "2016-01-08 13:24:38.083222"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
656
414
   (0.1ms) RELEASE SAVEPOINT active_record_2
657
415
   (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-08 15:08:43.989370"], ["updated_at", "2015-11-08 15:08:43.989370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2016-01-08 13:24:38.085358"], ["updated_at", "2016-01-08 13:24:38.085358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
417
   (0.1ms) RELEASE SAVEPOINT active_record_2
660
418
  Processing by PushType::WysiwygMediaController#index as JSON
661
419
  Parameters: {"filter"=>"image"}
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
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
420
+ 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
421
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
664
422
  Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
665
423
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
666
-  (0.1ms) ROLLBACK
424
+  (0.2ms) ROLLBACK
667
425
   (0.1ms) BEGIN
668
426
  -------------------------------------------------------------------------------------------
669
427
  PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
670
428
  -------------------------------------------------------------------------------------------
671
429
   (0.1ms) SAVEPOINT active_record_1
672
-  (0.1ms) RELEASE SAVEPOINT active_record_1
430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
673
431
   (0.0ms) SAVEPOINT active_record_1
674
432
   (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-08 15:08:43.997264"], ["updated_at", "2015-11-08 15:08:43.997264"], ["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", "62"], ["created_at", "2016-01-08 13:24:38.093354"], ["updated_at", "2016-01-08 13:24:38.093354"], ["file_ext", "png"], ["mime_type", "image/png"]]
676
434
   (0.1ms) RELEASE SAVEPOINT active_record_2
677
435
   (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-08 15:08:43.999468"], ["updated_at", "2015-11-08 15:08:43.999468"], ["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", "63"], ["created_at", "2016-01-08 13:24:38.095544"], ["updated_at", "2016-01-08 13:24:38.095544"], ["file_ext", "png"], ["mime_type", "image/png"]]
679
437
   (0.1ms) RELEASE SAVEPOINT active_record_2
680
438
   (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-08 15:08:44.001969"], ["updated_at", "2015-11-08 15:08:44.001969"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "64"], ["created_at", "2016-01-08 13:24:38.097585"], ["updated_at", "2016-01-08 13:24:38.097585"], ["file_ext", "png"], ["mime_type", "image/png"]]
682
440
   (0.1ms) RELEASE SAVEPOINT active_record_2
683
441
   (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-08 15:08:44.004237"], ["updated_at", "2015-11-08 15:08:44.004237"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "65"], ["created_at", "2016-01-08 13:24:38.099570"], ["updated_at", "2016-01-08 13:24:38.099570"], ["file_ext", "png"], ["mime_type", "image/png"]]
685
443
   (0.1ms) RELEASE SAVEPOINT active_record_2
686
444
   (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-08 15:08:44.006339"], ["updated_at", "2015-11-08 15:08:44.006339"], ["file_ext", "png"], ["mime_type", "image/png"]]
445
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "66"], ["created_at", "2016-01-08 13:24:38.101585"], ["updated_at", "2016-01-08 13:24:38.101585"], ["file_ext", "png"], ["mime_type", "image/png"]]
688
446
   (0.1ms) RELEASE SAVEPOINT active_record_2
689
447
   (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-08 15:08:44.008427"], ["updated_at", "2015-11-08 15:08:44.008427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
448
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2016-01-08 13:24:38.103736"], ["updated_at", "2016-01-08 13:24:38.103736"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
691
449
   (0.1ms) RELEASE SAVEPOINT active_record_2
692
450
   (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-08 15:08:44.010609"], ["updated_at", "2015-11-08 15:08:44.010609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
451
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2016-01-08 13:24:38.105819"], ["updated_at", "2016-01-08 13:24:38.105819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
452
   (0.1ms) RELEASE SAVEPOINT active_record_2
695
453
   (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-08 15:08:44.012665"], ["updated_at", "2015-11-08 15:08:44.012665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
454
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2016-01-08 13:24:38.107870"], ["updated_at", "2016-01-08 13:24:38.107870"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
697
455
   (0.1ms) RELEASE SAVEPOINT active_record_2
698
456
   (0.1ms) SAVEPOINT active_record_2
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"]]
457
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2016-01-08 13:24:38.109975"], ["updated_at", "2016-01-08 13:24:38.109975"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
700
458
   (0.1ms) RELEASE SAVEPOINT active_record_2
701
459
   (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-08 15:08:44.016889"], ["updated_at", "2015-11-08 15:08:44.016889"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
460
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2016-01-08 13:24:38.111926"], ["updated_at", "2016-01-08 13:24:38.111926"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
703
461
   (0.1ms) RELEASE SAVEPOINT active_record_2
704
462
   (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-08 15:08:44.019004"], ["updated_at", "2015-11-08 15:08:44.019004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
463
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2016-01-08 13:24:38.113947"], ["updated_at", "2016-01-08 13:24:38.113947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
706
464
   (0.1ms) RELEASE SAVEPOINT active_record_2
707
465
   (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-08 15:08:44.021081"], ["updated_at", "2015-11-08 15:08:44.021081"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
466
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2016-01-08 13:24:38.116019"], ["updated_at", "2016-01-08 13:24:38.116019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
709
467
   (0.1ms) RELEASE SAVEPOINT active_record_2
710
468
   (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-08 15:08:44.023287"], ["updated_at", "2015-11-08 15:08:44.023287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
469
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2016-01-08 13:24:38.118068"], ["updated_at", "2016-01-08 13:24:38.118068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
712
470
   (0.1ms) RELEASE SAVEPOINT active_record_2
713
471
   (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-08 15:08:44.025328"], ["updated_at", "2015-11-08 15:08:44.025328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
472
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2016-01-08 13:24:38.120195"], ["updated_at", "2016-01-08 13:24:38.120195"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
715
473
   (0.1ms) RELEASE SAVEPOINT active_record_2
716
474
   (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-08 15:08:44.027378"], ["updated_at", "2015-11-08 15:08:44.027378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
475
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2016-01-08 13:24:38.122315"], ["updated_at", "2016-01-08 13:24:38.122315"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
718
476
   (0.1ms) RELEASE SAVEPOINT active_record_2
719
477
   (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-08 15:08:44.029499"], ["updated_at", "2015-11-08 15:08:44.029499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
478
+ 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", "2016-01-08 13:24:38.124289"], ["updated_at", "2016-01-08 13:24:38.124289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
721
479
   (0.1ms) RELEASE SAVEPOINT active_record_2
722
480
   (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-08 15:08:44.031906"], ["updated_at", "2015-11-08 15:08:44.031906"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
481
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.126681"], ["updated_at", "2016-01-08 13:24:38.126681"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
724
482
   (0.1ms) RELEASE SAVEPOINT active_record_2
725
483
   (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-08 15:08:44.034152"], ["updated_at", "2015-11-08 15:08:44.034152"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
484
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.128795"], ["updated_at", "2016-01-08 13:24:38.128795"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
485
   (0.1ms) RELEASE SAVEPOINT active_record_2
728
486
  Processing by PushType::WysiwygMediaController#index as JSON
729
487
  Parameters: {"filter"=>"image"}
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
488
+ 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
731
489
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
732
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
490
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
733
491
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
734
492
   (0.1ms) ROLLBACK
735
493
   (0.0ms) BEGIN
@@ -743,7 +501,7 @@ Processing by PushType::WysiwygMediaController#create as JSON
743
501
  Parameters: {"asset"=>{}}
744
502
   (0.1ms) SAVEPOINT active_record_2
745
503
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
746
- Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)
504
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.2ms)
747
505
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
748
506
   (0.1ms) ROLLBACK
749
507
   (0.1ms) BEGIN
@@ -764,737 +522,979 @@ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
764
522
  --------------------------------------------------------------------------------------------
765
523
  PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
766
524
  --------------------------------------------------------------------------------------------
767
-  (0.0ms) SAVEPOINT active_record_1
768
-  (0.0ms) RELEASE SAVEPOINT active_record_1
769
-  (0.0ms) SAVEPOINT active_record_1
525
+  (0.1ms) SAVEPOINT active_record_1
526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
527
+  (0.1ms) SAVEPOINT active_record_1
770
528
  Processing by PushType::WysiwygMediaController#create as JSON
771
529
  Parameters: {"asset"=>{}}
772
530
   (0.1ms) SAVEPOINT active_record_2
773
531
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
774
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
532
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
775
533
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
776
534
   (0.1ms) ROLLBACK
777
535
   (0.1ms) BEGIN
778
- --------------------------------------------------------------------------------------
779
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
780
- --------------------------------------------------------------------------------------
536
+ -----------------------------------------------
537
+ PushType::WysiwygFieldTest: test_0005_anonymous
538
+ -----------------------------------------------
539
+  (0.1ms) SAVEPOINT active_record_1
540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
+  (0.1ms) SAVEPOINT active_record_1
542
+  (0.1ms) SAVEPOINT active_record_2
543
+ 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
544
+ 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", "2016-01-08 13:24:38.176408"], ["updated_at", "2016-01-08 13:24:38.176408"]]
545
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4d442b1367445d40dfa33a8db235e556
546
+ SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e2d68b1b-2dbd-42c9-9cdd-335a3deb1450"], ["descendant_id", "e2d68b1b-2dbd-42c9-9cdd-335a3deb1450"], ["generations", 0]]
547
+  (0.5ms) UPDATE "push_type_nodes"
548
+ SET "sort_order" = t.seq + -1
549
+ FROM (
550
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
551
+ FROM "push_type_nodes"
552
+ WHERE "parent_id" IS NULL
553
+ ) AS t
554
+ WHERE "push_type_nodes"."id" = t.id
555
+ 
556
+ 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", "e2d68b1b-2dbd-42c9-9cdd-335a3deb1450"]]
557
+ 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", "e2d68b1b-2dbd-42c9-9cdd-335a3deb1450"]]
558
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc22959677a3ed927bbde911de4b586d6
559
+  (0.1ms) RELEASE SAVEPOINT active_record_2
560
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
561
+  (0.1ms) ROLLBACK
562
+  (0.1ms) BEGIN
563
+ -----------------------------------------------
564
+ PushType::WysiwygFieldTest: test_0003_anonymous
565
+ -----------------------------------------------
566
+  (0.1ms) SAVEPOINT active_record_1
567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
568
+  (0.1ms) SAVEPOINT active_record_1
569
+  (0.1ms) SAVEPOINT active_record_2
570
+ 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
571
+ 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", "2016-01-08 13:24:38.199028"], ["updated_at", "2016-01-08 13:24:38.199028"]]
572
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t828196ef606feff4b4b857642e2b4aba
573
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "824bac3a-1017-4c91-9fed-84fbd716c3fc"], ["descendant_id", "824bac3a-1017-4c91-9fed-84fbd716c3fc"], ["generations", 0]]
574
+  (0.2ms) UPDATE "push_type_nodes"
575
+ SET "sort_order" = t.seq + -1
576
+ FROM (
577
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
578
+ FROM "push_type_nodes"
579
+ WHERE "parent_id" IS NULL
580
+ ) AS t
581
+ WHERE "push_type_nodes"."id" = t.id
582
+ 
583
+ 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", "824bac3a-1017-4c91-9fed-84fbd716c3fc"]]
584
+ 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", "824bac3a-1017-4c91-9fed-84fbd716c3fc"]]
585
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1953afbc01206449113e8812c54d4790
586
+  (0.1ms) RELEASE SAVEPOINT active_record_2
587
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
588
+  (0.1ms) ROLLBACK
589
+  (0.1ms) BEGIN
590
+ -----------------------------------------------
591
+ PushType::WysiwygFieldTest: test_0002_anonymous
592
+ -----------------------------------------------
781
593
   (0.0ms) SAVEPOINT active_record_1
782
594
   (0.0ms) RELEASE SAVEPOINT active_record_1
783
595
   (0.0ms) SAVEPOINT active_record_1
784
596
   (0.1ms) SAVEPOINT active_record_2
785
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
786
-  (0.1ms) RELEASE SAVEPOINT active_record_2
597
+ 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
598
+ 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", "2016-01-08 13:24:38.207226"], ["updated_at", "2016-01-08 13:24:38.207226"]]
599
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta00621dcd44c356a27aad8b70adb650c
600
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "19a9734d-cbb8-4b9a-92e7-3a31c162e5fe"], ["descendant_id", "19a9734d-cbb8-4b9a-92e7-3a31c162e5fe"], ["generations", 0]]
601
+  (0.2ms) UPDATE "push_type_nodes"
602
+ SET "sort_order" = t.seq + -1
603
+ FROM (
604
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
605
+ FROM "push_type_nodes"
606
+ WHERE "parent_id" IS NULL
607
+ ) AS t
608
+ WHERE "push_type_nodes"."id" = t.id
609
+ 
610
+ 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", "19a9734d-cbb8-4b9a-92e7-3a31c162e5fe"]]
611
+ 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", "19a9734d-cbb8-4b9a-92e7-3a31c162e5fe"]]
612
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbd34876db4b544610082148706b2a9c7
613
+  (0.1ms) RELEASE SAVEPOINT active_record_2
614
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
615
+  (0.1ms) ROLLBACK
616
+  (0.1ms) BEGIN
617
+ -----------------------------------------------
618
+ PushType::WysiwygFieldTest: test_0004_anonymous
619
+ -----------------------------------------------
620
+  (0.1ms) SAVEPOINT active_record_1
621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
622
+  (0.0ms) SAVEPOINT active_record_1
623
+  (0.1ms) SAVEPOINT active_record_2
624
+ 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
625
+ 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", "2016-01-08 13:24:38.214962"], ["updated_at", "2016-01-08 13:24:38.214962"]]
626
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4b55df96f2c756889021cd55b73e57a0
627
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a565a7c9-1e6e-4468-983a-8344e15eeab9"], ["descendant_id", "a565a7c9-1e6e-4468-983a-8344e15eeab9"], ["generations", 0]]
628
+  (0.2ms) UPDATE "push_type_nodes"
629
+ SET "sort_order" = t.seq + -1
630
+ FROM (
631
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
632
+ FROM "push_type_nodes"
633
+ WHERE "parent_id" IS NULL
634
+ ) AS t
635
+ WHERE "push_type_nodes"."id" = t.id
636
+ 
637
+ 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", "a565a7c9-1e6e-4468-983a-8344e15eeab9"]]
638
+ 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", "a565a7c9-1e6e-4468-983a-8344e15eeab9"]]
639
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9c34426d99c71a31da209af573e4ce43
640
+  (0.1ms) RELEASE SAVEPOINT active_record_2
641
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
642
+  (0.1ms) ROLLBACK
643
+  (0.1ms) BEGIN
644
+ -----------------------------------------------
645
+ PushType::WysiwygFieldTest: test_0001_anonymous
646
+ -----------------------------------------------
647
+  (0.0ms) SAVEPOINT active_record_1
648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
649
+  (0.0ms) SAVEPOINT active_record_1
650
+  (0.1ms) SAVEPOINT active_record_2
651
+ 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
652
+ 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", "2016-01-08 13:24:38.222852"], ["updated_at", "2016-01-08 13:24:38.222852"]]
653
+  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t677ee32bfbfa0b92bb4c5f34d62dbd71
654
+ SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2a9a5e53-2805-404f-859f-fb352387f787"], ["descendant_id", "2a9a5e53-2805-404f-859f-fb352387f787"], ["generations", 0]]
655
+  (0.2ms) UPDATE "push_type_nodes"
656
+ SET "sort_order" = t.seq + -1
657
+ FROM (
658
+ SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq
659
+ FROM "push_type_nodes"
660
+ WHERE "parent_id" IS NULL
661
+ ) AS t
662
+ WHERE "push_type_nodes"."id" = t.id
663
+ 
664
+ 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", "2a9a5e53-2805-404f-859f-fb352387f787"]]
665
+ 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", "2a9a5e53-2805-404f-859f-fb352387f787"]]
666
+  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6096ba169160ada9851eae7f52d6ffc8
667
+  (0.1ms) RELEASE SAVEPOINT active_record_2
668
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
669
+  (0.1ms) ROLLBACK
670
+  (0.1ms) BEGIN
671
+ ------------------------------------------------------------------------------------
672
+ PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
673
+ ------------------------------------------------------------------------------------
674
+  (0.1ms) SAVEPOINT active_record_1
675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
676
+  (0.0ms) SAVEPOINT active_record_1
677
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
678
+ Processing by PushType::WysiwygMediaController#create as JSON
679
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f979fcb06e0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20160108-6378-vns9y4>>}}
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", "80"], ["created_at", "2016-01-08 13:24:38.234068"], ["updated_at", "2016-01-08 13:24:38.234068"], ["file_ext", "png"], ["mime_type", "image/png"]]
682
+  (0.1ms) RELEASE SAVEPOINT active_record_2
683
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
684
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
685
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
686
+  (0.1ms) ROLLBACK
687
+  (0.1ms) BEGIN
688
+ ------------------------------------------------------------------------------------------
689
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
690
+ ------------------------------------------------------------------------------------------
691
+  (0.0ms) SAVEPOINT active_record_1
692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
693
+  (0.0ms) SAVEPOINT active_record_1
787
694
   (0.1ms) SAVEPOINT active_record_2
788
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
695
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2016-01-08 13:24:38.239975"], ["updated_at", "2016-01-08 13:24:38.239975"], ["file_ext", "png"], ["mime_type", "image/png"]]
789
696
   (0.1ms) RELEASE SAVEPOINT active_record_2
790
697
   (0.1ms) SAVEPOINT active_record_2
791
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
698
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2016-01-08 13:24:38.242164"], ["updated_at", "2016-01-08 13:24:38.242164"], ["file_ext", "png"], ["mime_type", "image/png"]]
792
699
   (0.1ms) RELEASE SAVEPOINT active_record_2
793
700
   (0.1ms) SAVEPOINT active_record_2
794
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
701
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2016-01-08 13:24:38.244233"], ["updated_at", "2016-01-08 13:24:38.244233"], ["file_ext", "png"], ["mime_type", "image/png"]]
795
702
   (0.1ms) RELEASE SAVEPOINT active_record_2
796
703
   (0.1ms) SAVEPOINT active_record_2
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"]]
704
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2016-01-08 13:24:38.246157"], ["updated_at", "2016-01-08 13:24:38.246157"], ["file_ext", "png"], ["mime_type", "image/png"]]
798
705
   (0.1ms) RELEASE SAVEPOINT active_record_2
799
706
   (0.1ms) SAVEPOINT active_record_2
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"]]
707
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.248118"], ["updated_at", "2016-01-08 13:24:38.248118"], ["file_ext", "png"], ["mime_type", "image/png"]]
801
708
   (0.1ms) RELEASE SAVEPOINT active_record_2
802
709
   (0.1ms) SAVEPOINT active_record_2
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"]]
710
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2016-01-08 13:24:38.250167"], ["updated_at", "2016-01-08 13:24:38.250167"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
804
711
   (0.1ms) RELEASE SAVEPOINT active_record_2
805
712
   (0.1ms) SAVEPOINT active_record_2
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"]]
713
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2016-01-08 13:24:38.252242"], ["updated_at", "2016-01-08 13:24:38.252242"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
807
714
   (0.1ms) RELEASE SAVEPOINT active_record_2
808
715
   (0.1ms) SAVEPOINT active_record_2
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"]]
716
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2016-01-08 13:24:38.254366"], ["updated_at", "2016-01-08 13:24:38.254366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
810
717
   (0.1ms) RELEASE SAVEPOINT active_record_2
811
718
   (0.1ms) SAVEPOINT active_record_2
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"]]
719
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2016-01-08 13:24:38.256441"], ["updated_at", "2016-01-08 13:24:38.256441"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
813
720
   (0.1ms) RELEASE SAVEPOINT active_record_2
814
721
   (0.1ms) SAVEPOINT active_record_2
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"]]
722
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.258614"], ["updated_at", "2016-01-08 13:24:38.258614"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
816
723
   (0.1ms) RELEASE SAVEPOINT active_record_2
817
724
   (0.1ms) SAVEPOINT active_record_2
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"]]
725
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.260758"], ["updated_at", "2016-01-08 13:24:38.260758"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
819
726
   (0.1ms) RELEASE SAVEPOINT active_record_2
820
727
   (0.1ms) SAVEPOINT active_record_2
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"]]
728
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.262960"], ["updated_at", "2016-01-08 13:24:38.262960"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
822
729
   (0.1ms) RELEASE SAVEPOINT active_record_2
823
730
   (0.1ms) SAVEPOINT active_record_2
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"]]
731
+ 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", "93"], ["created_at", "2016-01-08 13:24:38.266774"], ["updated_at", "2016-01-08 13:24:38.266774"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
825
732
   (0.1ms) RELEASE SAVEPOINT active_record_2
826
733
   (0.1ms) SAVEPOINT active_record_2
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"]]
734
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.269383"], ["updated_at", "2016-01-08 13:24:38.269383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
828
735
   (0.1ms) RELEASE SAVEPOINT active_record_2
829
736
   (0.1ms) SAVEPOINT active_record_2
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"]]
737
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.271823"], ["updated_at", "2016-01-08 13:24:38.271823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
831
738
   (0.1ms) RELEASE SAVEPOINT active_record_2
832
739
   (0.1ms) SAVEPOINT active_record_2
833
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
740
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.274404"], ["updated_at", "2016-01-08 13:24:38.274404"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
834
741
   (0.1ms) RELEASE SAVEPOINT active_record_2
835
742
   (0.1ms) SAVEPOINT active_record_2
836
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
743
+ 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", "97"], ["created_at", "2016-01-08 13:24:38.276863"], ["updated_at", "2016-01-08 13:24:38.276863"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
837
744
   (0.1ms) RELEASE SAVEPOINT active_record_2
838
- Processing by PushType::WysiwygMediaController#index as JSON
839
- Parameters: {"filter"=>"file", "page"=>2}
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
846
- --------------------------------------------------------------------------------------
847
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
848
- --------------------------------------------------------------------------------------
849
-  (0.1ms) SAVEPOINT active_record_1
850
-  (0.0ms) RELEASE SAVEPOINT active_record_1
851
-  (0.0ms) SAVEPOINT active_record_1
852
745
   (0.1ms) SAVEPOINT active_record_2
853
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
746
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2016-01-08 13:24:38.279828"], ["updated_at", "2016-01-08 13:24:38.279828"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
854
747
   (0.1ms) RELEASE SAVEPOINT active_record_2
748
+ Processing by PushType::WysiwygMediaController#index as JSON
749
+ Parameters: {"filter"=>"file"}
750
+ 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
751
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
752
+ Completed 200 OK in 122ms (Views: 0.9ms | ActiveRecord: 0.7ms)
753
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
754
+  (0.1ms) ROLLBACK
755
+  (0.1ms) BEGIN
756
+ ------------------------------------------------------------------------------------------
757
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
758
+ ------------------------------------------------------------------------------------------
759
+  (0.1ms) SAVEPOINT active_record_1
760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
761
+  (0.1ms) SAVEPOINT active_record_1
855
762
   (0.1ms) SAVEPOINT active_record_2
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"]]
763
+ 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", "99"], ["created_at", "2016-01-08 13:24:38.408502"], ["updated_at", "2016-01-08 13:24:38.408502"], ["file_ext", "png"], ["mime_type", "image/png"]]
857
764
   (0.1ms) RELEASE SAVEPOINT active_record_2
858
765
   (0.1ms) SAVEPOINT active_record_2
859
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
766
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2016-01-08 13:24:38.411523"], ["updated_at", "2016-01-08 13:24:38.411523"], ["file_ext", "png"], ["mime_type", "image/png"]]
860
767
   (0.1ms) RELEASE SAVEPOINT active_record_2
861
768
   (0.1ms) SAVEPOINT active_record_2
862
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
769
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2016-01-08 13:24:38.414316"], ["updated_at", "2016-01-08 13:24:38.414316"], ["file_ext", "png"], ["mime_type", "image/png"]]
863
770
   (0.1ms) RELEASE SAVEPOINT active_record_2
864
771
   (0.1ms) SAVEPOINT active_record_2
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"]]
772
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2016-01-08 13:24:38.416477"], ["updated_at", "2016-01-08 13:24:38.416477"], ["file_ext", "png"], ["mime_type", "image/png"]]
866
773
   (0.1ms) RELEASE SAVEPOINT active_record_2
867
774
   (0.1ms) SAVEPOINT active_record_2
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"]]
775
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.418670"], ["updated_at", "2016-01-08 13:24:38.418670"], ["file_ext", "png"], ["mime_type", "image/png"]]
869
776
   (0.1ms) RELEASE SAVEPOINT active_record_2
870
777
   (0.1ms) SAVEPOINT active_record_2
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"]]
778
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2016-01-08 13:24:38.420828"], ["updated_at", "2016-01-08 13:24:38.420828"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
872
779
   (0.1ms) RELEASE SAVEPOINT active_record_2
873
780
   (0.1ms) SAVEPOINT active_record_2
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"]]
781
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2016-01-08 13:24:38.422971"], ["updated_at", "2016-01-08 13:24:38.422971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
875
782
   (0.1ms) RELEASE SAVEPOINT active_record_2
876
783
   (0.1ms) SAVEPOINT active_record_2
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"]]
784
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2016-01-08 13:24:38.425145"], ["updated_at", "2016-01-08 13:24:38.425145"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
878
785
   (0.1ms) RELEASE SAVEPOINT active_record_2
879
786
   (0.1ms) SAVEPOINT active_record_2
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"]]
787
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2016-01-08 13:24:38.427515"], ["updated_at", "2016-01-08 13:24:38.427515"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
881
788
   (0.1ms) RELEASE SAVEPOINT active_record_2
882
789
   (0.1ms) SAVEPOINT active_record_2
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"]]
790
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.430016"], ["updated_at", "2016-01-08 13:24:38.430016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
884
791
   (0.1ms) RELEASE SAVEPOINT active_record_2
885
792
   (0.1ms) SAVEPOINT active_record_2
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"]]
793
+ 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", "109"], ["created_at", "2016-01-08 13:24:38.432933"], ["updated_at", "2016-01-08 13:24:38.432933"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
887
794
   (0.1ms) RELEASE SAVEPOINT active_record_2
888
795
   (0.1ms) SAVEPOINT active_record_2
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"]]
796
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.435756"], ["updated_at", "2016-01-08 13:24:38.435756"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
890
797
   (0.1ms) RELEASE SAVEPOINT active_record_2
891
798
   (0.1ms) SAVEPOINT active_record_2
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"]]
799
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.438039"], ["updated_at", "2016-01-08 13:24:38.438039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
893
800
   (0.1ms) RELEASE SAVEPOINT active_record_2
894
801
   (0.1ms) SAVEPOINT active_record_2
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"]]
802
+ 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", "112"], ["created_at", "2016-01-08 13:24:38.440644"], ["updated_at", "2016-01-08 13:24:38.440644"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
896
803
   (0.1ms) RELEASE SAVEPOINT active_record_2
897
804
   (0.1ms) SAVEPOINT active_record_2
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"]]
805
+ 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", "113"], ["created_at", "2016-01-08 13:24:38.443481"], ["updated_at", "2016-01-08 13:24:38.443481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
899
806
   (0.1ms) RELEASE SAVEPOINT active_record_2
900
807
   (0.1ms) SAVEPOINT active_record_2
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"]]
808
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.446799"], ["updated_at", "2016-01-08 13:24:38.446799"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
902
809
   (0.1ms) RELEASE SAVEPOINT active_record_2
903
810
   (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"]]
811
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2016-01-08 13:24:38.449139"], ["updated_at", "2016-01-08 13:24:38.449139"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
905
812
   (0.1ms) RELEASE SAVEPOINT active_record_2
906
- Processing by PushType::WysiwygMediaController#index as JSON
907
- Parameters: {"filter"=>"file", "page"=>2}
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/%')
910
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
911
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
912
-  (0.1ms) ROLLBACK
913
-  (0.1ms) BEGIN
914
- --------------------------------------------------------------------------------------
915
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
916
- --------------------------------------------------------------------------------------
917
-  (0.0ms) SAVEPOINT active_record_1
918
-  (0.0ms) RELEASE SAVEPOINT active_record_1
919
-  (0.0ms) SAVEPOINT active_record_1
920
813
   (0.1ms) SAVEPOINT active_record_2
921
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
814
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2016-01-08 13:24:38.451312"], ["updated_at", "2016-01-08 13:24:38.451312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
922
815
   (0.1ms) RELEASE SAVEPOINT active_record_2
816
+ Processing by PushType::WysiwygMediaController#index as JSON
817
+ Parameters: {"filter"=>"file"}
818
+ 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
819
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
820
+ Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 0.5ms)
821
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
822
+  (0.1ms) ROLLBACK
823
+  (0.1ms) BEGIN
824
+ ------------------------------------------------------------------------------------------
825
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
826
+ ------------------------------------------------------------------------------------------
827
+  (0.1ms) SAVEPOINT active_record_1
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+  (0.0ms) SAVEPOINT active_record_1
923
830
   (0.1ms) SAVEPOINT active_record_2
924
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
831
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2016-01-08 13:24:38.468167"], ["updated_at", "2016-01-08 13:24:38.468167"], ["file_ext", "png"], ["mime_type", "image/png"]]
925
832
   (0.1ms) RELEASE SAVEPOINT active_record_2
926
833
   (0.1ms) SAVEPOINT active_record_2
927
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
834
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2016-01-08 13:24:38.470352"], ["updated_at", "2016-01-08 13:24:38.470352"], ["file_ext", "png"], ["mime_type", "image/png"]]
928
835
   (0.1ms) RELEASE SAVEPOINT active_record_2
929
836
   (0.1ms) SAVEPOINT active_record_2
930
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
837
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2016-01-08 13:24:38.472318"], ["updated_at", "2016-01-08 13:24:38.472318"], ["file_ext", "png"], ["mime_type", "image/png"]]
931
838
   (0.1ms) RELEASE SAVEPOINT active_record_2
932
839
   (0.1ms) SAVEPOINT active_record_2
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"]]
840
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2016-01-08 13:24:38.474339"], ["updated_at", "2016-01-08 13:24:38.474339"], ["file_ext", "png"], ["mime_type", "image/png"]]
934
841
   (0.1ms) RELEASE SAVEPOINT active_record_2
935
842
   (0.1ms) SAVEPOINT active_record_2
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"]]
843
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.476474"], ["updated_at", "2016-01-08 13:24:38.476474"], ["file_ext", "png"], ["mime_type", "image/png"]]
937
844
   (0.1ms) RELEASE SAVEPOINT active_record_2
938
845
   (0.1ms) SAVEPOINT active_record_2
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"]]
846
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2016-01-08 13:24:38.479573"], ["updated_at", "2016-01-08 13:24:38.479573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
940
847
   (0.1ms) RELEASE SAVEPOINT active_record_2
941
848
   (0.1ms) SAVEPOINT active_record_2
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"]]
849
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2016-01-08 13:24:38.481906"], ["updated_at", "2016-01-08 13:24:38.481906"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
943
850
   (0.1ms) RELEASE SAVEPOINT active_record_2
944
851
   (0.1ms) SAVEPOINT active_record_2
945
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
852
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2016-01-08 13:24:38.484075"], ["updated_at", "2016-01-08 13:24:38.484075"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
946
853
   (0.1ms) RELEASE SAVEPOINT active_record_2
947
854
   (0.1ms) SAVEPOINT active_record_2
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"]]
855
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2016-01-08 13:24:38.486229"], ["updated_at", "2016-01-08 13:24:38.486229"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
949
856
   (0.1ms) RELEASE SAVEPOINT active_record_2
950
857
   (0.1ms) SAVEPOINT active_record_2
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"]]
858
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.488300"], ["updated_at", "2016-01-08 13:24:38.488300"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
952
859
   (0.1ms) RELEASE SAVEPOINT active_record_2
953
860
   (0.1ms) SAVEPOINT active_record_2
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"]]
861
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.490367"], ["updated_at", "2016-01-08 13:24:38.490367"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
955
862
   (0.1ms) RELEASE SAVEPOINT active_record_2
956
863
   (0.1ms) SAVEPOINT active_record_2
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"]]
864
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.492402"], ["updated_at", "2016-01-08 13:24:38.492402"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
958
865
   (0.1ms) RELEASE SAVEPOINT active_record_2
959
866
   (0.1ms) SAVEPOINT active_record_2
960
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
867
+ 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", "129"], ["created_at", "2016-01-08 13:24:38.495114"], ["updated_at", "2016-01-08 13:24:38.495114"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
961
868
   (0.1ms) RELEASE SAVEPOINT active_record_2
962
869
   (0.1ms) SAVEPOINT active_record_2
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"]]
870
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.497807"], ["updated_at", "2016-01-08 13:24:38.497807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
964
871
   (0.1ms) RELEASE SAVEPOINT active_record_2
965
872
   (0.1ms) SAVEPOINT active_record_2
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"]]
873
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.499945"], ["updated_at", "2016-01-08 13:24:38.499945"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
967
874
   (0.1ms) RELEASE SAVEPOINT active_record_2
968
875
   (0.1ms) SAVEPOINT active_record_2
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"]]
876
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.502235"], ["updated_at", "2016-01-08 13:24:38.502235"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
970
877
   (0.1ms) RELEASE SAVEPOINT active_record_2
971
878
   (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"]]
879
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2016-01-08 13:24:38.504302"], ["updated_at", "2016-01-08 13:24:38.504302"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
973
880
   (0.1ms) RELEASE SAVEPOINT active_record_2
974
- Processing by PushType::WysiwygMediaController#index as JSON
975
- Parameters: {"filter"=>"file", "page"=>2}
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/%')
978
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
979
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
980
-  (0.2ms) ROLLBACK
981
-  (0.1ms) BEGIN
982
- --------------------------------------------------------------------------------------
983
- PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
984
- --------------------------------------------------------------------------------------
985
-  (0.0ms) SAVEPOINT active_record_1
986
-  (0.0ms) RELEASE SAVEPOINT active_record_1
987
-  (0.0ms) SAVEPOINT active_record_1
988
881
   (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", "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"]]
882
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2016-01-08 13:24:38.506305"], ["updated_at", "2016-01-08 13:24:38.506305"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
990
883
   (0.1ms) RELEASE SAVEPOINT active_record_2
884
+ Processing by PushType::WysiwygMediaController#index as JSON
885
+ Parameters: {"filter"=>"file"}
886
+ 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
887
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
888
+ Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
889
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
890
+  (0.1ms) ROLLBACK
891
+  (0.1ms) BEGIN
892
+ ------------------------------------------------------------------------------------------
893
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
894
+ ------------------------------------------------------------------------------------------
895
+  (0.0ms) SAVEPOINT active_record_1
896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
897
+  (0.0ms) SAVEPOINT active_record_1
991
898
   (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", "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"]]
899
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "135"], ["created_at", "2016-01-08 13:24:38.521117"], ["updated_at", "2016-01-08 13:24:38.521117"], ["file_ext", "png"], ["mime_type", "image/png"]]
993
900
   (0.1ms) RELEASE SAVEPOINT active_record_2
994
901
   (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", "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"]]
902
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2016-01-08 13:24:38.523235"], ["updated_at", "2016-01-08 13:24:38.523235"], ["file_ext", "png"], ["mime_type", "image/png"]]
996
903
   (0.1ms) RELEASE SAVEPOINT active_record_2
997
904
   (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", "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"]]
905
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2016-01-08 13:24:38.525306"], ["updated_at", "2016-01-08 13:24:38.525306"], ["file_ext", "png"], ["mime_type", "image/png"]]
999
906
   (0.1ms) RELEASE SAVEPOINT active_record_2
1000
907
   (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", "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"]]
908
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2016-01-08 13:24:38.527425"], ["updated_at", "2016-01-08 13:24:38.527425"], ["file_ext", "png"], ["mime_type", "image/png"]]
1002
909
   (0.1ms) RELEASE SAVEPOINT active_record_2
1003
910
   (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", "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"]]
911
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.529462"], ["updated_at", "2016-01-08 13:24:38.529462"], ["file_ext", "png"], ["mime_type", "image/png"]]
1005
912
   (0.1ms) RELEASE SAVEPOINT active_record_2
1006
913
   (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", "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"]]
914
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.531518"], ["updated_at", "2016-01-08 13:24:38.531518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1008
915
   (0.1ms) RELEASE SAVEPOINT active_record_2
1009
916
   (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", "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"]]
917
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.533503"], ["updated_at", "2016-01-08 13:24:38.533503"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1011
918
   (0.1ms) RELEASE SAVEPOINT active_record_2
1012
919
   (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", "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"]]
920
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2016-01-08 13:24:38.535590"], ["updated_at", "2016-01-08 13:24:38.535590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1014
921
   (0.1ms) RELEASE SAVEPOINT active_record_2
1015
922
   (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", "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"]]
923
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2016-01-08 13:24:38.537631"], ["updated_at", "2016-01-08 13:24:38.537631"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1017
924
   (0.1ms) RELEASE SAVEPOINT active_record_2
1018
925
   (0.1ms) SAVEPOINT active_record_2
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"]]
926
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.539583"], ["updated_at", "2016-01-08 13:24:38.539583"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1020
927
   (0.1ms) RELEASE SAVEPOINT active_record_2
1021
928
   (0.1ms) SAVEPOINT active_record_2
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"]]
929
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.541728"], ["updated_at", "2016-01-08 13:24:38.541728"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1023
930
   (0.1ms) RELEASE SAVEPOINT active_record_2
1024
931
   (0.1ms) SAVEPOINT active_record_2
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"]]
932
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.543850"], ["updated_at", "2016-01-08 13:24:38.543850"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1026
933
   (0.1ms) RELEASE SAVEPOINT active_record_2
1027
934
   (0.1ms) SAVEPOINT active_record_2
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"]]
935
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.545798"], ["updated_at", "2016-01-08 13:24:38.545798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1029
936
   (0.1ms) RELEASE SAVEPOINT active_record_2
1030
937
   (0.1ms) SAVEPOINT active_record_2
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"]]
938
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.547756"], ["updated_at", "2016-01-08 13:24:38.547756"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1032
939
   (0.1ms) RELEASE SAVEPOINT active_record_2
1033
940
   (0.1ms) SAVEPOINT active_record_2
1034
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
941
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.549659"], ["updated_at", "2016-01-08 13:24:38.549659"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1035
942
   (0.1ms) RELEASE SAVEPOINT active_record_2
1036
943
   (0.1ms) SAVEPOINT active_record_2
1037
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "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"]]
944
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.551713"], ["updated_at", "2016-01-08 13:24:38.551713"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1038
945
   (0.1ms) RELEASE SAVEPOINT active_record_2
1039
946
   (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"]]
947
+ 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", "151"], ["created_at", "2016-01-08 13:24:38.554045"], ["updated_at", "2016-01-08 13:24:38.554045"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1041
948
   (0.1ms) RELEASE SAVEPOINT active_record_2
949
+  (0.1ms) SAVEPOINT active_record_2
950
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2016-01-08 13:24:38.556329"], ["updated_at", "2016-01-08 13:24:38.556329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
951
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1042
952
  Processing by PushType::WysiwygMediaController#index as JSON
1043
- Parameters: {"filter"=>"file", "page"=>2}
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
953
+ Parameters: {"filter"=>"file"}
954
+ 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
955
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
956
+ Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
957
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
958
+  (0.1ms) ROLLBACK
959
+  (0.1ms) BEGIN
960
+ --------------------------------------------------------------------------------------
961
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
962
+ --------------------------------------------------------------------------------------
963
+  (0.1ms) SAVEPOINT active_record_1
964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
965
+  (0.1ms) SAVEPOINT active_record_1
966
+  (0.1ms) SAVEPOINT active_record_2
967
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2016-01-08 13:24:38.572348"], ["updated_at", "2016-01-08 13:24:38.572348"], ["file_ext", "png"], ["mime_type", "image/png"]]
968
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1056
969
   (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
970
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2016-01-08 13:24:38.574438"], ["updated_at", "2016-01-08 13:24:38.574438"], ["file_ext", "png"], ["mime_type", "image/png"]]
971
+  (0.1ms) RELEASE SAVEPOINT active_record_2
972
+  (0.1ms) SAVEPOINT active_record_2
973
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2016-01-08 13:24:38.576595"], ["updated_at", "2016-01-08 13:24:38.576595"], ["file_ext", "png"], ["mime_type", "image/png"]]
1073
974
   (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
975
   (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
976
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2016-01-08 13:24:38.578667"], ["updated_at", "2016-01-08 13:24:38.578667"], ["file_ext", "png"], ["mime_type", "image/png"]]
977
+  (0.1ms) RELEASE SAVEPOINT active_record_2
978
+  (0.1ms) SAVEPOINT active_record_2
979
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.580600"], ["updated_at", "2016-01-08 13:24:38.580600"], ["file_ext", "png"], ["mime_type", "image/png"]]
1100
980
   (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
981
   (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
982
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.621477"], ["updated_at", "2016-01-08 13:24:38.621477"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_2
984
+  (0.1ms) SAVEPOINT active_record_2
985
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.623802"], ["updated_at", "2016-01-08 13:24:38.623802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1127
986
   (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
987
   (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
988
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2016-01-08 13:24:38.626252"], ["updated_at", "2016-01-08 13:24:38.626252"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
989
+  (0.1ms) RELEASE SAVEPOINT active_record_2
990
+  (0.1ms) SAVEPOINT active_record_2
991
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2016-01-08 13:24:38.628445"], ["updated_at", "2016-01-08 13:24:38.628445"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
992
   (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
993
   (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
994
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2016-01-08 13:24:38.631157"], ["updated_at", "2016-01-08 13:24:38.631157"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
995
+  (0.1ms) RELEASE SAVEPOINT active_record_2
996
+  (0.1ms) SAVEPOINT active_record_2
997
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2016-01-08 13:24:38.633813"], ["updated_at", "2016-01-08 13:24:38.633813"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
998
+  (0.1ms) RELEASE SAVEPOINT active_record_2
999
+  (0.1ms) SAVEPOINT active_record_2
1000
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.636080"], ["updated_at", "2016-01-08 13:24:38.636080"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1002
+  (0.1ms) SAVEPOINT active_record_2
1003
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.638218"], ["updated_at", "2016-01-08 13:24:38.638218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1181
1004
   (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
1005
   (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"]]
1006
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.640286"], ["updated_at", "2016-01-08 13:24:38.640286"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1195
1007
   (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
1008
   (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"]]
1009
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.642535"], ["updated_at", "2016-01-08 13:24:38.642535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
1010
   (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
1011
   (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"]]
1012
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.644978"], ["updated_at", "2016-01-08 13:24:38.644978"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1225
1013
   (0.1ms) RELEASE SAVEPOINT active_record_2
1226
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1014
+  (0.1ms) SAVEPOINT active_record_2
1015
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2016-01-08 13:24:38.647278"], ["updated_at", "2016-01-08 13:24:38.647278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1016
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1017
+  (0.1ms) SAVEPOINT active_record_2
1018
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2016-01-08 13:24:38.649458"], ["updated_at", "2016-01-08 13:24:38.649458"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1020
+ Processing by PushType::WysiwygMediaController#index as JSON
1021
+ Parameters: {"filter"=>"file", "page"=>2}
1022
+ 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
1023
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1024
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1227
1025
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1228
1026
   (0.1ms) ROLLBACK
1229
1027
   (0.1ms) BEGIN
1230
- ------------------------------------------------------------------------------------------
1231
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1232
- ------------------------------------------------------------------------------------------
1233
-  (0.1ms) SAVEPOINT active_record_1
1028
+ --------------------------------------------------------------------------------------
1029
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
1030
+ --------------------------------------------------------------------------------------
1031
+  (0.0ms) SAVEPOINT active_record_1
1234
1032
   (0.0ms) RELEASE SAVEPOINT active_record_1
1235
1033
   (0.0ms) SAVEPOINT active_record_1
1236
1034
   (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-08 15:08:44.511475"], ["updated_at", "2015-11-08 15:08:44.511475"], ["file_ext", "png"], ["mime_type", "image/png"]]
1035
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2016-01-08 13:24:38.657859"], ["updated_at", "2016-01-08 13:24:38.657859"], ["file_ext", "png"], ["mime_type", "image/png"]]
1238
1036
   (0.1ms) RELEASE SAVEPOINT active_record_2
1239
1037
   (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-08 15:08:44.513583"], ["updated_at", "2015-11-08 15:08:44.513583"], ["file_ext", "png"], ["mime_type", "image/png"]]
1038
+ 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", "172"], ["created_at", "2016-01-08 13:24:38.660338"], ["updated_at", "2016-01-08 13:24:38.660338"], ["file_ext", "png"], ["mime_type", "image/png"]]
1241
1039
   (0.1ms) RELEASE SAVEPOINT active_record_2
1242
1040
   (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-08 15:08:44.515738"], ["updated_at", "2015-11-08 15:08:44.515738"], ["file_ext", "png"], ["mime_type", "image/png"]]
1041
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2016-01-08 13:24:38.662549"], ["updated_at", "2016-01-08 13:24:38.662549"], ["file_ext", "png"], ["mime_type", "image/png"]]
1244
1042
   (0.1ms) RELEASE SAVEPOINT active_record_2
1245
1043
   (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-08 15:08:44.517768"], ["updated_at", "2015-11-08 15:08:44.517768"], ["file_ext", "png"], ["mime_type", "image/png"]]
1044
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2016-01-08 13:24:38.665012"], ["updated_at", "2016-01-08 13:24:38.665012"], ["file_ext", "png"], ["mime_type", "image/png"]]
1247
1045
   (0.1ms) RELEASE SAVEPOINT active_record_2
1248
1046
   (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-08 15:08:44.519751"], ["updated_at", "2015-11-08 15:08:44.519751"], ["file_ext", "png"], ["mime_type", "image/png"]]
1047
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.668726"], ["updated_at", "2016-01-08 13:24:38.668726"], ["file_ext", "png"], ["mime_type", "image/png"]]
1250
1048
   (0.1ms) RELEASE SAVEPOINT active_record_2
1251
1049
   (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-08 15:08:44.521746"], ["updated_at", "2015-11-08 15:08:44.521746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1050
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.671202"], ["updated_at", "2016-01-08 13:24:38.671202"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1253
1051
   (0.1ms) RELEASE SAVEPOINT active_record_2
1254
1052
   (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-08 15:08:44.523809"], ["updated_at", "2015-11-08 15:08:44.523809"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1053
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.673707"], ["updated_at", "2016-01-08 13:24:38.673707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1256
1054
   (0.1ms) RELEASE SAVEPOINT active_record_2
1257
1055
   (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-08 15:08:44.525827"], ["updated_at", "2015-11-08 15:08:44.525827"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1056
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2016-01-08 13:24:38.676154"], ["updated_at", "2016-01-08 13:24:38.676154"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1259
1057
   (0.1ms) RELEASE SAVEPOINT active_record_2
1260
1058
   (0.1ms) SAVEPOINT active_record_2
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"]]
1059
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2016-01-08 13:24:38.678819"], ["updated_at", "2016-01-08 13:24:38.678819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1262
1060
   (0.1ms) RELEASE SAVEPOINT active_record_2
1263
1061
   (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-08 15:08:44.567180"], ["updated_at", "2015-11-08 15:08:44.567180"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1062
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.681324"], ["updated_at", "2016-01-08 13:24:38.681324"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1265
1063
   (0.1ms) RELEASE SAVEPOINT active_record_2
1266
1064
   (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-08 15:08:44.569450"], ["updated_at", "2015-11-08 15:08:44.569450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1065
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.683586"], ["updated_at", "2016-01-08 13:24:38.683586"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1268
1066
   (0.1ms) RELEASE SAVEPOINT active_record_2
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-08 15:08:44.571523"], ["updated_at", "2015-11-08 15:08:44.571523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
+  (0.2ms) SAVEPOINT active_record_2
1068
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.685914"], ["updated_at", "2016-01-08 13:24:38.685914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1271
1069
   (0.1ms) RELEASE SAVEPOINT active_record_2
1272
1070
   (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-08 15:08:44.574168"], ["updated_at", "2015-11-08 15:08:44.574168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1071
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.689026"], ["updated_at", "2016-01-08 13:24:38.689026"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1274
1072
   (0.1ms) RELEASE SAVEPOINT active_record_2
1275
1073
   (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-08 15:08:44.576535"], ["updated_at", "2015-11-08 15:08:44.576535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1074
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.691519"], ["updated_at", "2016-01-08 13:24:38.691519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1277
1075
   (0.1ms) RELEASE SAVEPOINT active_record_2
1278
1076
   (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-08 15:08:44.578675"], ["updated_at", "2015-11-08 15:08:44.578675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1077
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.693886"], ["updated_at", "2016-01-08 13:24:38.693886"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1280
1078
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1079
   (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-08 15:08:44.580739"], ["updated_at", "2015-11-08 15:08:44.580739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1080
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2016-01-08 13:24:38.696030"], ["updated_at", "2016-01-08 13:24:38.696030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1283
1081
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1082
   (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-08 15:08:44.583007"], ["updated_at", "2015-11-08 15:08:44.583007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1083
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2016-01-08 13:24:38.698017"], ["updated_at", "2016-01-08 13:24:38.698017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1286
1084
   (0.1ms) RELEASE SAVEPOINT active_record_2
1287
1085
   (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-08 15:08:44.585434"], ["updated_at", "2015-11-08 15:08:44.585434"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1086
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2016-01-08 13:24:38.700323"], ["updated_at", "2016-01-08 13:24:38.700323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1289
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
1290
1088
  Processing by PushType::WysiwygMediaController#index as JSON
1291
- Parameters: {"filter"=>"file"}
1292
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1089
+ Parameters: {"filter"=>"file", "page"=>2}
1090
+ 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
1293
1091
   (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 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1092
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1295
1093
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
1094
   (0.1ms) ROLLBACK
1297
1095
   (0.1ms) BEGIN
1298
- ------------------------------------------------------------------------------------------
1299
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1300
- ------------------------------------------------------------------------------------------
1301
-  (0.1ms) SAVEPOINT active_record_1
1302
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1096
+ --------------------------------------------------------------------------------------
1097
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
1098
+ --------------------------------------------------------------------------------------
1303
1099
   (0.0ms) SAVEPOINT active_record_1
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+  (0.1ms) SAVEPOINT active_record_1
1304
1102
   (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-08 15:08:44.602186"], ["updated_at", "2015-11-08 15:08:44.602186"], ["file_ext", "png"], ["mime_type", "image/png"]]
1103
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2016-01-08 13:24:38.707772"], ["updated_at", "2016-01-08 13:24:38.707772"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
1104
   (0.1ms) RELEASE SAVEPOINT active_record_2
1307
1105
   (0.1ms) SAVEPOINT active_record_2
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"]]
1106
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2016-01-08 13:24:38.710032"], ["updated_at", "2016-01-08 13:24:38.710032"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
1107
   (0.1ms) RELEASE SAVEPOINT active_record_2
1310
1108
   (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-08 15:08:44.606342"], ["updated_at", "2015-11-08 15:08:44.606342"], ["file_ext", "png"], ["mime_type", "image/png"]]
1109
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2016-01-08 13:24:38.712308"], ["updated_at", "2016-01-08 13:24:38.712308"], ["file_ext", "png"], ["mime_type", "image/png"]]
1312
1110
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
1111
   (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-08 15:08:44.608391"], ["updated_at", "2015-11-08 15:08:44.608391"], ["file_ext", "png"], ["mime_type", "image/png"]]
1112
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2016-01-08 13:24:38.714382"], ["updated_at", "2016-01-08 13:24:38.714382"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
1113
   (0.1ms) RELEASE SAVEPOINT active_record_2
1316
1114
   (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-08 15:08:44.610466"], ["updated_at", "2015-11-08 15:08:44.610466"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2016-01-08 13:24:38.716492"], ["updated_at", "2016-01-08 13:24:38.716492"], ["file_ext", "png"], ["mime_type", "image/png"]]
1318
1116
   (0.1ms) RELEASE SAVEPOINT active_record_2
1319
1117
   (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-08 15:08:44.612776"], ["updated_at", "2015-11-08 15:08:44.612776"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1118
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2016-01-08 13:24:38.718792"], ["updated_at", "2016-01-08 13:24:38.718792"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1321
1119
   (0.1ms) RELEASE SAVEPOINT active_record_2
1322
1120
   (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-08 15:08:44.615085"], ["updated_at", "2015-11-08 15:08:44.615085"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1121
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2016-01-08 13:24:38.720993"], ["updated_at", "2016-01-08 13:24:38.720993"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1324
1122
   (0.1ms) RELEASE SAVEPOINT active_record_2
1325
1123
   (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-08 15:08:44.617211"], ["updated_at", "2015-11-08 15:08:44.617211"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1124
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2016-01-08 13:24:38.723249"], ["updated_at", "2016-01-08 13:24:38.723249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1327
1125
   (0.1ms) RELEASE SAVEPOINT active_record_2
1328
1126
   (0.1ms) SAVEPOINT active_record_2
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"]]
1127
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2016-01-08 13:24:38.725325"], ["updated_at", "2016-01-08 13:24:38.725325"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1330
1128
   (0.1ms) RELEASE SAVEPOINT active_record_2
1331
1129
   (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-08 15:08:44.621557"], ["updated_at", "2015-11-08 15:08:44.621557"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2016-01-08 13:24:38.727448"], ["updated_at", "2016-01-08 13:24:38.727448"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1333
1131
   (0.1ms) RELEASE SAVEPOINT active_record_2
1334
1132
   (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-08 15:08:44.623597"], ["updated_at", "2015-11-08 15:08:44.623597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2016-01-08 13:24:38.729810"], ["updated_at", "2016-01-08 13:24:38.729810"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1336
1134
   (0.1ms) RELEASE SAVEPOINT active_record_2
1337
1135
   (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-08 15:08:44.625766"], ["updated_at", "2015-11-08 15:08:44.625766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2016-01-08 13:24:38.731899"], ["updated_at", "2016-01-08 13:24:38.731899"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1339
1137
   (0.1ms) RELEASE SAVEPOINT active_record_2
1340
1138
   (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-08 15:08:44.628263"], ["updated_at", "2015-11-08 15:08:44.628263"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1139
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2016-01-08 13:24:38.735116"], ["updated_at", "2016-01-08 13:24:38.735116"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1342
1140
   (0.1ms) RELEASE SAVEPOINT active_record_2
1343
1141
   (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-08 15:08:44.630469"], ["updated_at", "2015-11-08 15:08:44.630469"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1142
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2016-01-08 13:24:38.737190"], ["updated_at", "2016-01-08 13:24:38.737190"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1345
1143
   (0.1ms) RELEASE SAVEPOINT active_record_2
1346
1144
   (0.1ms) SAVEPOINT active_record_2
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"]]
1145
+ 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", "203"], ["created_at", "2016-01-08 13:24:38.739202"], ["updated_at", "2016-01-08 13:24:38.739202"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1348
1146
   (0.1ms) RELEASE SAVEPOINT active_record_2
1349
1147
   (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-08 15:08:44.635665"], ["updated_at", "2015-11-08 15:08:44.635665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1148
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2016-01-08 13:24:38.741645"], ["updated_at", "2016-01-08 13:24:38.741645"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1351
1149
   (0.1ms) RELEASE SAVEPOINT active_record_2
1352
1150
   (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-08 15:08:44.638178"], ["updated_at", "2015-11-08 15:08:44.638178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2016-01-08 13:24:38.744105"], ["updated_at", "2016-01-08 13:24:38.744105"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1354
1152
   (0.1ms) RELEASE SAVEPOINT active_record_2
1355
1153
   (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-08 15:08:44.640715"], ["updated_at", "2015-11-08 15:08:44.640715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2016-01-08 13:24:38.746367"], ["updated_at", "2016-01-08 13:24:38.746367"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1357
1155
   (0.1ms) RELEASE SAVEPOINT active_record_2
1358
1156
  Processing by PushType::WysiwygMediaController#index as JSON
1359
- Parameters: {"filter"=>"file"}
1360
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1361
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1362
- Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1157
+ Parameters: {"filter"=>"file", "page"=>2}
1158
+ 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
1159
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1160
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1363
1161
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1364
1162
   (0.1ms) ROLLBACK
1365
1163
   (0.1ms) BEGIN
1366
- ------------------------------------------------------------------------------------------
1367
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1368
- ------------------------------------------------------------------------------------------
1369
-  (0.0ms) SAVEPOINT active_record_1
1164
+ --------------------------------------------------------------------------------------
1165
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
1166
+ --------------------------------------------------------------------------------------
1167
+  (0.1ms) SAVEPOINT active_record_1
1370
1168
   (0.0ms) RELEASE SAVEPOINT active_record_1
1371
1169
   (0.0ms) SAVEPOINT active_record_1
1372
1170
   (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-08 15:08:44.657165"], ["updated_at", "2015-11-08 15:08:44.657165"], ["file_ext", "png"], ["mime_type", "image/png"]]
1171
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "207"], ["created_at", "2016-01-08 13:24:38.753647"], ["updated_at", "2016-01-08 13:24:38.753647"], ["file_ext", "png"], ["mime_type", "image/png"]]
1374
1172
   (0.1ms) RELEASE SAVEPOINT active_record_2
1375
1173
   (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-08 15:08:44.659452"], ["updated_at", "2015-11-08 15:08:44.659452"], ["file_ext", "png"], ["mime_type", "image/png"]]
1174
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "208"], ["created_at", "2016-01-08 13:24:38.756159"], ["updated_at", "2016-01-08 13:24:38.756159"], ["file_ext", "png"], ["mime_type", "image/png"]]
1377
1175
   (0.1ms) RELEASE SAVEPOINT active_record_2
1378
1176
   (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-08 15:08:44.661461"], ["updated_at", "2015-11-08 15:08:44.661461"], ["file_ext", "png"], ["mime_type", "image/png"]]
1177
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "209"], ["created_at", "2016-01-08 13:24:38.758360"], ["updated_at", "2016-01-08 13:24:38.758360"], ["file_ext", "png"], ["mime_type", "image/png"]]
1380
1178
   (0.1ms) RELEASE SAVEPOINT active_record_2
1381
1179
   (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-08 15:08:44.663498"], ["updated_at", "2015-11-08 15:08:44.663498"], ["file_ext", "png"], ["mime_type", "image/png"]]
1180
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "210"], ["created_at", "2016-01-08 13:24:38.760611"], ["updated_at", "2016-01-08 13:24:38.760611"], ["file_ext", "png"], ["mime_type", "image/png"]]
1383
1181
   (0.1ms) RELEASE SAVEPOINT active_record_2
1384
1182
   (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-08 15:08:44.665520"], ["updated_at", "2015-11-08 15:08:44.665520"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2016-01-08 13:24:38.763735"], ["updated_at", "2016-01-08 13:24:38.763735"], ["file_ext", "png"], ["mime_type", "image/png"]]
1386
1184
   (0.1ms) RELEASE SAVEPOINT active_record_2
1387
1185
   (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-08 15:08:44.667797"], ["updated_at", "2015-11-08 15:08:44.667797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1186
+ 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", "212"], ["created_at", "2016-01-08 13:24:38.766054"], ["updated_at", "2016-01-08 13:24:38.766054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1389
1187
   (0.1ms) RELEASE SAVEPOINT active_record_2
1390
1188
   (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-08 15:08:44.669947"], ["updated_at", "2015-11-08 15:08:44.669947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1189
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2016-01-08 13:24:38.768510"], ["updated_at", "2016-01-08 13:24:38.768510"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1392
1190
   (0.1ms) RELEASE SAVEPOINT active_record_2
1393
1191
   (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-08 15:08:44.672116"], ["updated_at", "2015-11-08 15:08:44.672116"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1192
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2016-01-08 13:24:38.770700"], ["updated_at", "2016-01-08 13:24:38.770700"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1395
1193
   (0.1ms) RELEASE SAVEPOINT active_record_2
1396
1194
   (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-08 15:08:44.674179"], ["updated_at", "2015-11-08 15:08:44.674179"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1195
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2016-01-08 13:24:38.772861"], ["updated_at", "2016-01-08 13:24:38.772861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1398
1196
   (0.1ms) RELEASE SAVEPOINT active_record_2
1399
1197
   (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-08 15:08:44.676243"], ["updated_at", "2015-11-08 15:08:44.676243"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2016-01-08 13:24:38.774964"], ["updated_at", "2016-01-08 13:24:38.774964"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1401
1199
   (0.1ms) RELEASE SAVEPOINT active_record_2
1402
1200
   (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-08 15:08:44.678420"], ["updated_at", "2015-11-08 15:08:44.678420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1201
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2016-01-08 13:24:38.777278"], ["updated_at", "2016-01-08 13:24:38.777278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1404
1202
   (0.1ms) RELEASE SAVEPOINT active_record_2
1405
1203
   (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-08 15:08:44.680539"], ["updated_at", "2015-11-08 15:08:44.680539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2016-01-08 13:24:38.780613"], ["updated_at", "2016-01-08 13:24:38.780613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1407
1205
   (0.1ms) RELEASE SAVEPOINT active_record_2
1408
1206
   (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-08 15:08:44.682593"], ["updated_at", "2015-11-08 15:08:44.682593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2016-01-08 13:24:38.782923"], ["updated_at", "2016-01-08 13:24:38.782923"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1410
1208
   (0.1ms) RELEASE SAVEPOINT active_record_2
1411
1209
   (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-08 15:08:44.684910"], ["updated_at", "2015-11-08 15:08:44.684910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2016-01-08 13:24:38.785032"], ["updated_at", "2016-01-08 13:24:38.785032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1413
1211
   (0.1ms) RELEASE SAVEPOINT active_record_2
1414
1212
   (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-08 15:08:44.687129"], ["updated_at", "2015-11-08 15:08:44.687129"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1213
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2016-01-08 13:24:38.787432"], ["updated_at", "2016-01-08 13:24:38.787432"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1416
1214
   (0.1ms) RELEASE SAVEPOINT active_record_2
1417
1215
   (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-08 15:08:44.689393"], ["updated_at", "2015-11-08 15:08:44.689393"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2016-01-08 13:24:38.789876"], ["updated_at", "2016-01-08 13:24:38.789876"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1419
1217
   (0.1ms) RELEASE SAVEPOINT active_record_2
1420
1218
   (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-08 15:08:44.691765"], ["updated_at", "2015-11-08 15:08:44.691765"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1219
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2016-01-08 13:24:38.792205"], ["updated_at", "2016-01-08 13:24:38.792205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1422
1220
   (0.1ms) RELEASE SAVEPOINT active_record_2
1423
1221
   (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-08 15:08:44.693888"], ["updated_at", "2015-11-08 15:08:44.693888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1222
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2016-01-08 13:24:38.795037"], ["updated_at", "2016-01-08 13:24:38.795037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1425
1223
   (0.1ms) RELEASE SAVEPOINT active_record_2
1426
1224
  Processing by PushType::WysiwygMediaController#index as JSON
1427
- Parameters: {"filter"=>"file"}
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)
1225
+ Parameters: {"filter"=>"file", "page"=>2}
1226
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1227
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1228
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
1431
1229
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1432
1230
   (0.1ms) ROLLBACK
1433
1231
   (0.1ms) BEGIN
1434
- ------------------------------------------------------------------------------------------
1435
- PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1436
- ------------------------------------------------------------------------------------------
1232
+ ---------------------------------------------------------------------------
1233
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
1234
+ ---------------------------------------------------------------------------
1235
+  (0.1ms) SAVEPOINT active_record_1
1236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1437
1237
   (0.0ms) SAVEPOINT active_record_1
1238
+  (0.1ms) SAVEPOINT active_record_2
1239
+ 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", "225"], ["created_at", "2016-01-08 13:24:38.804862"], ["updated_at", "2016-01-08 13:24:38.804862"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1241
+  (0.1ms) SAVEPOINT active_record_2
1242
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "226"], ["created_at", "2016-01-08 13:24:38.807451"], ["updated_at", "2016-01-08 13:24:38.807451"], ["file_ext", "png"], ["mime_type", "image/png"]]
1243
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1244
+  (0.1ms) SAVEPOINT active_record_2
1245
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "227"], ["created_at", "2016-01-08 13:24:38.809918"], ["updated_at", "2016-01-08 13:24:38.809918"], ["file_ext", "png"], ["mime_type", "image/png"]]
1246
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1247
+  (0.1ms) SAVEPOINT active_record_2
1248
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "228"], ["created_at", "2016-01-08 13:24:38.813262"], ["updated_at", "2016-01-08 13:24:38.813262"], ["file_ext", "png"], ["mime_type", "image/png"]]
1249
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1250
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1251
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1252
+  (0.1ms) ROLLBACK
1253
+  (0.1ms) BEGIN
1254
+ ---------------------------------------------------------------------------
1255
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
1256
+ ---------------------------------------------------------------------------
1257
+  (0.1ms) SAVEPOINT active_record_1
1258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
+  (0.0ms) SAVEPOINT active_record_1
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", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2016-01-08 13:24:38.818440"], ["updated_at", "2016-01-08 13:24:38.818440"], ["file_ext", "png"], ["mime_type", "image/png"]]
1262
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2016-01-08 13:24:38.820566"], ["updated_at", "2016-01-08 13:24:38.820566"], ["file_ext", "png"], ["mime_type", "image/png"]]
1265
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2016-01-08 13:24:38.822739"], ["updated_at", "2016-01-08 13:24:38.822739"], ["file_ext", "png"], ["mime_type", "image/png"]]
1268
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2016-01-08 13:24:38.825241"], ["updated_at", "2016-01-08 13:24:38.825241"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1272
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1273
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1274
+  (0.1ms) ROLLBACK
1275
+  (0.1ms) BEGIN
1276
+ ---------------------------------------------------------------------------
1277
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
1278
+ ---------------------------------------------------------------------------
1279
+  (0.1ms) SAVEPOINT active_record_1
1438
1280
   (0.1ms) RELEASE SAVEPOINT active_record_1
1281
+  (0.1ms) SAVEPOINT active_record_1
1282
+  (0.1ms) SAVEPOINT active_record_2
1283
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.830900"], ["updated_at", "2016-01-08 13:24:38.830900"], ["file_ext", "png"], ["mime_type", "image/png"]]
1284
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1285
+  (0.1ms) SAVEPOINT active_record_2
1286
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.833282"], ["updated_at", "2016-01-08 13:24:38.833282"], ["file_ext", "png"], ["mime_type", "image/png"]]
1287
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1288
+  (0.1ms) SAVEPOINT active_record_2
1289
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.835763"], ["updated_at", "2016-01-08 13:24:38.835763"], ["file_ext", "png"], ["mime_type", "image/png"]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1291
+  (0.1ms) SAVEPOINT active_record_2
1292
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.838199"], ["updated_at", "2016-01-08 13:24:38.838199"], ["file_ext", "png"], ["mime_type", "image/png"]]
1293
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1294
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1295
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
+  (0.1ms) ROLLBACK
1297
+  (0.1ms) BEGIN
1298
+ ---------------------------------------------------------------------------
1299
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
1300
+ ---------------------------------------------------------------------------
1301
+  (0.1ms) SAVEPOINT active_record_1
1302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1303
+  (0.0ms) SAVEPOINT active_record_1
1304
+  (0.1ms) SAVEPOINT active_record_2
1305
+ 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", "237"], ["created_at", "2016-01-08 13:24:38.842846"], ["updated_at", "2016-01-08 13:24:38.842846"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "238"], ["created_at", "2016-01-08 13:24:38.846451"], ["updated_at", "2016-01-08 13:24:38.846451"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "239"], ["created_at", "2016-01-08 13:24:38.849320"], ["updated_at", "2016-01-08 13:24:38.849320"], ["file_ext", "png"], ["mime_type", "image/png"]]
1312
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "240"], ["created_at", "2016-01-08 13:24:38.851556"], ["updated_at", "2016-01-08 13:24:38.851556"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1316
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1317
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1318
+  (0.1ms) ROLLBACK
1319
+  (0.1ms) BEGIN
1320
+ ---------------------------------------------------------------------------
1321
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
1322
+ ---------------------------------------------------------------------------
1323
+  (0.0ms) SAVEPOINT active_record_1
1324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1439
1325
   (0.0ms) SAVEPOINT active_record_1
1440
1326
   (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-08 15:08:44.710667"], ["updated_at", "2015-11-08 15:08:44.710667"], ["file_ext", "png"], ["mime_type", "image/png"]]
1327
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2016-01-08 13:24:38.856245"], ["updated_at", "2016-01-08 13:24:38.856245"], ["file_ext", "png"], ["mime_type", "image/png"]]
1328
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1329
+  (0.1ms) SAVEPOINT active_record_2
1330
+ 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", "242"], ["created_at", "2016-01-08 13:24:38.858853"], ["updated_at", "2016-01-08 13:24:38.858853"], ["file_ext", "png"], ["mime_type", "image/png"]]
1331
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1332
+  (0.1ms) SAVEPOINT active_record_2
1333
+ 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", "243"], ["created_at", "2016-01-08 13:24:38.861764"], ["updated_at", "2016-01-08 13:24:38.861764"], ["file_ext", "png"], ["mime_type", "image/png"]]
1334
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1335
+  (0.1ms) SAVEPOINT active_record_2
1336
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2016-01-08 13:24:38.864772"], ["updated_at", "2016-01-08 13:24:38.864772"], ["file_ext", "png"], ["mime_type", "image/png"]]
1337
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1338
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1339
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1340
+  (0.1ms) ROLLBACK
1341
+  (0.1ms) BEGIN
1342
+ ---------------------------------------------------------------------------
1343
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
1344
+ ---------------------------------------------------------------------------
1345
+  (0.1ms) SAVEPOINT active_record_1
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.1ms) SAVEPOINT active_record_1
1348
+  (0.1ms) SAVEPOINT active_record_2
1349
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2016-01-08 13:24:38.871757"], ["updated_at", "2016-01-08 13:24:38.871757"], ["file_ext", "png"], ["mime_type", "image/png"]]
1350
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1351
+  (0.1ms) SAVEPOINT active_record_2
1352
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2016-01-08 13:24:38.874170"], ["updated_at", "2016-01-08 13:24:38.874170"], ["file_ext", "png"], ["mime_type", "image/png"]]
1353
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1354
+  (0.1ms) SAVEPOINT active_record_2
1355
+ 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", "247"], ["created_at", "2016-01-08 13:24:38.877024"], ["updated_at", "2016-01-08 13:24:38.877024"], ["file_ext", "png"], ["mime_type", "image/png"]]
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1357
+  (0.1ms) SAVEPOINT active_record_2
1358
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2016-01-08 13:24:38.880725"], ["updated_at", "2016-01-08 13:24:38.880725"], ["file_ext", "png"], ["mime_type", "image/png"]]
1359
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1360
+ 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
1361
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1362
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1363
+  (0.1ms) ROLLBACK
1364
+  (0.1ms) BEGIN
1365
+ ---------------------------------------------------------------------------
1366
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
1367
+ ---------------------------------------------------------------------------
1368
+  (0.0ms) SAVEPOINT active_record_1
1369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1370
+  (0.0ms) SAVEPOINT active_record_1
1371
+  (0.1ms) SAVEPOINT active_record_2
1372
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2016-01-08 13:24:38.887194"], ["updated_at", "2016-01-08 13:24:38.887194"], ["file_ext", "png"], ["mime_type", "image/png"]]
1373
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1374
+  (0.1ms) SAVEPOINT active_record_2
1375
+ 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", "250"], ["created_at", "2016-01-08 13:24:38.889679"], ["updated_at", "2016-01-08 13:24:38.889679"], ["file_ext", "png"], ["mime_type", "image/png"]]
1442
1376
   (0.1ms) RELEASE SAVEPOINT active_record_2
1443
1377
   (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-08 15:08:44.713159"], ["updated_at", "2015-11-08 15:08:44.713159"], ["file_ext", "png"], ["mime_type", "image/png"]]
1378
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2016-01-08 13:24:38.892272"], ["updated_at", "2016-01-08 13:24:38.892272"], ["file_ext", "png"], ["mime_type", "image/png"]]
1445
1379
   (0.1ms) RELEASE SAVEPOINT active_record_2
1446
1380
   (0.1ms) SAVEPOINT active_record_2
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"]]
1381
+ 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", "2016-01-08 13:24:38.895502"], ["updated_at", "2016-01-08 13:24:38.895502"], ["file_ext", "png"], ["mime_type", "image/png"]]
1448
1382
   (0.1ms) RELEASE SAVEPOINT active_record_2
1383
+ 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
1384
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1385
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1386
+  (0.1ms) ROLLBACK
1387
+  (0.1ms) BEGIN
1388
+ ---------------------------------------------------------------------------
1389
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
1390
+ ---------------------------------------------------------------------------
1391
+  (0.0ms) SAVEPOINT active_record_1
1392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1393
+  (0.0ms) SAVEPOINT active_record_1
1449
1394
   (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-08 15:08:44.717966"], ["updated_at", "2015-11-08 15:08:44.717966"], ["file_ext", "png"], ["mime_type", "image/png"]]
1395
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.902551"], ["updated_at", "2016-01-08 13:24:38.902551"], ["file_ext", "png"], ["mime_type", "image/png"]]
1451
1396
   (0.1ms) RELEASE SAVEPOINT active_record_2
1452
1397
   (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-08 15:08:44.720190"], ["updated_at", "2015-11-08 15:08:44.720190"], ["file_ext", "png"], ["mime_type", "image/png"]]
1398
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2016-01-08 13:24:38.905078"], ["updated_at", "2016-01-08 13:24:38.905078"], ["file_ext", "png"], ["mime_type", "image/png"]]
1454
1399
   (0.1ms) RELEASE SAVEPOINT active_record_2
1455
1400
   (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-08 15:08:44.722518"], ["updated_at", "2015-11-08 15:08:44.722518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1401
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2016-01-08 13:24:38.907064"], ["updated_at", "2016-01-08 13:24:38.907064"], ["file_ext", "png"], ["mime_type", "image/png"]]
1457
1402
   (0.1ms) RELEASE SAVEPOINT active_record_2
1458
1403
   (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-08 15:08:44.724734"], ["updated_at", "2015-11-08 15:08:44.724734"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1404
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2016-01-08 13:24:38.908967"], ["updated_at", "2016-01-08 13:24:38.908967"], ["file_ext", "png"], ["mime_type", "image/png"]]
1460
1405
   (0.1ms) RELEASE SAVEPOINT active_record_2
1406
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1407
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1408
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1409
+  (0.1ms) ROLLBACK
1410
+  (0.1ms) BEGIN
1411
+ ---------------------------------------------------------------------------
1412
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
1413
+ ---------------------------------------------------------------------------
1414
+  (0.1ms) SAVEPOINT active_record_1
1415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1416
+  (0.1ms) SAVEPOINT active_record_1
1461
1417
   (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-08 15:08:44.726926"], ["updated_at", "2015-11-08 15:08:44.726926"], ["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", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2016-01-08 13:24:38.916066"], ["updated_at", "2016-01-08 13:24:38.916066"], ["file_ext", "png"], ["mime_type", "image/png"]]
1463
1419
   (0.1ms) RELEASE SAVEPOINT active_record_2
1464
1420
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2016-01-08 13:24:38.918229"], ["updated_at", "2016-01-08 13:24:38.918229"], ["file_ext", "png"], ["mime_type", "image/png"]]
1466
1422
   (0.1ms) RELEASE SAVEPOINT active_record_2
1467
1423
   (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-08 15:08:44.731893"], ["updated_at", "2015-11-08 15:08:44.731893"], ["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", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2016-01-08 13:24:38.920284"], ["updated_at", "2016-01-08 13:24:38.920284"], ["file_ext", "png"], ["mime_type", "image/png"]]
1469
1425
   (0.1ms) RELEASE SAVEPOINT active_record_2
1470
1426
   (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-08 15:08:44.734241"], ["updated_at", "2015-11-08 15:08:44.734241"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1427
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2016-01-08 13:24:38.922384"], ["updated_at", "2016-01-08 13:24:38.922384"], ["file_ext", "png"], ["mime_type", "image/png"]]
1472
1428
   (0.1ms) RELEASE SAVEPOINT active_record_2
1429
+ 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
1430
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1431
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1432
+  (0.1ms) ROLLBACK
1433
+  (0.1ms) BEGIN
1434
+ ---------------------------------------------------------------------------
1435
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
1436
+ ---------------------------------------------------------------------------
1437
+  (0.0ms) SAVEPOINT active_record_1
1438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1439
+  (0.1ms) SAVEPOINT active_record_1
1473
1440
   (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-08 15:08:44.736405"], ["updated_at", "2015-11-08 15:08:44.736405"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1441
+ 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", "261"], ["created_at", "2016-01-08 13:24:38.928765"], ["updated_at", "2016-01-08 13:24:38.928765"], ["file_ext", "png"], ["mime_type", "image/png"]]
1475
1442
   (0.1ms) RELEASE SAVEPOINT active_record_2
1476
1443
   (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-08 15:08:44.738671"], ["updated_at", "2015-11-08 15:08:44.738671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "262"], ["created_at", "2016-01-08 13:24:38.931594"], ["updated_at", "2016-01-08 13:24:38.931594"], ["file_ext", "png"], ["mime_type", "image/png"]]
1478
1445
   (0.1ms) RELEASE SAVEPOINT active_record_2
1479
1446
   (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-08 15:08:44.741028"], ["updated_at", "2015-11-08 15:08:44.741028"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1447
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2016-01-08 13:24:38.933628"], ["updated_at", "2016-01-08 13:24:38.933628"], ["file_ext", "png"], ["mime_type", "image/png"]]
1481
1448
   (0.1ms) RELEASE SAVEPOINT active_record_2
1482
1449
   (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-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
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", "264"], ["created_at", "2016-01-08 13:24:38.935982"], ["updated_at", "2016-01-08 13:24:38.935982"], ["file_ext", "png"], ["mime_type", "image/png"]]
1451
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1452
+ 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
1453
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1454
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1455
+  (0.1ms) ROLLBACK
1456
+  (0.1ms) BEGIN
1457
+ -----------------------------------------------------------------------------------------
1458
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
1459
+ -----------------------------------------------------------------------------------------
1460
+  (0.1ms) SAVEPOINT active_record_1
1461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1462
+  (0.1ms) SAVEPOINT active_record_1
1463
+ Processing by PushType::WysiwygMediaController#create as JSON
1464
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f979bfc80c0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20160108-6378-1xwrrlh>>}}
1485
1465
   (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-08 15:08:44.746033"], ["updated_at", "2015-11-08 15:08:44.746033"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1466
+ 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", "265"], ["created_at", "2016-01-08 13:24:38.944407"], ["updated_at", "2016-01-08 13:24:38.944407"], ["file_ext", "png"], ["mime_type", "image/png"]]
1487
1467
   (0.1ms) RELEASE SAVEPOINT active_record_2
1468
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1469
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1470
+  (0.1ms) ROLLBACK
1471
+  (0.1ms) BEGIN
1472
+ -----------------------------------------------------------------------------------------
1473
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
1474
+ -----------------------------------------------------------------------------------------
1475
+  (0.1ms) SAVEPOINT active_record_1
1476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
+  (0.0ms) SAVEPOINT active_record_1
1478
+ Processing by PushType::WysiwygMediaController#create as JSON
1479
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f97a3063ac8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20160108-6378-17miz1p>>}}
1488
1480
   (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-08 15:08:44.748232"], ["updated_at", "2015-11-08 15:08:44.748232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1481
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2016-01-08 13:24:38.951111"], ["updated_at", "2016-01-08 13:24:38.951111"], ["file_ext", "png"], ["mime_type", "image/png"]]
1490
1482
   (0.1ms) RELEASE SAVEPOINT active_record_2
1483
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1484
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1485
+  (0.1ms) ROLLBACK
1486
+  (0.1ms) BEGIN
1487
+ -----------------------------------------------------------------------------------------
1488
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
1489
+ -----------------------------------------------------------------------------------------
1490
+  (0.1ms) SAVEPOINT active_record_1
1491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1492
+  (0.0ms) SAVEPOINT active_record_1
1493
+ Processing by PushType::WysiwygMediaController#create as JSON
1494
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f97a307b538 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20160108-6378-1fe44c5>>}}
1491
1495
   (0.1ms) SAVEPOINT active_record_2
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"]]
1496
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2016-01-08 13:24:38.956523"], ["updated_at", "2016-01-08 13:24:38.956523"], ["file_ext", "png"], ["mime_type", "image/png"]]
1493
1497
   (0.1ms) RELEASE SAVEPOINT active_record_2
1494
- Processing by PushType::WysiwygMediaController#index as JSON
1495
- Parameters: {"filter"=>"file"}
1496
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1497
-  (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)
1498
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1499
1499
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1500
1500
   (0.1ms) ROLLBACK