push_type_wysiwyg 0.2.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +20 -0
  3. data/README.md +3 -0
  4. data/app/assets/javascripts/push_type/froala_overrides/file_upload.js +133 -0
  5. data/app/assets/javascripts/push_type/froala_overrides/froala_editor.js +34 -0
  6. data/app/assets/javascripts/push_type/froala_overrides/image_editor.js +215 -0
  7. data/app/assets/javascripts/push_type/froala_overrides/media_manager.js +184 -0
  8. data/app/assets/javascripts/push_type/media_styles.js.coffee.erb +5 -0
  9. data/app/assets/javascripts/push_type/wysiwyg.js.coffee +50 -0
  10. data/app/assets/stylesheets/push_type/froala_overrides.scss +77 -0
  11. data/app/assets/stylesheets/push_type/pt_theme.scss +373 -0
  12. data/app/assets/stylesheets/push_type/wysiwyg.scss +36 -0
  13. data/app/controllers/push_type/wysiwyg_media_controller.rb +43 -0
  14. data/app/fields/push_type/wysiwyg_field.rb +10 -0
  15. data/app/helpers/push_type/wysiwyg_media_helper.rb +34 -0
  16. data/config/routes.rb +3 -0
  17. data/lib/push_type/wysiwyg/engine.rb +16 -0
  18. data/lib/push_type/wysiwyg.rb +14 -0
  19. data/lib/push_type_wysiwyg.rb +2 -0
  20. data/lib/tasks/push_type_tasks.rake +4 -0
  21. data/test/controllers/push_type/wysiwyg_media_controller_test.rb +58 -0
  22. data/test/dummy/README.rdoc +28 -0
  23. data/test/dummy/Rakefile +6 -0
  24. data/test/dummy/app/assets/javascripts/application.js +16 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/test/dummy/app/controllers/application_controller.rb +5 -0
  27. data/test/dummy/app/helpers/application_helper.rb +2 -0
  28. data/test/dummy/app/models/page.rb +10 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/test/dummy/app/views/nodes/page.html.erb +3 -0
  31. data/test/dummy/bin/bundle +3 -0
  32. data/test/dummy/bin/rails +4 -0
  33. data/test/dummy/bin/rake +4 -0
  34. data/test/dummy/bin/setup +29 -0
  35. data/test/dummy/config/application.rb +14 -0
  36. data/test/dummy/config/boot.rb +4 -0
  37. data/test/dummy/config/database.yml +85 -0
  38. data/test/dummy/config/environment.rb +5 -0
  39. data/test/dummy/config/environments/development.rb +41 -0
  40. data/test/dummy/config/environments/production.rb +79 -0
  41. data/test/dummy/config/environments/test.rb +42 -0
  42. data/test/dummy/config/initializers/assets.rb +11 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  45. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/test/dummy/config/initializers/inflections.rb +16 -0
  47. data/test/dummy/config/initializers/mime_types.rb +4 -0
  48. data/test/dummy/config/initializers/push_type.rb +15 -0
  49. data/test/dummy/config/initializers/session_store.rb +3 -0
  50. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  51. data/test/dummy/config/locales/en.yml +23 -0
  52. data/test/dummy/config/routes.rb +59 -0
  53. data/test/dummy/config/secrets.yml +22 -0
  54. data/test/dummy/config.ru +4 -0
  55. data/test/dummy/db/migrate/20150208150336_create_push_type_users.push_type.rb +13 -0
  56. data/test/dummy/db/migrate/20150208150337_create_push_type_nodes.push_type.rb +25 -0
  57. data/test/dummy/db/migrate/20150208150338_create_push_type_node_hierarchies.push_type.rb +17 -0
  58. data/test/dummy/db/migrate/20150208150339_create_push_type_assets.push_type.rb +19 -0
  59. data/test/dummy/db/schema.rb +67 -0
  60. data/test/dummy/db/seeds.rb +7 -0
  61. data/test/dummy/log/test.log +1309 -0
  62. data/test/dummy/public/404.html +67 -0
  63. data/test/dummy/public/422.html +67 -0
  64. data/test/dummy/public/500.html +66 -0
  65. data/test/dummy/public/favicon.ico +0 -0
  66. data/test/dummy/public/robots.txt +5 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/0a170bcd46595a69e9181ea5eb52ec6f +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/853c1095ab6e7f4eba1f3406f0f3bba6 +0 -0
  69. data/test/helpers/push_type/wysiwyg_media_helper_test.rb +41 -0
  70. data/test/models/push_type/wysiwyg_field_test.rb +9 -0
  71. data/test/test_helper.rb +21 -0
  72. data/vendor/assets/javascripts/jquery.simplePagination.js +334 -0
  73. metadata +252 -0
@@ -0,0 +1,1309 @@
1
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreatePushTypeUsers (20150208150336)
5
+  (0.1ms) BEGIN
6
+ SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.4ms) 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, "updated_at" timestamp)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150336"]]
9
+  (0.5ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20150208150337)
11
+  (0.1ms) BEGIN
12
+  (2.1ms) 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, "updated_at" timestamp, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150337"]]
14
+  (0.3ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150208150338)
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.7ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.6ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150338"]]
21
+  (0.3ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150208150339)
23
+  (0.1ms) BEGIN
24
+  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150339"]]
26
+  (0.3ms) COMMIT
27
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+  (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
29
+ FROM pg_constraint c
30
+ JOIN pg_class t1 ON c.conrelid = t1.oid
31
+ JOIN pg_class t2 ON c.confrelid = t2.oid
32
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
33
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
34
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
35
+ WHERE c.contype = 'f'
36
+ AND t1.relname = 'push_type_assets'
37
+ AND t3.nspname = ANY (current_schemas(false))
38
+ ORDER BY c.conname
39
+
40
+  (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
41
+ FROM pg_constraint c
42
+ JOIN pg_class t1 ON c.conrelid = t1.oid
43
+ JOIN pg_class t2 ON c.confrelid = t2.oid
44
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
45
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
46
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
47
+ WHERE c.contype = 'f'
48
+ AND t1.relname = 'push_type_node_hierarchies'
49
+ AND t3.nspname = ANY (current_schemas(false))
50
+ ORDER BY c.conname
51
+ 
52
+  (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
53
+ FROM pg_constraint c
54
+ JOIN pg_class t1 ON c.conrelid = t1.oid
55
+ JOIN pg_class t2 ON c.confrelid = t2.oid
56
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
57
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
58
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
59
+ WHERE c.contype = 'f'
60
+ AND t1.relname = 'push_type_nodes'
61
+ AND t3.nspname = ANY (current_schemas(false))
62
+ ORDER BY c.conname
63
+
64
+  (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
+ FROM pg_constraint c
66
+ JOIN pg_class t1 ON c.conrelid = t1.oid
67
+ JOIN pg_class t2 ON c.confrelid = t2.oid
68
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
69
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
70
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
71
+ WHERE c.contype = 'f'
72
+ AND t1.relname = 'push_type_users'
73
+ AND t3.nspname = ANY (current_schemas(false))
74
+ ORDER BY c.conname
75
+ 
76
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
77
+  (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_assets" DISABLE TRIGGER ALL
78
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
79
+  (5.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
80
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" 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
81
+  (0.1ms) BEGIN
82
+ --------------------------------------------------------------------------------------
83
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
84
+ --------------------------------------------------------------------------------------
85
+  (0.1ms) SAVEPOINT active_record_1
86
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87
+  (0.1ms) SAVEPOINT active_record_1
88
+  (0.1ms) SAVEPOINT active_record_2
89
+ 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-02-08 15:03:41.292486"], ["updated_at", "2015-02-08 15:03:41.292486"], ["file_ext", "png"], ["mime_type", "image/png"]]
90
+  (0.1ms) RELEASE SAVEPOINT active_record_2
91
+  (0.1ms) SAVEPOINT active_record_2
92
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.298005"], ["updated_at", "2015-02-08 15:03:41.298005"], ["file_ext", "png"], ["mime_type", "image/png"]]
93
+  (0.1ms) RELEASE SAVEPOINT active_record_2
94
+  (0.1ms) SAVEPOINT active_record_2
95
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.300643"], ["updated_at", "2015-02-08 15:03:41.300643"], ["file_ext", "png"], ["mime_type", "image/png"]]
96
+  (0.1ms) RELEASE SAVEPOINT active_record_2
97
+  (0.1ms) SAVEPOINT active_record_2
98
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.303161"], ["updated_at", "2015-02-08 15:03:41.303161"], ["file_ext", "png"], ["mime_type", "image/png"]]
99
+  (0.1ms) RELEASE SAVEPOINT active_record_2
100
+  (0.1ms) SAVEPOINT active_record_2
101
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.305782"], ["updated_at", "2015-02-08 15:03:41.305782"], ["file_ext", "png"], ["mime_type", "image/png"]]
102
+  (0.1ms) RELEASE SAVEPOINT active_record_2
103
+  (0.1ms) SAVEPOINT active_record_2
104
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-02-08 15:03:41.308478"], ["updated_at", "2015-02-08 15:03:41.308478"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
105
+  (0.1ms) RELEASE SAVEPOINT active_record_2
106
+  (0.1ms) SAVEPOINT active_record_2
107
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-02-08 15:03:41.311196"], ["updated_at", "2015-02-08 15:03:41.311196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
108
+  (0.1ms) RELEASE SAVEPOINT active_record_2
109
+  (0.1ms) SAVEPOINT active_record_2
110
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-02-08 15:03:41.313916"], ["updated_at", "2015-02-08 15:03:41.313916"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
111
+  (0.1ms) RELEASE SAVEPOINT active_record_2
112
+  (0.1ms) SAVEPOINT active_record_2
113
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-02-08 15:03:41.316620"], ["updated_at", "2015-02-08 15:03:41.316620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
114
+  (0.1ms) RELEASE SAVEPOINT active_record_2
115
+  (0.1ms) SAVEPOINT active_record_2
116
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-02-08 15:03:41.319123"], ["updated_at", "2015-02-08 15:03:41.319123"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
117
+  (0.1ms) RELEASE SAVEPOINT active_record_2
118
+  (0.1ms) SAVEPOINT active_record_2
119
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-02-08 15:03:41.321543"], ["updated_at", "2015-02-08 15:03:41.321543"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
120
+  (0.1ms) RELEASE SAVEPOINT active_record_2
121
+  (0.1ms) SAVEPOINT active_record_2
122
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-02-08 15:03:41.324230"], ["updated_at", "2015-02-08 15:03:41.324230"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
123
+  (0.1ms) RELEASE SAVEPOINT active_record_2
124
+  (0.1ms) SAVEPOINT active_record_2
125
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-02-08 15:03:41.326738"], ["updated_at", "2015-02-08 15:03:41.326738"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
126
+  (0.1ms) RELEASE SAVEPOINT active_record_2
127
+  (0.1ms) SAVEPOINT active_record_2
128
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-02-08 15:03:41.329366"], ["updated_at", "2015-02-08 15:03:41.329366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
129
+  (0.1ms) RELEASE SAVEPOINT active_record_2
130
+  (0.1ms) SAVEPOINT active_record_2
131
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-02-08 15:03:41.331966"], ["updated_at", "2015-02-08 15:03:41.331966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
132
+  (0.1ms) RELEASE SAVEPOINT active_record_2
133
+  (0.1ms) SAVEPOINT active_record_2
134
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-02-08 15:03:41.334485"], ["updated_at", "2015-02-08 15:03:41.334485"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
135
+  (0.1ms) RELEASE SAVEPOINT active_record_2
136
+  (0.1ms) SAVEPOINT active_record_2
137
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-02-08 15:03:41.337054"], ["updated_at", "2015-02-08 15:03:41.337054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
138
+  (0.1ms) RELEASE SAVEPOINT active_record_2
139
+  (0.1ms) SAVEPOINT active_record_2
140
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-02-08 15:03:41.339741"], ["updated_at", "2015-02-08 15:03:41.339741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
141
+  (0.1ms) RELEASE SAVEPOINT active_record_2
142
+ Processing by PushType::WysiwygMediaController#index as JSON
143
+ Parameters: {"filter"=>"file"}
144
+ PushType::Asset Load (0.7ms) 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
145
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
146
+ Completed 200 OK in 49ms (Views: 0.8ms | ActiveRecord: 1.0ms)
147
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
148
+  (0.1ms) ROLLBACK
149
+  (0.1ms) BEGIN
150
+ --------------------------------------------------------------------------------------
151
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
152
+ --------------------------------------------------------------------------------------
153
+  (0.0ms) SAVEPOINT active_record_1
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.0ms) SAVEPOINT active_record_1
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", "19"], ["created_at", "2015-02-08 15:03:41.398897"], ["updated_at", "2015-02-08 15:03:41.398897"], ["file_ext", "png"], ["mime_type", "image/png"]]
158
+  (0.1ms) RELEASE SAVEPOINT active_record_2
159
+  (0.1ms) SAVEPOINT active_record_2
160
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.401552"], ["updated_at", "2015-02-08 15:03:41.401552"], ["file_ext", "png"], ["mime_type", "image/png"]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_2
162
+  (0.1ms) SAVEPOINT active_record_2
163
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.403979"], ["updated_at", "2015-02-08 15:03:41.403979"], ["file_ext", "png"], ["mime_type", "image/png"]]
164
+  (0.1ms) RELEASE SAVEPOINT active_record_2
165
+  (0.1ms) SAVEPOINT active_record_2
166
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.406413"], ["updated_at", "2015-02-08 15:03:41.406413"], ["file_ext", "png"], ["mime_type", "image/png"]]
167
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "23"], ["created_at", "2015-02-08 15:03:41.408981"], ["updated_at", "2015-02-08 15:03:41.408981"], ["file_ext", "png"], ["mime_type", "image/png"]]
170
+  (0.1ms) RELEASE SAVEPOINT active_record_2
171
+  (0.1ms) SAVEPOINT active_record_2
172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-02-08 15:03:41.411544"], ["updated_at", "2015-02-08 15:03:41.411544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
173
+  (0.1ms) RELEASE SAVEPOINT active_record_2
174
+  (0.1ms) SAVEPOINT active_record_2
175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-02-08 15:03:41.414018"], ["updated_at", "2015-02-08 15:03:41.414018"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
176
+  (0.1ms) RELEASE SAVEPOINT active_record_2
177
+  (0.1ms) SAVEPOINT active_record_2
178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-02-08 15:03:41.416483"], ["updated_at", "2015-02-08 15:03:41.416483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-02-08 15:03:41.419104"], ["updated_at", "2015-02-08 15:03:41.419104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
182
+  (0.1ms) RELEASE SAVEPOINT active_record_2
183
+  (0.1ms) SAVEPOINT active_record_2
184
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-02-08 15:03:41.421655"], ["updated_at", "2015-02-08 15:03:41.421655"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
+  (0.1ms) RELEASE SAVEPOINT active_record_2
186
+  (0.1ms) SAVEPOINT active_record_2
187
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-02-08 15:03:41.424248"], ["updated_at", "2015-02-08 15:03:41.424248"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
188
+  (0.1ms) RELEASE SAVEPOINT active_record_2
189
+  (0.1ms) SAVEPOINT active_record_2
190
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-02-08 15:03:41.426679"], ["updated_at", "2015-02-08 15:03:41.426679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
191
+  (0.1ms) RELEASE SAVEPOINT active_record_2
192
+  (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-02-08 15:03:41.429099"], ["updated_at", "2015-02-08 15:03:41.429099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
+  (0.1ms) RELEASE SAVEPOINT active_record_2
195
+  (0.1ms) SAVEPOINT active_record_2
196
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-02-08 15:03:41.431858"], ["updated_at", "2015-02-08 15:03:41.431858"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
197
+  (0.1ms) RELEASE SAVEPOINT active_record_2
198
+  (0.1ms) SAVEPOINT active_record_2
199
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-02-08 15:03:41.434513"], ["updated_at", "2015-02-08 15:03:41.434513"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
200
+  (0.1ms) RELEASE SAVEPOINT active_record_2
201
+  (0.1ms) SAVEPOINT active_record_2
202
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-02-08 15:03:41.436952"], ["updated_at", "2015-02-08 15:03:41.436952"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
203
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-02-08 15:03:41.439508"], ["updated_at", "2015-02-08 15:03:41.439508"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
206
+  (0.1ms) RELEASE SAVEPOINT active_record_2
207
+  (0.1ms) SAVEPOINT active_record_2
208
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-02-08 15:03:41.442061"], ["updated_at", "2015-02-08 15:03:41.442061"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
209
+  (0.1ms) RELEASE SAVEPOINT active_record_2
210
+ Processing by PushType::WysiwygMediaController#index as JSON
211
+ Parameters: {"filter"=>"file"}
212
+ 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
213
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
214
+ Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.5ms)
215
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
216
+  (0.1ms) ROLLBACK
217
+  (0.1ms) BEGIN
218
+ --------------------------------------------------------------------------------------
219
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
220
+ --------------------------------------------------------------------------------------
221
+  (0.1ms) SAVEPOINT active_record_1
222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
223
+  (0.0ms) SAVEPOINT active_record_1
224
+  (0.1ms) SAVEPOINT active_record_2
225
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.463998"], ["updated_at", "2015-02-08 15:03:41.463998"], ["file_ext", "png"], ["mime_type", "image/png"]]
226
+  (0.1ms) RELEASE SAVEPOINT active_record_2
227
+  (0.1ms) SAVEPOINT active_record_2
228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.466705"], ["updated_at", "2015-02-08 15:03:41.466705"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
+  (0.1ms) RELEASE SAVEPOINT active_record_2
230
+  (0.1ms) SAVEPOINT active_record_2
231
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.469195"], ["updated_at", "2015-02-08 15:03:41.469195"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
+  (0.1ms) RELEASE SAVEPOINT active_record_2
233
+  (0.1ms) SAVEPOINT active_record_2
234
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.471708"], ["updated_at", "2015-02-08 15:03:41.471708"], ["file_ext", "png"], ["mime_type", "image/png"]]
235
+  (0.1ms) RELEASE SAVEPOINT active_record_2
236
+  (0.1ms) SAVEPOINT active_record_2
237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.474245"], ["updated_at", "2015-02-08 15:03:41.474245"], ["file_ext", "png"], ["mime_type", "image/png"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_2
239
+  (0.1ms) SAVEPOINT active_record_2
240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-02-08 15:03:41.476832"], ["updated_at", "2015-02-08 15:03:41.476832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
+  (0.1ms) RELEASE SAVEPOINT active_record_2
242
+  (0.1ms) SAVEPOINT active_record_2
243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-02-08 15:03:41.479366"], ["updated_at", "2015-02-08 15:03:41.479366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-02-08 15:03:41.481920"], ["updated_at", "2015-02-08 15:03:41.481920"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-02-08 15:03:41.484385"], ["updated_at", "2015-02-08 15:03:41.484385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-02-08 15:03:41.486909"], ["updated_at", "2015-02-08 15:03:41.486909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-02-08 15:03:41.489389"], ["updated_at", "2015-02-08 15:03:41.489389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
+  (0.1ms) RELEASE SAVEPOINT active_record_2
257
+  (0.1ms) SAVEPOINT active_record_2
258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-02-08 15:03:41.491859"], ["updated_at", "2015-02-08 15:03:41.491859"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
+  (0.1ms) RELEASE SAVEPOINT active_record_2
260
+  (0.1ms) SAVEPOINT active_record_2
261
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-02-08 15:03:41.494303"], ["updated_at", "2015-02-08 15:03:41.494303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
+  (0.1ms) RELEASE SAVEPOINT active_record_2
263
+  (0.1ms) SAVEPOINT active_record_2
264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-02-08 15:03:41.496892"], ["updated_at", "2015-02-08 15:03:41.496892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
+  (0.1ms) RELEASE SAVEPOINT active_record_2
266
+  (0.1ms) SAVEPOINT active_record_2
267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-02-08 15:03:41.499638"], ["updated_at", "2015-02-08 15:03:41.499638"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
+  (0.1ms) RELEASE SAVEPOINT active_record_2
269
+  (0.1ms) SAVEPOINT active_record_2
270
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-02-08 15:03:41.502236"], ["updated_at", "2015-02-08 15:03:41.502236"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
+  (0.1ms) RELEASE SAVEPOINT active_record_2
272
+  (0.1ms) SAVEPOINT active_record_2
273
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-02-08 15:03:41.504785"], ["updated_at", "2015-02-08 15:03:41.504785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
274
+  (0.1ms) RELEASE SAVEPOINT active_record_2
275
+  (0.1ms) SAVEPOINT active_record_2
276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-02-08 15:03:41.507250"], ["updated_at", "2015-02-08 15:03:41.507250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
277
+  (0.1ms) RELEASE SAVEPOINT active_record_2
278
+ Processing by PushType::WysiwygMediaController#index as JSON
279
+ Parameters: {"filter"=>"file"}
280
+ 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
281
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
282
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.6ms)
283
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
284
+  (0.1ms) ROLLBACK
285
+  (0.1ms) BEGIN
286
+ --------------------------------------------------------------------------------------
287
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
288
+ --------------------------------------------------------------------------------------
289
+  (0.1ms) SAVEPOINT active_record_1
290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
291
+  (0.0ms) SAVEPOINT active_record_1
292
+  (0.1ms) SAVEPOINT active_record_2
293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-02-08 15:03:41.528984"], ["updated_at", "2015-02-08 15:03:41.528984"], ["file_ext", "png"], ["mime_type", "image/png"]]
294
+  (0.1ms) RELEASE SAVEPOINT active_record_2
295
+  (0.1ms) SAVEPOINT active_record_2
296
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-02-08 15:03:41.531691"], ["updated_at", "2015-02-08 15:03:41.531691"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
+  (0.1ms) RELEASE SAVEPOINT active_record_2
298
+  (0.1ms) SAVEPOINT active_record_2
299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-02-08 15:03:41.534144"], ["updated_at", "2015-02-08 15:03:41.534144"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
+  (0.1ms) RELEASE SAVEPOINT active_record_2
301
+  (0.1ms) SAVEPOINT active_record_2
302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-02-08 15:03:41.536650"], ["updated_at", "2015-02-08 15:03:41.536650"], ["file_ext", "png"], ["mime_type", "image/png"]]
303
+  (0.1ms) RELEASE SAVEPOINT active_record_2
304
+  (0.1ms) SAVEPOINT active_record_2
305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-02-08 15:03:41.539308"], ["updated_at", "2015-02-08 15:03:41.539308"], ["file_ext", "png"], ["mime_type", "image/png"]]
306
+  (0.1ms) RELEASE SAVEPOINT active_record_2
307
+  (0.1ms) SAVEPOINT active_record_2
308
+ 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", "60"], ["created_at", "2015-02-08 15:03:41.541827"], ["updated_at", "2015-02-08 15:03:41.541827"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
+  (0.1ms) RELEASE SAVEPOINT active_record_2
310
+  (0.1ms) SAVEPOINT active_record_2
311
+ 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", "61"], ["created_at", "2015-02-08 15:03:41.549749"], ["updated_at", "2015-02-08 15:03:41.549749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
+  (0.1ms) RELEASE SAVEPOINT active_record_2
313
+  (0.1ms) SAVEPOINT active_record_2
314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.553046"], ["updated_at", "2015-02-08 15:03:41.553046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
+  (0.1ms) RELEASE SAVEPOINT active_record_2
316
+  (0.1ms) SAVEPOINT active_record_2
317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.555940"], ["updated_at", "2015-02-08 15:03:41.555940"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
+  (0.1ms) RELEASE SAVEPOINT active_record_2
319
+  (0.1ms) SAVEPOINT active_record_2
320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.558592"], ["updated_at", "2015-02-08 15:03:41.558592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
+  (0.1ms) RELEASE SAVEPOINT active_record_2
322
+  (0.1ms) SAVEPOINT active_record_2
323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.561500"], ["updated_at", "2015-02-08 15:03:41.561500"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
+  (0.1ms) RELEASE SAVEPOINT active_record_2
325
+  (0.1ms) SAVEPOINT active_record_2
326
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.564200"], ["updated_at", "2015-02-08 15:03:41.564200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
+  (0.1ms) RELEASE SAVEPOINT active_record_2
328
+  (0.1ms) SAVEPOINT active_record_2
329
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-02-08 15:03:41.566910"], ["updated_at", "2015-02-08 15:03:41.566910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
+  (0.1ms) RELEASE SAVEPOINT active_record_2
331
+  (0.1ms) SAVEPOINT active_record_2
332
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-02-08 15:03:41.569426"], ["updated_at", "2015-02-08 15:03:41.569426"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
+  (0.1ms) RELEASE SAVEPOINT active_record_2
334
+  (0.1ms) SAVEPOINT active_record_2
335
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-02-08 15:03:41.571928"], ["updated_at", "2015-02-08 15:03:41.571928"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-02-08 15:03:41.574503"], ["updated_at", "2015-02-08 15:03:41.574503"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-02-08 15:03:41.577288"], ["updated_at", "2015-02-08 15:03:41.577288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-02-08 15:03:41.580176"], ["updated_at", "2015-02-08 15:03:41.580176"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
345
+  (0.1ms) RELEASE SAVEPOINT active_record_2
346
+ Processing by PushType::WysiwygMediaController#index as JSON
347
+ Parameters: {"filter"=>"file"}
348
+ 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
349
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
350
+ Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.5ms)
351
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
352
+  (0.1ms) ROLLBACK
353
+  (0.1ms) BEGIN
354
+ ----------------------------------------------------------------------------------
355
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_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", "73"], ["created_at", "2015-02-08 15:03:41.602657"], ["updated_at", "2015-02-08 15:03:41.602657"], ["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", "74"], ["created_at", "2015-02-08 15:03:41.605623"], ["updated_at", "2015-02-08 15:03:41.605623"], ["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", "75"], ["created_at", "2015-02-08 15:03:41.608840"], ["updated_at", "2015-02-08 15:03:41.608840"], ["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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-02-08 15:03:41.611574"], ["updated_at", "2015-02-08 15:03:41.611574"], ["file_ext", "png"], ["mime_type", "image/png"]]
371
+  (0.1ms) RELEASE SAVEPOINT active_record_2
372
+  (0.1ms) SAVEPOINT active_record_2
373
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-02-08 15:03:41.614203"], ["updated_at", "2015-02-08 15:03:41.614203"], ["file_ext", "png"], ["mime_type", "image/png"]]
374
+  (0.1ms) RELEASE SAVEPOINT active_record_2
375
+  (0.1ms) SAVEPOINT active_record_2
376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.617128"], ["updated_at", "2015-02-08 15:03:41.617128"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
+  (0.1ms) RELEASE SAVEPOINT active_record_2
378
+  (0.1ms) SAVEPOINT active_record_2
379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.619774"], ["updated_at", "2015-02-08 15:03:41.619774"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
+  (0.1ms) RELEASE SAVEPOINT active_record_2
381
+  (0.1ms) SAVEPOINT active_record_2
382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.622220"], ["updated_at", "2015-02-08 15:03:41.622220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
+  (0.1ms) RELEASE SAVEPOINT active_record_2
384
+  (0.1ms) SAVEPOINT active_record_2
385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.624600"], ["updated_at", "2015-02-08 15:03:41.624600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
+  (0.1ms) RELEASE SAVEPOINT active_record_2
387
+  (0.1ms) SAVEPOINT active_record_2
388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-02-08 15:03:41.627200"], ["updated_at", "2015-02-08 15:03:41.627200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
+  (0.1ms) RELEASE SAVEPOINT active_record_2
390
+  (0.1ms) SAVEPOINT active_record_2
391
+ 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", "83"], ["created_at", "2015-02-08 15:03:41.630431"], ["updated_at", "2015-02-08 15:03:41.630431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
+  (0.1ms) RELEASE SAVEPOINT active_record_2
393
+  (0.1ms) SAVEPOINT active_record_2
394
+ 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", "84"], ["created_at", "2015-02-08 15:03:41.635532"], ["updated_at", "2015-02-08 15:03:41.635532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
+  (0.1ms) RELEASE SAVEPOINT active_record_2
396
+  (0.1ms) SAVEPOINT active_record_2
397
+ 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", "85"], ["created_at", "2015-02-08 15:03:41.640316"], ["updated_at", "2015-02-08 15:03:41.640316"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
+  (0.1ms) RELEASE SAVEPOINT active_record_2
399
+  (0.1ms) SAVEPOINT active_record_2
400
+ 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", "86"], ["created_at", "2015-02-08 15:03:41.645376"], ["updated_at", "2015-02-08 15:03:41.645376"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
401
+  (0.1ms) RELEASE SAVEPOINT active_record_2
402
+  (0.1ms) SAVEPOINT active_record_2
403
+ 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", "87"], ["created_at", "2015-02-08 15:03:41.649797"], ["updated_at", "2015-02-08 15:03:41.649797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
404
+  (0.1ms) RELEASE SAVEPOINT active_record_2
405
+  (0.1ms) SAVEPOINT active_record_2
406
+ 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", "88"], ["created_at", "2015-02-08 15:03:41.653547"], ["updated_at", "2015-02-08 15:03:41.653547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
407
+  (0.1ms) RELEASE SAVEPOINT active_record_2
408
+  (0.1ms) SAVEPOINT active_record_2
409
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-02-08 15:03:41.657564"], ["updated_at", "2015-02-08 15:03:41.657564"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
410
+  (0.1ms) RELEASE SAVEPOINT active_record_2
411
+  (0.1ms) SAVEPOINT active_record_2
412
+ 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", "90"], ["created_at", "2015-02-08 15:03:41.661034"], ["updated_at", "2015-02-08 15:03:41.661034"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
413
+  (0.1ms) RELEASE SAVEPOINT active_record_2
414
+ Processing by PushType::WysiwygMediaController#index as JSON
415
+ Parameters: {"filter"=>"file", "page"=>2}
416
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
417
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
418
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
419
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
420
+  (0.2ms) ROLLBACK
421
+  (0.1ms) BEGIN
422
+ ----------------------------------------------------------------------------------
423
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
424
+ ----------------------------------------------------------------------------------
425
+  (0.1ms) SAVEPOINT active_record_1
426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
427
+  (0.1ms) SAVEPOINT active_record_1
428
+  (0.1ms) SAVEPOINT active_record_2
429
+ 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", "91"], ["created_at", "2015-02-08 15:03:41.677318"], ["updated_at", "2015-02-08 15:03:41.677318"], ["file_ext", "png"], ["mime_type", "image/png"]]
430
+  (0.1ms) RELEASE SAVEPOINT active_record_2
431
+  (0.1ms) SAVEPOINT active_record_2
432
+ 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", "92"], ["created_at", "2015-02-08 15:03:41.681547"], ["updated_at", "2015-02-08 15:03:41.681547"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
+  (0.1ms) RELEASE SAVEPOINT active_record_2
434
+  (0.1ms) SAVEPOINT active_record_2
435
+ SQL (0.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", "93"], ["created_at", "2015-02-08 15:03:41.684832"], ["updated_at", "2015-02-08 15:03:41.684832"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
+  (0.1ms) RELEASE SAVEPOINT active_record_2
437
+  (0.1ms) SAVEPOINT active_record_2
438
+ 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", "94"], ["created_at", "2015-02-08 15:03:41.688532"], ["updated_at", "2015-02-08 15:03:41.688532"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
+  (0.1ms) RELEASE SAVEPOINT active_record_2
440
+  (0.1ms) SAVEPOINT active_record_2
441
+ 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", "95"], ["created_at", "2015-02-08 15:03:41.692840"], ["updated_at", "2015-02-08 15:03:41.692840"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
+  (0.1ms) RELEASE SAVEPOINT active_record_2
443
+  (0.1ms) SAVEPOINT active_record_2
444
+ 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", "96"], ["created_at", "2015-02-08 15:03:41.696844"], ["updated_at", "2015-02-08 15:03:41.696844"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
445
+  (0.2ms) RELEASE SAVEPOINT active_record_2
446
+  (0.1ms) SAVEPOINT active_record_2
447
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.700897"], ["updated_at", "2015-02-08 15:03:41.700897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
448
+  (0.1ms) RELEASE SAVEPOINT active_record_2
449
+  (0.1ms) SAVEPOINT active_record_2
450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.703749"], ["updated_at", "2015-02-08 15:03:41.703749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
451
+  (0.1ms) RELEASE SAVEPOINT active_record_2
452
+  (0.1ms) SAVEPOINT active_record_2
453
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.706702"], ["updated_at", "2015-02-08 15:03:41.706702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
454
+  (0.1ms) RELEASE SAVEPOINT active_record_2
455
+  (0.1ms) SAVEPOINT active_record_2
456
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.709666"], ["updated_at", "2015-02-08 15:03:41.709666"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
457
+  (0.1ms) RELEASE SAVEPOINT active_record_2
458
+  (0.1ms) SAVEPOINT active_record_2
459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.712603"], ["updated_at", "2015-02-08 15:03:41.712603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
460
+  (0.1ms) RELEASE SAVEPOINT active_record_2
461
+  (0.1ms) SAVEPOINT active_record_2
462
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.715398"], ["updated_at", "2015-02-08 15:03:41.715398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
463
+  (0.1ms) RELEASE SAVEPOINT active_record_2
464
+  (0.1ms) SAVEPOINT active_record_2
465
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-02-08 15:03:41.718290"], ["updated_at", "2015-02-08 15:03:41.718290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
466
+  (0.1ms) RELEASE SAVEPOINT active_record_2
467
+  (0.1ms) SAVEPOINT active_record_2
468
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2015-02-08 15:03:41.721040"], ["updated_at", "2015-02-08 15:03:41.721040"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
469
+  (0.1ms) RELEASE SAVEPOINT active_record_2
470
+  (0.1ms) SAVEPOINT active_record_2
471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-02-08 15:03:41.723687"], ["updated_at", "2015-02-08 15:03:41.723687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
472
+  (0.1ms) RELEASE SAVEPOINT active_record_2
473
+  (0.1ms) SAVEPOINT active_record_2
474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-02-08 15:03:41.726342"], ["updated_at", "2015-02-08 15:03:41.726342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
475
+  (0.1ms) RELEASE SAVEPOINT active_record_2
476
+  (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", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-02-08 15:03:41.729250"], ["updated_at", "2015-02-08 15:03:41.729250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
478
+  (0.1ms) RELEASE SAVEPOINT active_record_2
479
+  (0.1ms) SAVEPOINT active_record_2
480
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-02-08 15:03:41.731901"], ["updated_at", "2015-02-08 15:03:41.731901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_2
482
+ Processing by PushType::WysiwygMediaController#index as JSON
483
+ Parameters: {"filter"=>"file", "page"=>2}
484
+ 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
485
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
486
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
487
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
488
+  (0.1ms) ROLLBACK
489
+  (0.1ms) BEGIN
490
+ ----------------------------------------------------------------------------------
491
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
492
+ ----------------------------------------------------------------------------------
493
+  (0.1ms) SAVEPOINT active_record_1
494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
495
+  (0.1ms) SAVEPOINT active_record_1
496
+  (0.1ms) SAVEPOINT active_record_2
497
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "109"], ["created_at", "2015-02-08 15:03:41.743773"], ["updated_at", "2015-02-08 15:03:41.743773"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
+  (0.1ms) RELEASE SAVEPOINT active_record_2
499
+  (0.1ms) SAVEPOINT active_record_2
500
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-02-08 15:03:41.746694"], ["updated_at", "2015-02-08 15:03:41.746694"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
+  (0.1ms) RELEASE SAVEPOINT active_record_2
502
+  (0.1ms) SAVEPOINT active_record_2
503
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-02-08 15:03:41.749363"], ["updated_at", "2015-02-08 15:03:41.749363"], ["file_ext", "png"], ["mime_type", "image/png"]]
504
+  (0.1ms) RELEASE SAVEPOINT active_record_2
505
+  (0.1ms) SAVEPOINT active_record_2
506
+ 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", "112"], ["created_at", "2015-02-08 15:03:41.751930"], ["updated_at", "2015-02-08 15:03:41.751930"], ["file_ext", "png"], ["mime_type", "image/png"]]
507
+  (0.1ms) RELEASE SAVEPOINT active_record_2
508
+  (0.1ms) SAVEPOINT active_record_2
509
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-02-08 15:03:41.758860"], ["updated_at", "2015-02-08 15:03:41.758860"], ["file_ext", "png"], ["mime_type", "image/png"]]
510
+  (0.1ms) RELEASE SAVEPOINT active_record_2
511
+  (0.1ms) SAVEPOINT active_record_2
512
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.761391"], ["updated_at", "2015-02-08 15:03:41.761391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
+  (0.1ms) RELEASE SAVEPOINT active_record_2
514
+  (0.1ms) SAVEPOINT active_record_2
515
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.763985"], ["updated_at", "2015-02-08 15:03:41.763985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
+  (0.1ms) RELEASE SAVEPOINT active_record_2
517
+  (0.1ms) SAVEPOINT active_record_2
518
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.766652"], ["updated_at", "2015-02-08 15:03:41.766652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
+  (0.1ms) RELEASE SAVEPOINT active_record_2
520
+  (0.1ms) SAVEPOINT active_record_2
521
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.769295"], ["updated_at", "2015-02-08 15:03:41.769295"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
+  (0.1ms) RELEASE SAVEPOINT active_record_2
523
+  (0.1ms) SAVEPOINT active_record_2
524
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.771777"], ["updated_at", "2015-02-08 15:03:41.771777"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_2
526
+  (0.1ms) SAVEPOINT active_record_2
527
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.774203"], ["updated_at", "2015-02-08 15:03:41.774203"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
528
+  (0.1ms) RELEASE SAVEPOINT active_record_2
529
+  (0.1ms) SAVEPOINT active_record_2
530
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.776897"], ["updated_at", "2015-02-08 15:03:41.776897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
+  (0.1ms) RELEASE SAVEPOINT active_record_2
532
+  (0.1ms) SAVEPOINT active_record_2
533
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-02-08 15:03:41.779498"], ["updated_at", "2015-02-08 15:03:41.779498"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
+  (0.1ms) RELEASE SAVEPOINT active_record_2
535
+  (0.1ms) SAVEPOINT active_record_2
536
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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", "2015-02-08 15:03:41.782126"], ["updated_at", "2015-02-08 15:03:41.782126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
+  (0.1ms) RELEASE SAVEPOINT active_record_2
538
+  (0.1ms) SAVEPOINT active_record_2
539
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-02-08 15:03:41.784570"], ["updated_at", "2015-02-08 15:03:41.784570"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
+  (0.1ms) RELEASE SAVEPOINT active_record_2
541
+  (0.1ms) SAVEPOINT active_record_2
542
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-02-08 15:03:41.787094"], ["updated_at", "2015-02-08 15:03:41.787094"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
543
+  (0.1ms) RELEASE SAVEPOINT active_record_2
544
+  (0.1ms) SAVEPOINT active_record_2
545
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-02-08 15:03:41.789627"], ["updated_at", "2015-02-08 15:03:41.789627"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
546
+  (0.1ms) RELEASE SAVEPOINT active_record_2
547
+  (0.1ms) SAVEPOINT active_record_2
548
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-02-08 15:03:41.792310"], ["updated_at", "2015-02-08 15:03:41.792310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
549
+  (0.1ms) RELEASE SAVEPOINT active_record_2
550
+ Processing by PushType::WysiwygMediaController#index as JSON
551
+ Parameters: {"filter"=>"file", "page"=>2}
552
+ 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
553
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
554
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
555
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
556
+  (0.1ms) ROLLBACK
557
+  (0.1ms) BEGIN
558
+ ----------------------------------------------------------------------------------
559
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
560
+ ----------------------------------------------------------------------------------
561
+  (0.1ms) SAVEPOINT active_record_1
562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
563
+  (0.0ms) SAVEPOINT active_record_1
564
+  (0.1ms) SAVEPOINT active_record_2
565
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "127"], ["created_at", "2015-02-08 15:03:41.803679"], ["updated_at", "2015-02-08 15:03:41.803679"], ["file_ext", "png"], ["mime_type", "image/png"]]
566
+  (0.1ms) RELEASE SAVEPOINT active_record_2
567
+  (0.1ms) SAVEPOINT active_record_2
568
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-02-08 15:03:41.806338"], ["updated_at", "2015-02-08 15:03:41.806338"], ["file_ext", "png"], ["mime_type", "image/png"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_2
570
+  (0.1ms) SAVEPOINT active_record_2
571
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-02-08 15:03:41.808772"], ["updated_at", "2015-02-08 15:03:41.808772"], ["file_ext", "png"], ["mime_type", "image/png"]]
572
+  (0.1ms) RELEASE SAVEPOINT active_record_2
573
+  (0.1ms) SAVEPOINT active_record_2
574
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-02-08 15:03:41.811369"], ["updated_at", "2015-02-08 15:03:41.811369"], ["file_ext", "png"], ["mime_type", "image/png"]]
575
+  (0.1ms) RELEASE SAVEPOINT active_record_2
576
+  (0.1ms) SAVEPOINT active_record_2
577
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-02-08 15:03:41.814070"], ["updated_at", "2015-02-08 15:03:41.814070"], ["file_ext", "png"], ["mime_type", "image/png"]]
578
+  (0.1ms) RELEASE SAVEPOINT active_record_2
579
+  (0.1ms) SAVEPOINT active_record_2
580
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.816702"], ["updated_at", "2015-02-08 15:03:41.816702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
+  (0.1ms) RELEASE SAVEPOINT active_record_2
582
+  (0.1ms) SAVEPOINT active_record_2
583
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.819182"], ["updated_at", "2015-02-08 15:03:41.819182"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
+  (0.1ms) RELEASE SAVEPOINT active_record_2
585
+  (0.1ms) SAVEPOINT active_record_2
586
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.821790"], ["updated_at", "2015-02-08 15:03:41.821790"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
+  (0.1ms) RELEASE SAVEPOINT active_record_2
588
+  (0.1ms) SAVEPOINT active_record_2
589
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.824332"], ["updated_at", "2015-02-08 15:03:41.824332"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
+  (0.1ms) RELEASE SAVEPOINT active_record_2
591
+  (0.1ms) SAVEPOINT active_record_2
592
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.827029"], ["updated_at", "2015-02-08 15:03:41.827029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
+  (0.1ms) RELEASE SAVEPOINT active_record_2
594
+  (0.1ms) SAVEPOINT active_record_2
595
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.829499"], ["updated_at", "2015-02-08 15:03:41.829499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
596
+  (0.1ms) RELEASE SAVEPOINT active_record_2
597
+  (0.1ms) SAVEPOINT active_record_2
598
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:41.832169"], ["updated_at", "2015-02-08 15:03:41.832169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
599
+  (0.1ms) RELEASE SAVEPOINT active_record_2
600
+  (0.1ms) SAVEPOINT active_record_2
601
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-02-08 15:03:41.834748"], ["updated_at", "2015-02-08 15:03:41.834748"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
602
+  (0.1ms) RELEASE SAVEPOINT active_record_2
603
+  (0.1ms) SAVEPOINT active_record_2
604
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-02-08 15:03:41.837607"], ["updated_at", "2015-02-08 15:03:41.837607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
+  (0.1ms) RELEASE SAVEPOINT active_record_2
606
+  (0.1ms) SAVEPOINT active_record_2
607
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-02-08 15:03:41.840189"], ["updated_at", "2015-02-08 15:03:41.840189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
+  (0.1ms) RELEASE SAVEPOINT active_record_2
609
+  (0.1ms) SAVEPOINT active_record_2
610
+ 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", "142"], ["created_at", "2015-02-08 15:03:41.842717"], ["updated_at", "2015-02-08 15:03:41.842717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
611
+  (0.1ms) RELEASE SAVEPOINT active_record_2
612
+  (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", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-02-08 15:03:41.845439"], ["updated_at", "2015-02-08 15:03:41.845439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
614
+  (0.1ms) RELEASE SAVEPOINT active_record_2
615
+  (0.1ms) SAVEPOINT active_record_2
616
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-02-08 15:03:41.848222"], ["updated_at", "2015-02-08 15:03:41.848222"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
617
+  (0.1ms) RELEASE SAVEPOINT active_record_2
618
+ Processing by PushType::WysiwygMediaController#index as JSON
619
+ Parameters: {"filter"=>"file", "page"=>2}
620
+ 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
621
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
622
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
623
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
624
+  (0.1ms) ROLLBACK
625
+  (0.1ms) BEGIN
626
+ -----------------------------------------------------------------------
627
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
628
+ -----------------------------------------------------------------------
629
+  (0.1ms) SAVEPOINT active_record_1
630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
631
+  (0.1ms) SAVEPOINT active_record_1
632
+  (0.1ms) SAVEPOINT active_record_2
633
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "145"], ["created_at", "2015-02-08 15:03:41.860979"], ["updated_at", "2015-02-08 15:03:41.860979"], ["file_ext", "png"], ["mime_type", "image/png"]]
634
+  (0.1ms) RELEASE SAVEPOINT active_record_2
635
+  (0.1ms) SAVEPOINT active_record_2
636
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-02-08 15:03:41.863748"], ["updated_at", "2015-02-08 15:03:41.863748"], ["file_ext", "png"], ["mime_type", "image/png"]]
637
+  (0.1ms) RELEASE SAVEPOINT active_record_2
638
+  (0.1ms) SAVEPOINT active_record_2
639
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-02-08 15:03:41.866159"], ["updated_at", "2015-02-08 15:03:41.866159"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
+  (0.1ms) RELEASE SAVEPOINT active_record_2
641
+  (0.1ms) SAVEPOINT active_record_2
642
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-02-08 15:03:41.868829"], ["updated_at", "2015-02-08 15:03:41.868829"], ["file_ext", "png"], ["mime_type", "image/png"]]
643
+  (0.1ms) RELEASE SAVEPOINT active_record_2
644
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
645
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
646
+  (0.1ms) ROLLBACK
647
+  (0.1ms) BEGIN
648
+ -----------------------------------------------------------------------
649
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
650
+ -----------------------------------------------------------------------
651
+  (0.1ms) SAVEPOINT active_record_1
652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
653
+  (0.0ms) SAVEPOINT active_record_1
654
+  (0.1ms) SAVEPOINT active_record_2
655
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-02-08 15:03:41.873990"], ["updated_at", "2015-02-08 15:03:41.873990"], ["file_ext", "png"], ["mime_type", "image/png"]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_2
657
+  (0.1ms) SAVEPOINT active_record_2
658
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-02-08 15:03:41.876568"], ["updated_at", "2015-02-08 15:03:41.876568"], ["file_ext", "png"], ["mime_type", "image/png"]]
659
+  (0.1ms) RELEASE SAVEPOINT active_record_2
660
+  (0.1ms) SAVEPOINT active_record_2
661
+ 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", "151"], ["created_at", "2015-02-08 15:03:41.879263"], ["updated_at", "2015-02-08 15:03:41.879263"], ["file_ext", "png"], ["mime_type", "image/png"]]
662
+  (0.1ms) RELEASE SAVEPOINT active_record_2
663
+  (0.1ms) SAVEPOINT active_record_2
664
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-02-08 15:03:41.882353"], ["updated_at", "2015-02-08 15:03:41.882353"], ["file_ext", "png"], ["mime_type", "image/png"]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_2
666
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
667
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
668
+  (0.1ms) ROLLBACK
669
+  (0.1ms) BEGIN
670
+ -----------------------------------------------------------------------
671
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
672
+ -----------------------------------------------------------------------
673
+  (0.1ms) SAVEPOINT active_record_1
674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
675
+  (0.1ms) SAVEPOINT active_record_1
676
+  (0.1ms) SAVEPOINT active_record_2
677
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-02-08 15:03:41.887811"], ["updated_at", "2015-02-08 15:03:41.887811"], ["file_ext", "png"], ["mime_type", "image/png"]]
678
+  (0.1ms) RELEASE SAVEPOINT active_record_2
679
+  (0.1ms) SAVEPOINT active_record_2
680
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-02-08 15:03:41.890492"], ["updated_at", "2015-02-08 15:03:41.890492"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
+  (0.1ms) RELEASE SAVEPOINT active_record_2
682
+  (0.1ms) SAVEPOINT active_record_2
683
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-02-08 15:03:41.893470"], ["updated_at", "2015-02-08 15:03:41.893470"], ["file_ext", "png"], ["mime_type", "image/png"]]
684
+  (0.1ms) RELEASE SAVEPOINT active_record_2
685
+  (0.1ms) SAVEPOINT active_record_2
686
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-02-08 15:03:41.896216"], ["updated_at", "2015-02-08 15:03:41.896216"], ["file_ext", "png"], ["mime_type", "image/png"]]
687
+  (0.1ms) RELEASE SAVEPOINT active_record_2
688
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
689
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
690
+  (0.1ms) ROLLBACK
691
+  (0.1ms) BEGIN
692
+ -----------------------------------------------------------------------
693
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
694
+ -----------------------------------------------------------------------
695
+  (0.0ms) SAVEPOINT active_record_1
696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
697
+  (0.0ms) SAVEPOINT active_record_1
698
+  (0.1ms) SAVEPOINT active_record_2
699
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-02-08 15:03:41.901325"], ["updated_at", "2015-02-08 15:03:41.901325"], ["file_ext", "png"], ["mime_type", "image/png"]]
700
+  (0.1ms) RELEASE SAVEPOINT active_record_2
701
+  (0.1ms) SAVEPOINT active_record_2
702
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-02-08 15:03:41.904140"], ["updated_at", "2015-02-08 15:03:41.904140"], ["file_ext", "png"], ["mime_type", "image/png"]]
703
+  (0.1ms) RELEASE SAVEPOINT active_record_2
704
+  (0.1ms) SAVEPOINT active_record_2
705
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-02-08 15:03:41.906811"], ["updated_at", "2015-02-08 15:03:41.906811"], ["file_ext", "png"], ["mime_type", "image/png"]]
706
+  (0.1ms) RELEASE SAVEPOINT active_record_2
707
+  (0.1ms) SAVEPOINT active_record_2
708
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-02-08 15:03:41.909421"], ["updated_at", "2015-02-08 15:03:41.909421"], ["file_ext", "png"], ["mime_type", "image/png"]]
709
+  (0.1ms) RELEASE SAVEPOINT active_record_2
710
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
711
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
712
+  (0.1ms) ROLLBACK
713
+  (0.1ms) BEGIN
714
+ -----------------------------------------------------------------------
715
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
716
+ -----------------------------------------------------------------------
717
+  (0.1ms) SAVEPOINT active_record_1
718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
719
+  (0.1ms) SAVEPOINT active_record_1
720
+  (0.1ms) SAVEPOINT active_record_2
721
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-02-08 15:03:41.915030"], ["updated_at", "2015-02-08 15:03:41.915030"], ["file_ext", "png"], ["mime_type", "image/png"]]
722
+  (0.1ms) RELEASE SAVEPOINT active_record_2
723
+  (0.1ms) SAVEPOINT active_record_2
724
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-02-08 15:03:41.917651"], ["updated_at", "2015-02-08 15:03:41.917651"], ["file_ext", "png"], ["mime_type", "image/png"]]
725
+  (0.1ms) RELEASE SAVEPOINT active_record_2
726
+  (0.1ms) SAVEPOINT active_record_2
727
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-02-08 15:03:41.920335"], ["updated_at", "2015-02-08 15:03:41.920335"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
+  (0.1ms) RELEASE SAVEPOINT active_record_2
729
+  (0.1ms) SAVEPOINT active_record_2
730
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-02-08 15:03:41.922958"], ["updated_at", "2015-02-08 15:03:41.922958"], ["file_ext", "png"], ["mime_type", "image/png"]]
731
+  (0.1ms) RELEASE SAVEPOINT active_record_2
732
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
733
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
734
+  (0.1ms) ROLLBACK
735
+  (0.1ms) BEGIN
736
+ --------------------------------------------------------------------------------
737
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
738
+ --------------------------------------------------------------------------------
739
+  (0.0ms) SAVEPOINT active_record_1
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+  (0.0ms) SAVEPOINT active_record_1
742
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
743
+ Processing by PushType::WysiwygMediaController#create as JSON
744
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc998381ff8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-18ym9p3>>}}
745
+  (0.1ms) SAVEPOINT active_record_2
746
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-02-08 15:03:41.941469"], ["updated_at", "2015-02-08 15:03:41.941469"], ["file_ext", "png"], ["mime_type", "image/png"]]
747
+  (0.1ms) RELEASE SAVEPOINT active_record_2
748
+ Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.3ms)
749
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
750
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
751
+  (0.1ms) ROLLBACK
752
+  (0.1ms) BEGIN
753
+ ----------------------------------------------------------------------
754
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
755
+ ----------------------------------------------------------------------
756
+  (0.1ms) SAVEPOINT active_record_1
757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
758
+  (0.0ms) SAVEPOINT active_record_1
759
+  (0.1ms) SAVEPOINT active_record_2
760
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-02-08 15:03:41.950646"], ["updated_at", "2015-02-08 15:03:41.950646"], ["file_ext", "png"], ["mime_type", "image/png"]]
761
+  (0.1ms) RELEASE SAVEPOINT active_record_2
762
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
763
+  (0.1ms) ROLLBACK
764
+  (0.1ms) BEGIN
765
+ ----------------------------------------------------------------------
766
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
767
+ ----------------------------------------------------------------------
768
+  (0.1ms) SAVEPOINT active_record_1
769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
770
+  (0.0ms) SAVEPOINT active_record_1
771
+  (0.1ms) SAVEPOINT active_record_2
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", "167"], ["created_at", "2015-02-08 15:03:41.957992"], ["updated_at", "2015-02-08 15:03:41.957992"], ["file_ext", "png"], ["mime_type", "image/png"]]
773
+  (0.1ms) RELEASE SAVEPOINT active_record_2
774
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
775
+  (0.1ms) ROLLBACK
776
+  (0.1ms) BEGIN
777
+ ----------------------------------------------------------------------
778
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
779
+ ----------------------------------------------------------------------
780
+  (0.1ms) SAVEPOINT active_record_1
781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
782
+  (0.1ms) SAVEPOINT active_record_1
783
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-02-08 15:03:41.965121"], ["updated_at", "2015-02-08 15:03:41.965121"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
+  (0.1ms) RELEASE SAVEPOINT active_record_2
786
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
787
+  (0.1ms) ROLLBACK
788
+  (0.1ms) BEGIN
789
+ ----------------------------------------------------------------------
790
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
791
+ ----------------------------------------------------------------------
792
+  (0.0ms) SAVEPOINT active_record_1
793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
794
+  (0.0ms) SAVEPOINT active_record_1
795
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-02-08 15:03:41.971015"], ["updated_at", "2015-02-08 15:03:41.971015"], ["file_ext", "png"], ["mime_type", "image/png"]]
797
+  (0.1ms) RELEASE SAVEPOINT active_record_2
798
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
799
+  (0.1ms) ROLLBACK
800
+  (0.1ms) BEGIN
801
+ ----------------------------------------------------------------------
802
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
803
+ ----------------------------------------------------------------------
804
+  (0.0ms) SAVEPOINT active_record_1
805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
806
+  (0.0ms) SAVEPOINT active_record_1
807
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-02-08 15:03:41.976988"], ["updated_at", "2015-02-08 15:03:41.976988"], ["file_ext", "png"], ["mime_type", "image/png"]]
809
+  (0.1ms) RELEASE SAVEPOINT active_record_2
810
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
811
+  (0.1ms) ROLLBACK
812
+  (0.1ms) BEGIN
813
+ ----------------------------------------------------------------------
814
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
815
+ ----------------------------------------------------------------------
816
+  (0.1ms) SAVEPOINT active_record_1
817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
818
+  (0.0ms) SAVEPOINT active_record_1
819
+  (0.1ms) SAVEPOINT active_record_2
820
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-02-08 15:03:41.983627"], ["updated_at", "2015-02-08 15:03:41.983627"], ["file_ext", "png"], ["mime_type", "image/png"]]
821
+  (0.1ms) RELEASE SAVEPOINT active_record_2
822
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
823
+  (0.1ms) ROLLBACK
824
+  (0.1ms) BEGIN
825
+ ----------------------------------------------------------------------
826
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
827
+ ----------------------------------------------------------------------
828
+  (0.1ms) SAVEPOINT active_record_1
829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
830
+  (0.1ms) SAVEPOINT active_record_1
831
+  (0.1ms) SAVEPOINT active_record_2
832
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-02-08 15:03:41.990255"], ["updated_at", "2015-02-08 15:03:41.990255"], ["file_ext", "png"], ["mime_type", "image/png"]]
833
+  (0.1ms) RELEASE SAVEPOINT active_record_2
834
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
835
+  (0.1ms) ROLLBACK
836
+  (0.1ms) BEGIN
837
+ -----------------------------------------------------------------------
838
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
839
+ -----------------------------------------------------------------------
840
+  (0.1ms) SAVEPOINT active_record_1
841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
842
+  (0.0ms) SAVEPOINT active_record_1
843
+  (0.1ms) SAVEPOINT active_record_2
844
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-02-08 15:03:41.997702"], ["updated_at", "2015-02-08 15:03:41.997702"], ["file_ext", "png"], ["mime_type", "image/png"]]
845
+  (0.1ms) RELEASE SAVEPOINT active_record_2
846
+  (0.1ms) SAVEPOINT active_record_2
847
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-02-08 15:03:42.000524"], ["updated_at", "2015-02-08 15:03:42.000524"], ["file_ext", "png"], ["mime_type", "image/png"]]
848
+  (0.1ms) RELEASE SAVEPOINT active_record_2
849
+  (0.1ms) SAVEPOINT active_record_2
850
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-02-08 15:03:42.003097"], ["updated_at", "2015-02-08 15:03:42.003097"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_2
852
+  (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", "176"], ["created_at", "2015-02-08 15:03:42.005615"], ["updated_at", "2015-02-08 15:03:42.005615"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
+  (0.1ms) RELEASE SAVEPOINT active_record_2
855
+ 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
856
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
857
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
858
+  (0.1ms) ROLLBACK
859
+  (0.0ms) BEGIN
860
+ -----------------------------------------------------------------------
861
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
862
+ -----------------------------------------------------------------------
863
+  (0.0ms) SAVEPOINT active_record_1
864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+  (0.0ms) SAVEPOINT active_record_1
866
+  (0.1ms) SAVEPOINT active_record_2
867
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.015448"], ["updated_at", "2015-02-08 15:03:42.015448"], ["file_ext", "png"], ["mime_type", "image/png"]]
868
+  (0.1ms) RELEASE SAVEPOINT active_record_2
869
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-02-08 15:03:42.018100"], ["updated_at", "2015-02-08 15:03:42.018100"], ["file_ext", "png"], ["mime_type", "image/png"]]
871
+  (0.1ms) RELEASE SAVEPOINT active_record_2
872
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-02-08 15:03:42.020612"], ["updated_at", "2015-02-08 15:03:42.020612"], ["file_ext", "png"], ["mime_type", "image/png"]]
874
+  (0.1ms) RELEASE SAVEPOINT active_record_2
875
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-02-08 15:03:42.023163"], ["updated_at", "2015-02-08 15:03:42.023163"], ["file_ext", "png"], ["mime_type", "image/png"]]
877
+  (0.1ms) RELEASE SAVEPOINT active_record_2
878
+ 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
879
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
880
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
881
+  (0.1ms) ROLLBACK
882
+  (0.1ms) BEGIN
883
+ -----------------------------------------------------------------------
884
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
885
+ -----------------------------------------------------------------------
886
+  (0.0ms) SAVEPOINT active_record_1
887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
888
+  (0.0ms) SAVEPOINT active_record_1
889
+  (0.1ms) SAVEPOINT active_record_2
890
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-02-08 15:03:42.033498"], ["updated_at", "2015-02-08 15:03:42.033498"], ["file_ext", "png"], ["mime_type", "image/png"]]
891
+  (0.1ms) RELEASE SAVEPOINT active_record_2
892
+  (0.1ms) SAVEPOINT active_record_2
893
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-02-08 15:03:42.036279"], ["updated_at", "2015-02-08 15:03:42.036279"], ["file_ext", "png"], ["mime_type", "image/png"]]
894
+  (0.1ms) RELEASE SAVEPOINT active_record_2
895
+  (0.1ms) SAVEPOINT active_record_2
896
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-02-08 15:03:42.038943"], ["updated_at", "2015-02-08 15:03:42.038943"], ["file_ext", "png"], ["mime_type", "image/png"]]
897
+  (0.1ms) RELEASE SAVEPOINT active_record_2
898
+  (0.1ms) SAVEPOINT active_record_2
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", "184"], ["created_at", "2015-02-08 15:03:42.041497"], ["updated_at", "2015-02-08 15:03:42.041497"], ["file_ext", "png"], ["mime_type", "image/png"]]
900
+  (0.1ms) RELEASE SAVEPOINT active_record_2
901
+ 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
902
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
903
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
904
+  (0.1ms) ROLLBACK
905
+  (0.1ms) BEGIN
906
+ -----------------------------------------------------------------------
907
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
908
+ -----------------------------------------------------------------------
909
+  (0.1ms) SAVEPOINT active_record_1
910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
911
+  (0.0ms) SAVEPOINT active_record_1
912
+  (0.1ms) SAVEPOINT active_record_2
913
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-02-08 15:03:42.051372"], ["updated_at", "2015-02-08 15:03:42.051372"], ["file_ext", "png"], ["mime_type", "image/png"]]
914
+  (0.1ms) RELEASE SAVEPOINT active_record_2
915
+  (0.1ms) SAVEPOINT active_record_2
916
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-02-08 15:03:42.054061"], ["updated_at", "2015-02-08 15:03:42.054061"], ["file_ext", "png"], ["mime_type", "image/png"]]
917
+  (0.1ms) RELEASE SAVEPOINT active_record_2
918
+  (0.1ms) SAVEPOINT active_record_2
919
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-02-08 15:03:42.056582"], ["updated_at", "2015-02-08 15:03:42.056582"], ["file_ext", "png"], ["mime_type", "image/png"]]
920
+  (0.1ms) RELEASE SAVEPOINT active_record_2
921
+  (0.1ms) SAVEPOINT active_record_2
922
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-02-08 15:03:42.059064"], ["updated_at", "2015-02-08 15:03:42.059064"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
+  (0.1ms) RELEASE SAVEPOINT active_record_2
924
+ 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
925
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
926
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
927
+  (0.1ms) ROLLBACK
928
+  (0.1ms) BEGIN
929
+ -----------------------------------------------------------------------
930
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
931
+ -----------------------------------------------------------------------
932
+  (0.0ms) SAVEPOINT active_record_1
933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
934
+  (0.0ms) SAVEPOINT active_record_1
935
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-02-08 15:03:42.069156"], ["updated_at", "2015-02-08 15:03:42.069156"], ["file_ext", "png"], ["mime_type", "image/png"]]
937
+  (0.1ms) RELEASE SAVEPOINT active_record_2
938
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-02-08 15:03:42.071799"], ["updated_at", "2015-02-08 15:03:42.071799"], ["file_ext", "png"], ["mime_type", "image/png"]]
940
+  (0.1ms) RELEASE SAVEPOINT active_record_2
941
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-02-08 15:03:42.074354"], ["updated_at", "2015-02-08 15:03:42.074354"], ["file_ext", "png"], ["mime_type", "image/png"]]
943
+  (0.1ms) RELEASE SAVEPOINT active_record_2
944
+  (0.1ms) SAVEPOINT active_record_2
945
+ 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", "192"], ["created_at", "2015-02-08 15:03:42.077056"], ["updated_at", "2015-02-08 15:03:42.077056"], ["file_ext", "png"], ["mime_type", "image/png"]]
946
+  (0.1ms) RELEASE SAVEPOINT active_record_2
947
+ 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
948
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
949
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
950
+  (0.1ms) ROLLBACK
951
+  (0.1ms) BEGIN
952
+ ----------------------------------------------------------------------------------------
953
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
954
+ ----------------------------------------------------------------------------------------
955
+  (0.1ms) SAVEPOINT active_record_1
956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
957
+  (0.1ms) SAVEPOINT active_record_1
958
+ Processing by PushType::WysiwygMediaController#create as JSON
959
+ Parameters: {"asset"=>{}}
960
+  (0.1ms) SAVEPOINT active_record_2
961
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
962
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
963
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
964
+  (0.1ms) ROLLBACK
965
+  (0.1ms) BEGIN
966
+ ----------------------------------------------------------------------------------------
967
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
968
+ ----------------------------------------------------------------------------------------
969
+  (0.1ms) SAVEPOINT active_record_1
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+  (0.0ms) SAVEPOINT active_record_1
972
+ Processing by PushType::WysiwygMediaController#create as JSON
973
+ Parameters: {"asset"=>{}}
974
+  (0.1ms) SAVEPOINT active_record_2
975
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
976
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
977
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
978
+  (0.1ms) ROLLBACK
979
+  (0.1ms) BEGIN
980
+ ----------------------------------------------------------------------------------------
981
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
982
+ ----------------------------------------------------------------------------------------
983
+  (0.1ms) SAVEPOINT active_record_1
984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
985
+  (0.0ms) SAVEPOINT active_record_1
986
+ Processing by PushType::WysiwygMediaController#create as JSON
987
+ Parameters: {"asset"=>{}}
988
+  (0.1ms) SAVEPOINT active_record_2
989
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
990
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
991
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
992
+  (0.1ms) ROLLBACK
993
+  (0.1ms) BEGIN
994
+ -------------------------------------------------------------------------------------
995
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
996
+ -------------------------------------------------------------------------------------
997
+  (0.1ms) SAVEPOINT active_record_1
998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
999
+  (0.0ms) SAVEPOINT active_record_1
1000
+ Processing by PushType::WysiwygMediaController#create as JSON
1001
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc993b7e8c8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-1vynch4>>}}
1002
+  (0.1ms) SAVEPOINT active_record_2
1003
+ 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", "193"], ["created_at", "2015-02-08 15:03:42.110649"], ["updated_at", "2015-02-08 15:03:42.110649"], ["file_ext", "png"], ["mime_type", "image/png"]]
1004
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1005
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1006
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1007
+  (0.1ms) ROLLBACK
1008
+  (0.1ms) BEGIN
1009
+ -------------------------------------------------------------------------------------
1010
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1011
+ -------------------------------------------------------------------------------------
1012
+  (0.0ms) SAVEPOINT active_record_1
1013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1014
+  (0.0ms) SAVEPOINT active_record_1
1015
+ Processing by PushType::WysiwygMediaController#create as JSON
1016
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc9939338c0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-fvn14p>>}}
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", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-02-08 15:03:42.144908"], ["updated_at", "2015-02-08 15:03:42.144908"], ["file_ext", "png"], ["mime_type", "image/png"]]
1019
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1020
+ Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1021
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1022
+  (0.1ms) ROLLBACK
1023
+  (0.1ms) BEGIN
1024
+ -------------------------------------------------------------------------------------
1025
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1026
+ -------------------------------------------------------------------------------------
1027
+  (0.1ms) SAVEPOINT active_record_1
1028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1029
+  (0.0ms) SAVEPOINT active_record_1
1030
+ Processing by PushType::WysiwygMediaController#create as JSON
1031
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc998389208 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-4ic234>>}}
1032
+  (0.1ms) SAVEPOINT active_record_2
1033
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-02-08 15:03:42.154295"], ["updated_at", "2015-02-08 15:03:42.154295"], ["file_ext", "png"], ["mime_type", "image/png"]]
1034
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1035
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1036
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1037
+  (0.1ms) ROLLBACK
1038
+  (0.1ms) BEGIN
1039
+ ---------------------------------------------------------------------------------------
1040
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
1041
+ ---------------------------------------------------------------------------------------
1042
+  (0.1ms) SAVEPOINT active_record_1
1043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1044
+  (0.0ms) SAVEPOINT active_record_1
1045
+  (0.1ms) SAVEPOINT active_record_2
1046
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.161767"], ["updated_at", "2015-02-08 15:03:42.161767"], ["file_ext", "png"], ["mime_type", "image/png"]]
1047
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1048
+  (0.1ms) SAVEPOINT active_record_2
1049
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.164569"], ["updated_at", "2015-02-08 15:03:42.164569"], ["file_ext", "png"], ["mime_type", "image/png"]]
1050
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1051
+  (0.2ms) SAVEPOINT active_record_2
1052
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.167469"], ["updated_at", "2015-02-08 15:03:42.167469"], ["file_ext", "png"], ["mime_type", "image/png"]]
1053
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1054
+  (0.1ms) SAVEPOINT active_record_2
1055
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.170235"], ["updated_at", "2015-02-08 15:03:42.170235"], ["file_ext", "png"], ["mime_type", "image/png"]]
1056
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1057
+  (0.1ms) SAVEPOINT active_record_2
1058
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.172818"], ["updated_at", "2015-02-08 15:03:42.172818"], ["file_ext", "png"], ["mime_type", "image/png"]]
1059
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1060
+  (0.1ms) SAVEPOINT active_record_2
1061
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-02-08 15:03:42.175525"], ["updated_at", "2015-02-08 15:03:42.175525"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1062
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1063
+  (0.1ms) SAVEPOINT active_record_2
1064
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-02-08 15:03:42.178449"], ["updated_at", "2015-02-08 15:03:42.178449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1065
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1066
+  (0.1ms) SAVEPOINT active_record_2
1067
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-02-08 15:03:42.181163"], ["updated_at", "2015-02-08 15:03:42.181163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1068
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1069
+  (0.1ms) SAVEPOINT active_record_2
1070
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-02-08 15:03:42.183892"], ["updated_at", "2015-02-08 15:03:42.183892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1072
+  (0.1ms) SAVEPOINT active_record_2
1073
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-02-08 15:03:42.186610"], ["updated_at", "2015-02-08 15:03:42.186610"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1074
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1075
+  (0.1ms) SAVEPOINT active_record_2
1076
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-02-08 15:03:42.189411"], ["updated_at", "2015-02-08 15:03:42.189411"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1077
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1078
+  (0.1ms) SAVEPOINT active_record_2
1079
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-02-08 15:03:42.192939"], ["updated_at", "2015-02-08 15:03:42.192939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1080
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1081
+  (0.1ms) SAVEPOINT active_record_2
1082
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-02-08 15:03:42.195685"], ["updated_at", "2015-02-08 15:03:42.195685"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1083
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1084
+  (0.1ms) SAVEPOINT active_record_2
1085
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-02-08 15:03:42.198314"], ["updated_at", "2015-02-08 15:03:42.198314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1086
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1087
+  (0.1ms) SAVEPOINT active_record_2
1088
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-02-08 15:03:42.200807"], ["updated_at", "2015-02-08 15:03:42.200807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1090
+  (0.1ms) SAVEPOINT active_record_2
1091
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-02-08 15:03:42.203544"], ["updated_at", "2015-02-08 15:03:42.203544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1092
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1093
+  (0.1ms) SAVEPOINT active_record_2
1094
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-02-08 15:03:42.206207"], ["updated_at", "2015-02-08 15:03:42.206207"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1095
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1096
+  (0.1ms) SAVEPOINT active_record_2
1097
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-02-08 15:03:42.208817"], ["updated_at", "2015-02-08 15:03:42.208817"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1098
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1099
+ Processing by PushType::WysiwygMediaController#index as JSON
1100
+ Parameters: {"filter"=>"image"}
1101
+ 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
1102
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1103
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1104
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1105
+  (0.1ms) ROLLBACK
1106
+  (0.1ms) BEGIN
1107
+ ---------------------------------------------------------------------------------------
1108
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
1109
+ ---------------------------------------------------------------------------------------
1110
+  (0.1ms) SAVEPOINT active_record_1
1111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+  (0.1ms) SAVEPOINT active_record_2
1114
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-02-08 15:03:42.227806"], ["updated_at", "2015-02-08 15:03:42.227806"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1116
+  (0.1ms) SAVEPOINT active_record_2
1117
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.230689"], ["updated_at", "2015-02-08 15:03:42.230689"], ["file_ext", "png"], ["mime_type", "image/png"]]
1118
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1119
+  (0.1ms) SAVEPOINT active_record_2
1120
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.233274"], ["updated_at", "2015-02-08 15:03:42.233274"], ["file_ext", "png"], ["mime_type", "image/png"]]
1121
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1122
+  (0.1ms) SAVEPOINT active_record_2
1123
+ 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", "217"], ["created_at", "2015-02-08 15:03:42.235778"], ["updated_at", "2015-02-08 15:03:42.235778"], ["file_ext", "png"], ["mime_type", "image/png"]]
1124
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1125
+  (0.1ms) SAVEPOINT active_record_2
1126
+ 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", "218"], ["created_at", "2015-02-08 15:03:42.239189"], ["updated_at", "2015-02-08 15:03:42.239189"], ["file_ext", "png"], ["mime_type", "image/png"]]
1127
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1128
+  (0.1ms) SAVEPOINT active_record_2
1129
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.242039"], ["updated_at", "2015-02-08 15:03:42.242039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1131
+  (0.1ms) SAVEPOINT active_record_2
1132
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-02-08 15:03:42.244672"], ["updated_at", "2015-02-08 15:03:42.244672"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1134
+  (0.1ms) SAVEPOINT active_record_2
1135
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.247192"], ["updated_at", "2015-02-08 15:03:42.247192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1137
+  (0.1ms) SAVEPOINT active_record_2
1138
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.250019"], ["updated_at", "2015-02-08 15:03:42.250019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1139
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1140
+  (0.1ms) SAVEPOINT active_record_2
1141
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.252574"], ["updated_at", "2015-02-08 15:03:42.252574"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1142
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1143
+  (0.1ms) SAVEPOINT active_record_2
1144
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-02-08 15:03:42.255092"], ["updated_at", "2015-02-08 15:03:42.255092"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1145
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1146
+  (0.1ms) SAVEPOINT active_record_2
1147
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.257649"], ["updated_at", "2015-02-08 15:03:42.257649"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1149
+  (0.1ms) SAVEPOINT active_record_2
1150
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-02-08 15:03:42.260571"], ["updated_at", "2015-02-08 15:03:42.260571"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1152
+  (0.1ms) SAVEPOINT active_record_2
1153
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.263448"], ["updated_at", "2015-02-08 15:03:42.263448"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1155
+  (0.1ms) SAVEPOINT active_record_2
1156
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.265981"], ["updated_at", "2015-02-08 15:03:42.265981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1157
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1158
+  (0.1ms) SAVEPOINT active_record_2
1159
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-02-08 15:03:42.268469"], ["updated_at", "2015-02-08 15:03:42.268469"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1160
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1161
+  (0.1ms) SAVEPOINT active_record_2
1162
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.271309"], ["updated_at", "2015-02-08 15:03:42.271309"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1163
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1164
+  (0.1ms) SAVEPOINT active_record_2
1165
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.274016"], ["updated_at", "2015-02-08 15:03:42.274016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1166
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1167
+ Processing by PushType::WysiwygMediaController#index as JSON
1168
+ Parameters: {"filter"=>"image"}
1169
+ 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
1170
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1171
+ Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1172
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1173
+  (0.1ms) ROLLBACK
1174
+  (0.1ms) BEGIN
1175
+ ---------------------------------------------------------------------------------------
1176
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
1177
+ ---------------------------------------------------------------------------------------
1178
+  (0.1ms) SAVEPOINT active_record_1
1179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1180
+  (0.0ms) SAVEPOINT active_record_1
1181
+  (0.1ms) SAVEPOINT active_record_2
1182
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.294056"], ["updated_at", "2015-02-08 15:03:42.294056"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1184
+  (0.1ms) SAVEPOINT active_record_2
1185
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.297010"], ["updated_at", "2015-02-08 15:03:42.297010"], ["file_ext", "png"], ["mime_type", "image/png"]]
1186
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1187
+  (0.1ms) SAVEPOINT active_record_2
1188
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.299660"], ["updated_at", "2015-02-08 15:03:42.299660"], ["file_ext", "png"], ["mime_type", "image/png"]]
1189
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1190
+  (0.1ms) SAVEPOINT active_record_2
1191
+ 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", "235"], ["created_at", "2015-02-08 15:03:42.302502"], ["updated_at", "2015-02-08 15:03:42.302502"], ["file_ext", "png"], ["mime_type", "image/png"]]
1192
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1193
+  (0.1ms) SAVEPOINT active_record_2
1194
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-02-08 15:03:42.305286"], ["updated_at", "2015-02-08 15:03:42.305286"], ["file_ext", "png"], ["mime_type", "image/png"]]
1195
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1196
+  (0.1ms) SAVEPOINT active_record_2
1197
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-02-08 15:03:42.307912"], ["updated_at", "2015-02-08 15:03:42.307912"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1198
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1199
+  (0.1ms) SAVEPOINT active_record_2
1200
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-02-08 15:03:42.310649"], ["updated_at", "2015-02-08 15:03:42.310649"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1201
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1202
+  (0.1ms) SAVEPOINT active_record_2
1203
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-02-08 15:03:42.313327"], ["updated_at", "2015-02-08 15:03:42.313327"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1204
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1205
+  (0.1ms) SAVEPOINT active_record_2
1206
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-02-08 15:03:42.316421"], ["updated_at", "2015-02-08 15:03:42.316421"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1207
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1208
+  (0.1ms) SAVEPOINT active_record_2
1209
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-02-08 15:03:42.319233"], ["updated_at", "2015-02-08 15:03:42.319233"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1211
+  (0.1ms) SAVEPOINT active_record_2
1212
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-02-08 15:03:42.322368"], ["updated_at", "2015-02-08 15:03:42.322368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1213
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1214
+  (0.1ms) SAVEPOINT active_record_2
1215
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-02-08 15:03:42.325137"], ["updated_at", "2015-02-08 15:03:42.325137"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1216
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1217
+  (0.1ms) SAVEPOINT active_record_2
1218
+ 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", "244"], ["created_at", "2015-02-08 15:03:42.328310"], ["updated_at", "2015-02-08 15:03:42.328310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1219
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1220
+  (0.1ms) SAVEPOINT active_record_2
1221
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-02-08 15:03:42.336572"], ["updated_at", "2015-02-08 15:03:42.336572"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1222
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1223
+  (0.1ms) SAVEPOINT active_record_2
1224
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-02-08 15:03:42.339375"], ["updated_at", "2015-02-08 15:03:42.339375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1225
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1226
+  (0.1ms) SAVEPOINT active_record_2
1227
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-02-08 15:03:42.341847"], ["updated_at", "2015-02-08 15:03:42.341847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1228
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1229
+  (0.1ms) SAVEPOINT active_record_2
1230
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-02-08 15:03:42.344389"], ["updated_at", "2015-02-08 15:03:42.344389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1231
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1232
+  (0.1ms) SAVEPOINT active_record_2
1233
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-02-08 15:03:42.347010"], ["updated_at", "2015-02-08 15:03:42.347010"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1234
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1235
+ Processing by PushType::WysiwygMediaController#index as JSON
1236
+ Parameters: {"filter"=>"image"}
1237
+ 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
1238
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1239
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1240
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1241
+  (0.1ms) ROLLBACK
1242
+  (0.1ms) BEGIN
1243
+ ---------------------------------------------------------------------------------------
1244
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
1245
+ ---------------------------------------------------------------------------------------
1246
+  (0.1ms) SAVEPOINT active_record_1
1247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1248
+  (0.1ms) SAVEPOINT active_record_1
1249
+  (0.1ms) SAVEPOINT active_record_2
1250
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.365865"], ["updated_at", "2015-02-08 15:03:42.365865"], ["file_ext", "png"], ["mime_type", "image/png"]]
1251
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1252
+  (0.1ms) SAVEPOINT active_record_2
1253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.368547"], ["updated_at", "2015-02-08 15:03:42.368547"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1255
+  (0.1ms) SAVEPOINT active_record_2
1256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.371030"], ["updated_at", "2015-02-08 15:03:42.371030"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1258
+  (0.1ms) SAVEPOINT active_record_2
1259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.373553"], ["updated_at", "2015-02-08 15:03:42.373553"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1261
+  (0.1ms) SAVEPOINT active_record_2
1262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.376275"], ["updated_at", "2015-02-08 15:03:42.376275"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1264
+  (0.1ms) SAVEPOINT active_record_2
1265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-02-08 15:03:42.378938"], ["updated_at", "2015-02-08 15:03:42.378938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1266
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1267
+  (0.1ms) SAVEPOINT active_record_2
1268
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-02-08 15:03:42.381363"], ["updated_at", "2015-02-08 15:03:42.381363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1269
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1270
+  (0.1ms) SAVEPOINT active_record_2
1271
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-02-08 15:03:42.383918"], ["updated_at", "2015-02-08 15:03:42.383918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1272
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1273
+  (0.1ms) SAVEPOINT active_record_2
1274
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-02-08 15:03:42.386852"], ["updated_at", "2015-02-08 15:03:42.386852"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1275
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1276
+  (0.1ms) SAVEPOINT active_record_2
1277
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.389486"], ["updated_at", "2015-02-08 15:03:42.389486"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1278
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1279
+  (0.1ms) SAVEPOINT active_record_2
1280
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.392006"], ["updated_at", "2015-02-08 15:03:42.392006"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1281
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-02-08 15:03:42.394441"], ["updated_at", "2015-02-08 15:03:42.394441"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-02-08 15:03:42.397200"], ["updated_at", "2015-02-08 15:03:42.397200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-02-08 15:03:42.400053"], ["updated_at", "2015-02-08 15:03:42.400053"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-02-08 15:03:42.402677"], ["updated_at", "2015-02-08 15:03:42.402677"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1293
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1294
+  (0.1ms) SAVEPOINT active_record_2
1295
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.405197"], ["updated_at", "2015-02-08 15:03:42.405197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1296
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1297
+  (0.1ms) SAVEPOINT active_record_2
1298
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.407595"], ["updated_at", "2015-02-08 15:03:42.407595"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1299
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1300
+  (0.1ms) SAVEPOINT active_record_2
1301
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.410398"], ["updated_at", "2015-02-08 15:03:42.410398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1303
+ Processing by PushType::WysiwygMediaController#index as JSON
1304
+ Parameters: {"filter"=>"image"}
1305
+ 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
1306
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1307
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1308
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1309
+  (0.1ms) ROLLBACK