push_type_wysiwyg 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/push_type/froala_overrides/file_upload.js +1 -1
  3. data/app/assets/javascripts/push_type/froala_overrides/froala_editor.js +7 -32
  4. data/lib/push_type/wysiwyg.rb +2 -0
  5. data/lib/push_type/wysiwyg/engine.rb +5 -3
  6. data/test/controllers/push_type/wysiwyg_media_controller_test.rb +2 -2
  7. data/test/dummy/app/models/category.rb +2 -1
  8. data/test/dummy/app/models/page.rb +5 -4
  9. data/test/dummy/config/initializers/push_type.rb +21 -4
  10. data/test/dummy/config/secrets.yml +2 -2
  11. data/test/dummy/db/migrate/{20150816155521_create_push_type_users.push_type.rb → 20150824095220_create_push_type_users.push_type.rb} +0 -0
  12. data/test/dummy/db/migrate/{20150816155522_create_push_type_nodes.push_type.rb → 20150824095221_create_push_type_nodes.push_type.rb} +0 -0
  13. data/test/dummy/db/migrate/{20150816155523_create_push_type_node_hierarchies.push_type.rb → 20150824095222_create_push_type_node_hierarchies.push_type.rb} +0 -0
  14. data/test/dummy/db/migrate/{20150816155524_create_push_type_assets.push_type.rb → 20150824095223_create_push_type_assets.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20150816155525_create_push_type_taxonomies.push_type.rb → 20150824095224_create_push_type_taxonomies.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20150816155526_create_push_type_taxonomy_hierarchies.push_type.rb → 20150824095225_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  17. data/test/dummy/db/migrate/{20150816155527_add_field_store_default_values.push_type.rb → 20150824095226_add_field_store_default_values.push_type.rb} +0 -0
  18. data/test/dummy/db/schema.rb +1 -1
  19. data/test/dummy/log/test.log +727 -706
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{iEI8WixZrgmiB_zh_BWlKL7CuC2q7ssPJvlwnAQECoE.cache → JjX54PrDmCFzcjTbq6Nd993K1CK5NOf5R7f3qyO_-So.cache} +2 -2
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_yN7kor4gekA7HUSIorkC2I1VnxWM5aOgd5eNrA6ca8.cache +1 -0
  22. data/test/helpers/push_type/wysiwyg_media_helper_test.rb +2 -2
  23. data/test/models/push_type/wysiwyg_field_test.rb +4 -2
  24. data/test/test_helper.rb +4 -14
  25. metadata +31 -31
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbvLT7G9ojUvtI0HU7G_rmPrIv82rlBK6mQyu158MwU.cache +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fef11cce80a50554a85c868cb7769c2c1375fb6
4
- data.tar.gz: 654814396d1e4c77dfc003bf8ea5c512184190c3
3
+ metadata.gz: 2f29f6d77ca6f980dedd3eb085e6a37702b64451
4
+ data.tar.gz: 1f47ac512e7be84a86504e91c4a5b30ed6c8ef21
5
5
  SHA512:
6
- metadata.gz: 7eeb6c59e58d8f4bd94cbc01623669e8ee68ccdc4f440070173ccb167c3e344e0d7b28835df3878859e38b48d77e541aab7353fcbd662d8965f00bf6268d1deb
7
- data.tar.gz: 8da38ae9c86999891c6adf416db2505183704b7d2418a028bcc73a5b36b6b0055b36266dd6cb32aee625771833aa74513e18c1e673d3f10ba5f21815ec4a191c
6
+ metadata.gz: f872b93b3780c021db807928dceecff8aea20573f0fa2cb5a19cf97b1e2c9b624b52c17c10d3139135a81d4b5f3263be6a73889bf7ae1301aa552de55760f47b
7
+ data.tar.gz: b344dea9658c47e326678a1f1a558d9afe0f78f80442a11562570739b7d17ac33497bf1d7480f70e3aeca0ebf887138a866b230b623c76dcf2b568688e7b7164
@@ -50,7 +50,7 @@ $.Editable.prototype.buildFileUpload = function () {
50
50
 
51
51
  this.addListener('hidePopups', $.proxy(function () {
52
52
  this.hideFileWrapper();
53
- }), this);
53
+ }, this));
54
54
 
55
55
  // Init progress bar.
56
56
  this.$file_progress_bar = this.$file_wrapper.find('p#f-file-progress-' + this._id);
@@ -12,17 +12,18 @@ $.Editable.prototype.showByCoordinates = function (x, y) {
12
12
  y = y - $container.offset().top;
13
13
 
14
14
  if (!this.iPad()) {
15
- y = y + $container.scrollTop();
16
15
  x = x + $container.scrollLeft();
16
+ y = y + $container.scrollTop();
17
17
  }
18
18
  }
19
19
 
20
- var editor_width = Math.max(this.$popup_editor.outerWidth(), 250);
20
+ if (y > this.$box.offset().top + this.$box.outerHeight()) {
21
+ y = this.$box.offset().top + this.$box.outerHeight();
21
22
 
22
- // PT BEGIN
23
- var bottom = $container.offset().top + $container.outerHeight() + 8;
24
- y = Math.min(y, bottom);
25
- // PT END
23
+ if (this.options.inlineMode) y = y + 10;
24
+ }
25
+
26
+ var editor_width = Math.max(this.$popup_editor.outerWidth(), 250);
26
27
 
27
28
  if (x + editor_width >= $container.outerWidth() - 50 && (x + 44) - editor_width > 0) {
28
29
  this.$popup_editor.addClass('right-side');
@@ -49,29 +50,3 @@ $.Editable.prototype.showByCoordinates = function (x, y) {
49
50
 
50
51
  this.$popup_editor.show();
51
52
  };
52
-
53
- /**
54
- * Override to fix IE9 bug
55
- */
56
- $.Editable.prototype.parseImageResponse = function (response) {
57
- try {
58
- var resp = $.parseJSON(response);
59
-
60
- // PT BEGIN
61
- // Is this IE9 being a wugger?
62
- if (!resp) { return; }
63
- // PT END
64
-
65
- if (resp.link) {
66
- this.writeImage(resp.link);
67
- } else if (resp.error) {
68
- this.throwImageErrorWithMessage(resp.error);
69
- } else {
70
- // No link in upload request.
71
- this.throwImageError(2);
72
- }
73
- } catch (ex) {
74
- // Bad response.
75
- this.throwImageError(4);
76
- }
77
- };
@@ -8,7 +8,9 @@ require 'font-awesome-rails'
8
8
  module PushType
9
9
 
10
10
  module Wysiwyg
11
+ ActiveSupport.run_load_hooks(:push_type_wysiwyg, PushType)
11
12
  end
13
+
12
14
  end
13
15
 
14
16
  require 'push_type/wysiwyg/engine'
@@ -2,16 +2,18 @@ module PushType
2
2
  module Wysiwyg
3
3
  class Engine < ::Rails::Engine
4
4
  isolate_namespace PushType
5
- engine_name 'push_type_rich_text'
5
+ engine_name 'push_type_wysiwyg'
6
6
 
7
7
  config.generators do |g|
8
8
  g.assets false
9
9
  g.helper false
10
- g.test_framework :minitest, spec: true, fixture: false
10
+ g.test_framework :test_unit, fixture: false
11
11
  end
12
12
 
13
13
  initializer 'push_type.wysiwyg_assets' do
14
- PushType.admin_assets.register 'push_type/wysiwyg'
14
+ ActiveSupport.on_load :push_type_admin do
15
+ admin_assets.register 'push_type/wysiwyg'
16
+ end
15
17
  end
16
18
  end
17
19
  end
@@ -1,7 +1,7 @@
1
- require "test_helper"
1
+ require 'test_helper'
2
2
 
3
3
  module PushType
4
- describe WysiwygMediaController do
4
+ class WysiwygMediaControllerTest < ActionController::TestCase
5
5
 
6
6
  let(:json_response) { JSON.parse(response.body) }
7
7
  let(:asset_attrs) { FactoryGirl.attributes_for(:asset) }
@@ -1,6 +1,7 @@
1
1
  class Category < PushType::Taxonomy
2
2
 
3
- # Set base slug
3
+ # The default prefix for a taxonomy term's permalink can be
4
+ # overridden be setting the base slug.
4
5
  # base_slug :category
5
6
 
6
7
  end
@@ -1,10 +1,11 @@
1
1
  class Page < PushType::Node
2
2
 
3
- # Control child nodes
4
- # has_child_nodes :all
3
+ # By default a node can have children of any other node type.
4
+ # Optionally pass a list of acceptable node types or prevent
5
+ # any descendents by passing false.
6
+ has_child_nodes :all
5
7
 
6
- # Set custom fields
8
+ # Model the content by adding custom fields to the node.
7
9
  # field :body, :text, validates: { presence: true }
8
-
9
10
 
10
11
  end
@@ -1,22 +1,39 @@
1
1
  PushType.setup do |config|
2
2
 
3
+ # By default all node types can be placed at the root of the
4
+ # content tree. Alternatively, set an array of node type symbols
5
+ # to whiltelist acceptable root nodes.
3
6
  config.root_nodes = :all
4
7
 
5
- config.unexposed_nodes = []
6
-
8
+ # Set the slug of the node that the `NodesFrontEndContoller` will
9
+ # render when visting the root URL of the site (the homepage).
10
+ # This setting can be overridden in config/routes.rb.
7
11
  config.home_slug = 'home'
8
12
 
13
+ # Set an array of node type symbols which will not be exposed to
14
+ # the `NodesFrontEndContoller`. These nodes will not be accessible
15
+ # through their permalink.
16
+ config.unexposed_nodes = []
17
+
18
+ # Set an array of taxonomy type symbols which will not be exposed
19
+ # to the `TaxonomiesFrontEndController`. These taxonomies will not
20
+ # be accessible through their permalink.
9
21
  config.unexposed_taxonomies = []
10
22
 
23
+ # Media styles allow you to predefine a collection of geometry
24
+ # strings for resizing images on the fly with the `Asset#media`
25
+ # method. Example: `image.media(:large)`
11
26
  config.media_styles = {
12
27
  large: '1024x1024>',
13
28
  medium: '512x512>',
14
29
  small: '256x256>'
15
30
  }
16
31
 
17
- # Configure the default mailer "from" address
32
+ # Configure the email address to be used as the "from" address
33
+ # for PushType's build in mailers.
18
34
  config.mailer_sender = 'pushtype@example.com'
19
35
 
36
+ # PushType uses Dragonfly for managing uploaded images/assets.
20
37
  # Dragonfly datastore configuration
21
38
  config.dragonfly_datastore = :file
22
39
  config.dragonfly_datastore_options = {
@@ -33,6 +50,6 @@ PushType.setup do |config|
33
50
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
34
51
  # }
35
52
 
36
- # config.dragonfly_secret = 'd0607476b47f1fa1ac66be1d45ae1097d42f28b67cc11496858bdec50eed2b3d'
53
+ # config.dragonfly_secret = 'c574364774a7cab551c6d36f20613658db32704a9c24f8d841734fe41065f006'
37
54
 
38
55
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 50d0eb123afb9db42bf5d20c500056e07f906cd78f5ae6dc6b17b6ddbe1e7f99017953814509a1096d605f605b9acffb02716cc6971f5813989f807970281956
14
+ secret_key_base: 8441b338eabe8d060a87c79a9a59304f24d9462f3e6d81a590d7d88623420e1aa4fecee844a1b7f08463211af6ba93afaac79616ba770891c0fd9287e3d21448
15
15
 
16
16
  test:
17
- secret_key_base: 47166d675979c74c2daa0b8f09ae29b0e2f511c54d8f053165d0a3cada1f391aa50c167a05d2358df5d6c7c2f6845906139d2a44450856fee770428976055bf3
17
+ secret_key_base: dc365c34f6fb22603d6b0314bf265ef1534780b0427d105578e0ed3c9dde39082c79fa1cce1bbd5e5c6fc3ae15bb3f4f33ff83caf1cf061b663d70cb385c84a4
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150816155527) do
14
+ ActiveRecord::Schema.define(version: 20150824095226) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -1,56 +1,56 @@
1
-  (12.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (41.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150816155521)
4
+ Migrating to CreatePushTypeUsers (20150824095220)
5
5
   (0.1ms) BEGIN
6
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.6ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155521"]]
9
-  (0.6ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150816155522)
6
+ SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.2ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095220"]]
9
+  (0.7ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20150824095221)
11
11
   (0.1ms) BEGIN
12
-  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155522"]]
14
-  (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150816155523)
12
+  (1.8ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095221"]]
14
+  (0.5ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150824095222)
16
16
   (0.1ms) BEGIN
17
17
   (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
18
   (0.7ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155523"]]
21
-  (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150816155524)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095222"]]
21
+  (0.4ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150824095223)
23
23
   (0.1ms) BEGIN
24
-  (2.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155524"]]
24
+  (1.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095223"]]
26
26
   (0.4ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150816155525)
27
+ Migrating to CreatePushTypeTaxonomies (20150824095224)
28
28
   (0.1ms) BEGIN
29
-  (2.0ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
29
+  (1.6ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
30
   (0.2ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155525"]]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095224"]]
32
32
   (0.3ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150816155526)
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150824095225)
34
34
   (0.1ms) BEGIN
35
-  (0.6ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
-  (0.8ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
-  (0.6ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155526"]]
35
+  (0.3ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
+  (0.6ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
+  (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095225"]]
39
39
   (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20150816155527)
40
+ Migrating to AddFieldStoreDefaultValues (20150824095226)
41
41
   (0.1ms) BEGIN
42
42
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
-  (0.3ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
43
+  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
44
44
   (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
45
   (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
-  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
-  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
46
+  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
+  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
-  (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155527"]]
51
-  (0.5ms) COMMIT
49
+  (0.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150824095226"]]
51
+  (0.4ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
53
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
54
54
  FROM pg_constraint c
55
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
56
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -74,7 +74,7 @@ WHERE c.contype = 'f'
74
74
  AND t3.nspname = ANY (current_schemas(false))
75
75
  ORDER BY c.conname
76
76
  
77
-  (1.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
77
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
78
78
  FROM pg_constraint c
79
79
  JOIN pg_class t1 ON c.conrelid = t1.oid
80
80
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -98,7 +98,7 @@ WHERE c.contype = 'f'
98
98
  AND t3.nspname = ANY (current_schemas(false))
99
99
  ORDER BY c.conname
100
100
  
101
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
101
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
102
102
  FROM pg_constraint c
103
103
  JOIN pg_class t1 ON c.conrelid = t1.oid
104
104
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -122,1241 +122,1262 @@ WHERE c.contype = 'f'
122
122
  AND t3.nspname = ANY (current_schemas(false))
123
123
  ORDER BY c.conname
124
124
  
125
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
-  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
125
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
127
   (0.9ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
- WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
129
+ WHERE
130
+ tablename !~ '_prt_' AND
131
+ tablename <> 'schema_migrations' AND
132
+ schemaname = ANY (current_schemas(false))
130
133
  
131
134
   (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
132
-  (13.0ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
133
-  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
135
+  (8.2ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
136
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
134
137
   (0.1ms) BEGIN
135
- ---------------------------------------------------------------------------------------
136
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
137
- ---------------------------------------------------------------------------------------
138
+ ---------------------------------------------------------------------------
139
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0005_anonymous
140
+ ---------------------------------------------------------------------------
138
141
   (0.1ms) SAVEPOINT active_record_1
139
142
   (0.1ms) RELEASE SAVEPOINT active_record_1
140
-  (0.1ms) SAVEPOINT active_record_1
143
+  (0.0ms) SAVEPOINT active_record_1
141
144
   (0.1ms) SAVEPOINT active_record_2
142
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-08-16 15:55:26.774308"], ["updated_at", "2015-08-16 15:55:26.774308"], ["file_ext", "png"], ["mime_type", "image/png"]]
145
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-08-24 09:52:25.870198"], ["updated_at", "2015-08-24 09:52:25.870198"], ["file_ext", "png"], ["mime_type", "image/png"]]
143
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
144
147
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-08-16 15:55:26.779610"], ["updated_at", "2015-08-16 15:55:26.779610"], ["file_ext", "png"], ["mime_type", "image/png"]]
148
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-08-24 09:52:25.875696"], ["updated_at", "2015-08-24 09:52:25.875696"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
149
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
150
   (0.1ms) SAVEPOINT active_record_2
148
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-08-16 15:55:26.781927"], ["updated_at", "2015-08-16 15:55:26.781927"], ["file_ext", "png"], ["mime_type", "image/png"]]
151
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-08-24 09:52:25.877936"], ["updated_at", "2015-08-24 09:52:25.877936"], ["file_ext", "png"], ["mime_type", "image/png"]]
149
152
   (0.1ms) RELEASE SAVEPOINT active_record_2
150
153
   (0.1ms) SAVEPOINT active_record_2
151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-08-16 15:55:26.784174"], ["updated_at", "2015-08-16 15:55:26.784174"], ["file_ext", "png"], ["mime_type", "image/png"]]
154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-08-24 09:52:25.907953"], ["updated_at", "2015-08-24 09:52:25.907953"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
155
   (0.1ms) RELEASE SAVEPOINT active_record_2
153
-  (0.1ms) SAVEPOINT active_record_2
154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-08-16 15:55:26.786359"], ["updated_at", "2015-08-16 15:55:26.786359"], ["file_ext", "png"], ["mime_type", "image/png"]]
155
-  (0.1ms) RELEASE SAVEPOINT active_record_2
156
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
157
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
158
+  (0.1ms) ROLLBACK
159
+  (0.1ms) BEGIN
160
+ ---------------------------------------------------------------------------
161
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0002_anonymous
162
+ ---------------------------------------------------------------------------
163
+  (0.1ms) SAVEPOINT active_record_1
164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
165
+  (0.0ms) SAVEPOINT active_record_1
156
166
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-08-16 15:55:26.788871"], ["updated_at", "2015-08-16 15:55:26.788871"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
167
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-08-24 09:52:25.913834"], ["updated_at", "2015-08-24 09:52:25.913834"], ["file_ext", "png"], ["mime_type", "image/png"]]
158
168
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
169
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-08-16 15:55:26.791547"], ["updated_at", "2015-08-16 15:55:26.791547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
170
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-08-24 09:52:25.915980"], ["updated_at", "2015-08-24 09:52:25.915980"], ["file_ext", "png"], ["mime_type", "image/png"]]
161
171
   (0.1ms) RELEASE SAVEPOINT active_record_2
162
172
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-08-16 15:55:26.794015"], ["updated_at", "2015-08-16 15:55:26.794015"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
173
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-08-24 09:52:25.918097"], ["updated_at", "2015-08-24 09:52:25.918097"], ["file_ext", "png"], ["mime_type", "image/png"]]
164
174
   (0.1ms) RELEASE SAVEPOINT active_record_2
165
175
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-08-16 15:55:26.796565"], ["updated_at", "2015-08-16 15:55:26.796565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
176
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-08-24 09:52:25.920094"], ["updated_at", "2015-08-24 09:52:25.920094"], ["file_ext", "png"], ["mime_type", "image/png"]]
167
177
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-08-16 15:55:26.798885"], ["updated_at", "2015-08-16 15:55:26.798885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
170
-  (0.1ms) RELEASE SAVEPOINT active_record_2
178
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
179
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
180
+  (0.1ms) ROLLBACK
181
+  (0.0ms) BEGIN
182
+ ---------------------------------------------------------------------------
183
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0004_anonymous
184
+ ---------------------------------------------------------------------------
185
+  (0.0ms) SAVEPOINT active_record_1
186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
187
+  (0.0ms) SAVEPOINT active_record_1
171
188
   (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", "11"], ["created_at", "2015-08-16 15:55:26.801055"], ["updated_at", "2015-08-16 15:55:26.801055"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
189
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-08-24 09:52:25.924236"], ["updated_at", "2015-08-24 09:52:25.924236"], ["file_ext", "png"], ["mime_type", "image/png"]]
173
190
   (0.1ms) RELEASE SAVEPOINT active_record_2
174
191
   (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", "12"], ["created_at", "2015-08-16 15:55:26.803591"], ["updated_at", "2015-08-16 15:55:26.803591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
192
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-08-24 09:52:25.926272"], ["updated_at", "2015-08-24 09:52:25.926272"], ["file_ext", "png"], ["mime_type", "image/png"]]
176
193
   (0.1ms) RELEASE SAVEPOINT active_record_2
177
194
   (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", "13"], ["created_at", "2015-08-16 15:55:26.806450"], ["updated_at", "2015-08-16 15:55:26.806450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
195
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-08-24 09:52:25.928207"], ["updated_at", "2015-08-24 09:52:25.928207"], ["file_ext", "png"], ["mime_type", "image/png"]]
179
196
   (0.1ms) RELEASE SAVEPOINT active_record_2
180
197
   (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", "14"], ["created_at", "2015-08-16 15:55:26.808982"], ["updated_at", "2015-08-16 15:55:26.808982"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-08-24 09:52:25.930362"], ["updated_at", "2015-08-24 09:52:25.930362"], ["file_ext", "png"], ["mime_type", "image/png"]]
182
199
   (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", "15"], ["created_at", "2015-08-16 15:55:26.811173"], ["updated_at", "2015-08-16 15:55:26.811173"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
-  (0.1ms) RELEASE SAVEPOINT active_record_2
200
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
201
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
202
+  (0.1ms) ROLLBACK
203
+  (0.1ms) BEGIN
204
+ ---------------------------------------------------------------------------
205
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0003_anonymous
206
+ ---------------------------------------------------------------------------
207
+  (0.0ms) SAVEPOINT active_record_1
208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209
+  (0.0ms) SAVEPOINT active_record_1
186
210
   (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", "16"], ["created_at", "2015-08-16 15:55:26.813189"], ["updated_at", "2015-08-16 15:55:26.813189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
211
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-08-24 09:52:25.934530"], ["updated_at", "2015-08-24 09:52:25.934530"], ["file_ext", "png"], ["mime_type", "image/png"]]
188
212
   (0.1ms) RELEASE SAVEPOINT active_record_2
189
213
   (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", "17"], ["created_at", "2015-08-16 15:55:26.815205"], ["updated_at", "2015-08-16 15:55:26.815205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
214
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-08-24 09:52:25.936680"], ["updated_at", "2015-08-24 09:52:25.936680"], ["file_ext", "png"], ["mime_type", "image/png"]]
191
215
   (0.1ms) RELEASE SAVEPOINT active_record_2
192
216
   (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", "18"], ["created_at", "2015-08-16 15:55:26.817462"], ["updated_at", "2015-08-16 15:55:26.817462"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
217
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-08-24 09:52:25.938685"], ["updated_at", "2015-08-24 09:52:25.938685"], ["file_ext", "png"], ["mime_type", "image/png"]]
194
218
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
- Processing by PushType::WysiwygMediaController#index as JSON
196
- Parameters: {"filter"=>"image"}
197
- PushType::Asset Load (0.7ms) 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
198
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
199
- Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.0ms)
219
+  (0.1ms) SAVEPOINT active_record_2
220
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-08-24 09:52:25.940587"], ["updated_at", "2015-08-24 09:52:25.940587"], ["file_ext", "png"], ["mime_type", "image/png"]]
221
+  (0.1ms) RELEASE SAVEPOINT active_record_2
222
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
200
223
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
201
224
   (0.1ms) ROLLBACK
202
225
   (0.1ms) BEGIN
203
- ---------------------------------------------------------------------------------------
204
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
205
- ---------------------------------------------------------------------------------------
206
-  (0.1ms) SAVEPOINT active_record_1
226
+ ---------------------------------------------------------------------------
227
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_meta: test_0001_anonymous
228
+ ---------------------------------------------------------------------------
229
+  (0.0ms) SAVEPOINT active_record_1
207
230
   (0.0ms) RELEASE SAVEPOINT active_record_1
208
231
   (0.0ms) SAVEPOINT active_record_1
209
232
   (0.1ms) SAVEPOINT active_record_2
210
- 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", "19"], ["created_at", "2015-08-16 15:55:26.837074"], ["updated_at", "2015-08-16 15:55:26.837074"], ["file_ext", "png"], ["mime_type", "image/png"]]
233
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-08-24 09:52:25.952064"], ["updated_at", "2015-08-24 09:52:25.952064"], ["file_ext", "png"], ["mime_type", "image/png"]]
211
234
   (0.1ms) RELEASE SAVEPOINT active_record_2
212
235
   (0.1ms) SAVEPOINT active_record_2
213
- 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", "20"], ["created_at", "2015-08-16 15:55:26.839705"], ["updated_at", "2015-08-16 15:55:26.839705"], ["file_ext", "png"], ["mime_type", "image/png"]]
236
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-08-24 09:52:25.954716"], ["updated_at", "2015-08-24 09:52:25.954716"], ["file_ext", "png"], ["mime_type", "image/png"]]
214
237
   (0.1ms) RELEASE SAVEPOINT active_record_2
215
238
   (0.1ms) SAVEPOINT active_record_2
216
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-08-16 15:55:26.841974"], ["updated_at", "2015-08-16 15:55:26.841974"], ["file_ext", "png"], ["mime_type", "image/png"]]
239
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-08-24 09:52:25.956676"], ["updated_at", "2015-08-24 09:52:25.956676"], ["file_ext", "png"], ["mime_type", "image/png"]]
217
240
   (0.1ms) RELEASE SAVEPOINT active_record_2
218
241
   (0.1ms) SAVEPOINT active_record_2
219
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-08-16 15:55:26.844082"], ["updated_at", "2015-08-16 15:55:26.844082"], ["file_ext", "png"], ["mime_type", "image/png"]]
242
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-08-24 09:52:25.958618"], ["updated_at", "2015-08-24 09:52:25.958618"], ["file_ext", "png"], ["mime_type", "image/png"]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_2
244
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
245
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
246
+  (0.1ms) ROLLBACK
247
+  (0.1ms) BEGIN
248
+ -----------------------------------------------
249
+ PushType::WysiwygFieldTest: test_0002_anonymous
250
+ -----------------------------------------------
251
+  (0.1ms) SAVEPOINT active_record_1
252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253
+  (0.1ms) SAVEPOINT active_record_1
254
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
255
+  (0.1ms) ROLLBACK
256
+  (0.1ms) BEGIN
257
+ -----------------------------------------------
258
+ PushType::WysiwygFieldTest: test_0001_anonymous
259
+ -----------------------------------------------
260
+  (0.1ms) SAVEPOINT active_record_1
261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
262
+  (0.1ms) SAVEPOINT active_record_1
263
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
264
+  (0.1ms) ROLLBACK
265
+  (0.1ms) BEGIN
266
+ --------------------------------------------------------------------------------------
267
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0001_anonymous
268
+ --------------------------------------------------------------------------------------
269
+  (0.1ms) SAVEPOINT active_record_1
270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
271
+  (0.1ms) SAVEPOINT active_record_1
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", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-08-24 09:52:25.973859"], ["updated_at", "2015-08-24 09:52:25.973859"], ["file_ext", "png"], ["mime_type", "image/png"]]
220
274
   (0.1ms) RELEASE SAVEPOINT active_record_2
221
275
   (0.1ms) SAVEPOINT active_record_2
222
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-08-16 15:55:26.846146"], ["updated_at", "2015-08-16 15:55:26.846146"], ["file_ext", "png"], ["mime_type", "image/png"]]
276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-08-24 09:52:25.976156"], ["updated_at", "2015-08-24 09:52:25.976156"], ["file_ext", "png"], ["mime_type", "image/png"]]
223
277
   (0.1ms) RELEASE SAVEPOINT active_record_2
224
278
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-08-16 15:55:26.848396"], ["updated_at", "2015-08-16 15:55:26.848396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-08-24 09:52:25.978177"], ["updated_at", "2015-08-24 09:52:25.978177"], ["file_ext", "png"], ["mime_type", "image/png"]]
226
280
   (0.1ms) RELEASE SAVEPOINT active_record_2
227
281
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-08-16 15:55:26.850471"], ["updated_at", "2015-08-16 15:55:26.850471"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-08-24 09:52:25.980186"], ["updated_at", "2015-08-24 09:52:25.980186"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
283
   (0.1ms) RELEASE SAVEPOINT active_record_2
230
284
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-08-16 15:55:26.852784"], ["updated_at", "2015-08-16 15:55:26.852784"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-08-24 09:52:25.982232"], ["updated_at", "2015-08-24 09:52:25.982232"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
286
   (0.1ms) RELEASE SAVEPOINT active_record_2
233
287
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-08-16 15:55:26.855175"], ["updated_at", "2015-08-16 15:55:26.855175"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
288
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-08-24 09:52:25.985592"], ["updated_at", "2015-08-24 09:52:25.985592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
235
289
   (0.1ms) RELEASE SAVEPOINT active_record_2
236
290
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-08-16 15:55:26.857395"], ["updated_at", "2015-08-16 15:55:26.857395"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
291
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-08-24 09:52:25.987986"], ["updated_at", "2015-08-24 09:52:25.987986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
238
292
   (0.1ms) RELEASE SAVEPOINT active_record_2
239
293
   (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", "29"], ["created_at", "2015-08-16 15:55:26.859807"], ["updated_at", "2015-08-16 15:55:26.859807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
294
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-08-24 09:52:25.990083"], ["updated_at", "2015-08-24 09:52:25.990083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
295
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
296
   (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", "30"], ["created_at", "2015-08-16 15:55:26.861927"], ["updated_at", "2015-08-16 15:55:26.861927"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
297
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-08-24 09:52:25.992117"], ["updated_at", "2015-08-24 09:52:25.992117"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
298
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
299
   (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", "31"], ["created_at", "2015-08-16 15:55:26.864151"], ["updated_at", "2015-08-16 15:55:26.864151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
300
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-08-24 09:52:25.994058"], ["updated_at", "2015-08-24 09:52:25.994058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
301
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
302
   (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", "32"], ["created_at", "2015-08-16 15:55:26.866428"], ["updated_at", "2015-08-16 15:55:26.866428"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
303
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-08-24 09:52:25.996343"], ["updated_at", "2015-08-24 09:52:25.996343"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
304
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
305
   (0.1ms) SAVEPOINT active_record_2
252
- 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", "33"], ["created_at", "2015-08-16 15:55:26.868900"], ["updated_at", "2015-08-16 15:55:26.868900"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
306
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-08-24 09:52:25.998546"], ["updated_at", "2015-08-24 09:52:25.998546"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
307
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
308
   (0.1ms) SAVEPOINT active_record_2
255
- 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", "34"], ["created_at", "2015-08-16 15:55:26.871806"], ["updated_at", "2015-08-16 15:55:26.871806"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-08-24 09:52:26.000583"], ["updated_at", "2015-08-24 09:52:26.000583"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
310
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
311
   (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", "35"], ["created_at", "2015-08-16 15:55:26.874100"], ["updated_at", "2015-08-16 15:55:26.874100"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-08-24 09:52:26.002694"], ["updated_at", "2015-08-24 09:52:26.002694"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
313
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
314
   (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", "36"], ["created_at", "2015-08-16 15:55:26.876196"], ["updated_at", "2015-08-16 15:55:26.876196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-08-24 09:52:26.004707"], ["updated_at", "2015-08-24 09:52:26.004707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
316
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
- Processing by PushType::WysiwygMediaController#index as JSON
264
- Parameters: {"filter"=>"image"}
265
- 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
266
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
267
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
268
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
269
-  (0.1ms) ROLLBACK
270
-  (0.1ms) BEGIN
271
- ---------------------------------------------------------------------------------------
272
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
273
- ---------------------------------------------------------------------------------------
274
-  (0.0ms) SAVEPOINT active_record_1
275
-  (0.0ms) RELEASE SAVEPOINT active_record_1
276
-  (0.0ms) SAVEPOINT active_record_1
277
317
   (0.1ms) SAVEPOINT active_record_2
278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-08-16 15:55:26.884352"], ["updated_at", "2015-08-16 15:55:26.884352"], ["file_ext", "png"], ["mime_type", "image/png"]]
318
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-08-24 09:52:26.006873"], ["updated_at", "2015-08-24 09:52:26.006873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
279
319
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
320
   (0.1ms) SAVEPOINT active_record_2
281
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-08-16 15:55:26.886558"], ["updated_at", "2015-08-16 15:55:26.886558"], ["file_ext", "png"], ["mime_type", "image/png"]]
321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-08-24 09:52:26.008851"], ["updated_at", "2015-08-24 09:52:26.008851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
282
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
283
323
   (0.1ms) SAVEPOINT active_record_2
284
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-08-16 15:55:26.889023"], ["updated_at", "2015-08-16 15:55:26.889023"], ["file_ext", "png"], ["mime_type", "image/png"]]
324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-08-24 09:52:26.010754"], ["updated_at", "2015-08-24 09:52:26.010754"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
285
325
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
+ Processing by PushType::WysiwygMediaController#index as JSON
327
+ Parameters: {"filter"=>"file", "page"=>2}
328
+ PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
329
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
330
+ Completed 200 OK in 83ms (Views: 0.3ms | ActiveRecord: 0.9ms)
331
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
332
+  (0.1ms) ROLLBACK
333
+  (0.1ms) BEGIN
334
+ --------------------------------------------------------------------------------------
335
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0002_anonymous
336
+ --------------------------------------------------------------------------------------
337
+  (0.1ms) SAVEPOINT active_record_1
338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339
+  (0.0ms) SAVEPOINT active_record_1
286
340
   (0.1ms) SAVEPOINT active_record_2
287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-08-16 15:55:26.891182"], ["updated_at", "2015-08-16 15:55:26.891182"], ["file_ext", "png"], ["mime_type", "image/png"]]
341
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-08-24 09:52:26.100219"], ["updated_at", "2015-08-24 09:52:26.100219"], ["file_ext", "png"], ["mime_type", "image/png"]]
288
342
   (0.1ms) RELEASE SAVEPOINT active_record_2
289
343
   (0.1ms) SAVEPOINT active_record_2
290
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-08-16 15:55:26.893218"], ["updated_at", "2015-08-16 15:55:26.893218"], ["file_ext", "png"], ["mime_type", "image/png"]]
344
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-08-24 09:52:26.102956"], ["updated_at", "2015-08-24 09:52:26.102956"], ["file_ext", "png"], ["mime_type", "image/png"]]
291
345
   (0.1ms) RELEASE SAVEPOINT active_record_2
292
346
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-08-16 15:55:26.895433"], ["updated_at", "2015-08-16 15:55:26.895433"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-08-24 09:52:26.105314"], ["updated_at", "2015-08-24 09:52:26.105314"], ["file_ext", "png"], ["mime_type", "image/png"]]
294
348
   (0.1ms) RELEASE SAVEPOINT active_record_2
295
349
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-08-16 15:55:26.897632"], ["updated_at", "2015-08-16 15:55:26.897632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
350
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-08-24 09:52:26.107352"], ["updated_at", "2015-08-24 09:52:26.107352"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
351
   (0.1ms) RELEASE SAVEPOINT active_record_2
298
352
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-08-16 15:55:26.899888"], ["updated_at", "2015-08-16 15:55:26.899888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
353
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-08-24 09:52:26.109269"], ["updated_at", "2015-08-24 09:52:26.109269"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
354
   (0.1ms) RELEASE SAVEPOINT active_record_2
301
355
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-08-16 15:55:26.901917"], ["updated_at", "2015-08-16 15:55:26.901917"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
356
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-08-24 09:52:26.111600"], ["updated_at", "2015-08-24 09:52:26.111600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
303
357
   (0.1ms) RELEASE SAVEPOINT active_record_2
304
358
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-08-16 15:55:26.904071"], ["updated_at", "2015-08-16 15:55:26.904071"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
359
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-08-24 09:52:26.113517"], ["updated_at", "2015-08-24 09:52:26.113517"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
306
360
   (0.1ms) RELEASE SAVEPOINT active_record_2
307
361
   (0.1ms) SAVEPOINT active_record_2
308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-08-16 15:55:26.906544"], ["updated_at", "2015-08-16 15:55:26.906544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
362
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-08-24 09:52:26.115545"], ["updated_at", "2015-08-24 09:52:26.115545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
363
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
364
   (0.1ms) SAVEPOINT active_record_2
311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-08-16 15:55:26.908686"], ["updated_at", "2015-08-16 15:55:26.908686"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
365
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-08-24 09:52:26.117602"], ["updated_at", "2015-08-24 09:52:26.117602"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
366
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
367
   (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", "49"], ["created_at", "2015-08-16 15:55:26.910888"], ["updated_at", "2015-08-16 15:55:26.910888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
368
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-08-24 09:52:26.119483"], ["updated_at", "2015-08-24 09:52:26.119483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
369
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
370
   (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", "50"], ["created_at", "2015-08-16 15:55:26.912949"], ["updated_at", "2015-08-16 15:55:26.912949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
371
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-08-24 09:52:26.121591"], ["updated_at", "2015-08-24 09:52:26.121591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
372
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
373
   (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", "51"], ["created_at", "2015-08-16 15:55:26.915023"], ["updated_at", "2015-08-16 15:55:26.915023"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
374
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-08-24 09:52:26.123523"], ["updated_at", "2015-08-24 09:52:26.123523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
375
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
376
   (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", "52"], ["created_at", "2015-08-16 15:55:26.917262"], ["updated_at", "2015-08-16 15:55:26.917262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-08-24 09:52:26.125501"], ["updated_at", "2015-08-24 09:52:26.125501"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
378
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
379
   (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", "53"], ["created_at", "2015-08-16 15:55:26.919289"], ["updated_at", "2015-08-16 15:55:26.919289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-08-24 09:52:26.127473"], ["updated_at", "2015-08-24 09:52:26.127473"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
381
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
382
   (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", "54"], ["created_at", "2015-08-16 15:55:26.921460"], ["updated_at", "2015-08-16 15:55:26.921460"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-08-24 09:52:26.129394"], ["updated_at", "2015-08-24 09:52:26.129394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
384
+  (0.1ms) RELEASE SAVEPOINT active_record_2
385
+  (0.1ms) SAVEPOINT active_record_2
386
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-08-24 09:52:26.131377"], ["updated_at", "2015-08-24 09:52:26.131377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_2
388
+  (0.1ms) SAVEPOINT active_record_2
389
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-08-24 09:52:26.133511"], ["updated_at", "2015-08-24 09:52:26.133511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
390
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
- Processing by PushType::WysiwygMediaController#index as JSON
332
- Parameters: {"filter"=>"image"}
333
- 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
334
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
335
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
336
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
337
-  (0.1ms) ROLLBACK
338
-  (0.1ms) BEGIN
339
- ---------------------------------------------------------------------------------------
340
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
341
- ---------------------------------------------------------------------------------------
342
-  (0.1ms) SAVEPOINT active_record_1
343
-  (0.1ms) RELEASE SAVEPOINT active_record_1
344
-  (0.1ms) SAVEPOINT active_record_1
345
391
   (0.1ms) SAVEPOINT active_record_2
346
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.929927"], ["updated_at", "2015-08-16 15:55:26.929927"], ["file_ext", "png"], ["mime_type", "image/png"]]
392
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-08-24 09:52:26.135592"], ["updated_at", "2015-08-24 09:52:26.135592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
347
393
   (0.1ms) RELEASE SAVEPOINT active_record_2
394
+ Processing by PushType::WysiwygMediaController#index as JSON
395
+ Parameters: {"filter"=>"file", "page"=>2}
396
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
397
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
398
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
399
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
400
+  (0.2ms) ROLLBACK
401
+  (0.1ms) BEGIN
402
+ --------------------------------------------------------------------------------------
403
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0003_anonymous
404
+ --------------------------------------------------------------------------------------
405
+  (0.1ms) SAVEPOINT active_record_1
406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
407
+  (0.0ms) SAVEPOINT active_record_1
348
408
   (0.1ms) SAVEPOINT active_record_2
349
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.932119"], ["updated_at", "2015-08-16 15:55:26.932119"], ["file_ext", "png"], ["mime_type", "image/png"]]
409
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-08-24 09:52:26.143126"], ["updated_at", "2015-08-24 09:52:26.143126"], ["file_ext", "png"], ["mime_type", "image/png"]]
350
410
   (0.1ms) RELEASE SAVEPOINT active_record_2
351
411
   (0.1ms) SAVEPOINT active_record_2
352
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-08-16 15:55:26.934220"], ["updated_at", "2015-08-16 15:55:26.934220"], ["file_ext", "png"], ["mime_type", "image/png"]]
412
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-08-24 09:52:26.145575"], ["updated_at", "2015-08-24 09:52:26.145575"], ["file_ext", "png"], ["mime_type", "image/png"]]
353
413
   (0.1ms) RELEASE SAVEPOINT active_record_2
354
414
   (0.1ms) SAVEPOINT active_record_2
355
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-08-16 15:55:26.936269"], ["updated_at", "2015-08-16 15:55:26.936269"], ["file_ext", "png"], ["mime_type", "image/png"]]
415
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-08-24 09:52:26.147555"], ["updated_at", "2015-08-24 09:52:26.147555"], ["file_ext", "png"], ["mime_type", "image/png"]]
356
416
   (0.1ms) RELEASE SAVEPOINT active_record_2
357
417
   (0.1ms) SAVEPOINT active_record_2
358
- 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", "59"], ["created_at", "2015-08-16 15:55:26.938492"], ["updated_at", "2015-08-16 15:55:26.938492"], ["file_ext", "png"], ["mime_type", "image/png"]]
418
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "60"], ["created_at", "2015-08-24 09:52:26.149618"], ["updated_at", "2015-08-24 09:52:26.149618"], ["file_ext", "png"], ["mime_type", "image/png"]]
359
419
   (0.1ms) RELEASE SAVEPOINT active_record_2
360
420
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-08-16 15:55:26.940990"], ["updated_at", "2015-08-16 15:55:26.940990"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
421
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "61"], ["created_at", "2015-08-24 09:52:26.151533"], ["updated_at", "2015-08-24 09:52:26.151533"], ["file_ext", "png"], ["mime_type", "image/png"]]
362
422
   (0.1ms) RELEASE SAVEPOINT active_record_2
363
423
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-08-16 15:55:26.943127"], ["updated_at", "2015-08-16 15:55:26.943127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
424
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-08-24 09:52:26.153586"], ["updated_at", "2015-08-24 09:52:26.153586"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
365
425
   (0.1ms) RELEASE SAVEPOINT active_record_2
366
426
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-08-16 15:55:26.945177"], ["updated_at", "2015-08-16 15:55:26.945177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
427
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-08-24 09:52:26.155671"], ["updated_at", "2015-08-24 09:52:26.155671"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
368
428
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
429
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-08-16 15:55:26.947286"], ["updated_at", "2015-08-16 15:55:26.947286"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
430
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-08-24 09:52:26.157797"], ["updated_at", "2015-08-24 09:52:26.157797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
371
431
   (0.1ms) RELEASE SAVEPOINT active_record_2
372
432
   (0.1ms) SAVEPOINT active_record_2
373
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-08-16 15:55:26.949447"], ["updated_at", "2015-08-16 15:55:26.949447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
433
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-08-24 09:52:26.159739"], ["updated_at", "2015-08-24 09:52:26.159739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
374
434
   (0.1ms) RELEASE SAVEPOINT active_record_2
375
435
   (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", "65"], ["created_at", "2015-08-16 15:55:26.951663"], ["updated_at", "2015-08-16 15:55:26.951663"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
436
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-08-24 09:52:26.161726"], ["updated_at", "2015-08-24 09:52:26.161726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
437
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
438
   (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", "66"], ["created_at", "2015-08-16 15:55:26.953888"], ["updated_at", "2015-08-16 15:55:26.953888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
439
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-08-24 09:52:26.163661"], ["updated_at", "2015-08-24 09:52:26.163661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
440
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
441
   (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", "67"], ["created_at", "2015-08-16 15:55:26.956031"], ["updated_at", "2015-08-16 15:55:26.956031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
442
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-08-24 09:52:26.165743"], ["updated_at", "2015-08-24 09:52:26.165743"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
443
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
444
   (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", "68"], ["created_at", "2015-08-16 15:55:26.958168"], ["updated_at", "2015-08-16 15:55:26.958168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
445
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-08-24 09:52:26.167931"], ["updated_at", "2015-08-24 09:52:26.167931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
446
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
447
   (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", "69"], ["created_at", "2015-08-16 15:55:26.960197"], ["updated_at", "2015-08-16 15:55:26.960197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
448
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-08-24 09:52:26.169971"], ["updated_at", "2015-08-24 09:52:26.169971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
449
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
450
   (0.1ms) SAVEPOINT active_record_2
391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-08-16 15:55:26.962352"], ["updated_at", "2015-08-16 15:55:26.962352"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
451
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-08-24 09:52:26.171932"], ["updated_at", "2015-08-24 09:52:26.171932"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
452
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
453
   (0.1ms) SAVEPOINT active_record_2
394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-08-16 15:55:26.964358"], ["updated_at", "2015-08-16 15:55:26.964358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
454
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-08-24 09:52:26.173825"], ["updated_at", "2015-08-24 09:52:26.173825"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
455
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
456
   (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-08-16 15:55:26.966362"], ["updated_at", "2015-08-16 15:55:26.966362"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
457
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-08-24 09:52:26.175824"], ["updated_at", "2015-08-24 09:52:26.175824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
458
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
- Processing by PushType::WysiwygMediaController#index as JSON
400
- Parameters: {"filter"=>"image"}
401
- 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
402
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
403
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
404
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
405
-  (0.1ms) ROLLBACK
406
-  (0.1ms) BEGIN
407
- ----------------------------------------------------------------------
408
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
409
- ----------------------------------------------------------------------
410
-  (0.1ms) SAVEPOINT active_record_1
411
-  (0.0ms) RELEASE SAVEPOINT active_record_1
412
-  (0.0ms) SAVEPOINT active_record_1
413
459
   (0.1ms) SAVEPOINT active_record_2
414
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-08-16 15:55:26.975832"], ["updated_at", "2015-08-16 15:55:26.975832"], ["file_ext", "png"], ["mime_type", "image/png"]]
460
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-08-24 09:52:26.178122"], ["updated_at", "2015-08-24 09:52:26.178122"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
415
461
   (0.1ms) RELEASE SAVEPOINT active_record_2
462
+ Processing by PushType::WysiwygMediaController#index as JSON
463
+ Parameters: {"filter"=>"file", "page"=>2}
464
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
465
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
466
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
416
467
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
417
-  (0.2ms) ROLLBACK
418
-  (0.0ms) BEGIN
419
- ----------------------------------------------------------------------
420
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
421
- ----------------------------------------------------------------------
422
-  (0.0ms) SAVEPOINT active_record_1
468
+  (0.1ms) ROLLBACK
469
+  (0.1ms) BEGIN
470
+ --------------------------------------------------------------------------------------
471
+ PushType::WysiwygMediaControllerTest::GET #index::with pagination: test_0004_anonymous
472
+ --------------------------------------------------------------------------------------
473
+  (0.1ms) SAVEPOINT active_record_1
423
474
   (0.0ms) RELEASE SAVEPOINT active_record_1
424
475
   (0.0ms) SAVEPOINT active_record_1
425
476
   (0.1ms) SAVEPOINT active_record_2
426
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.980044"], ["updated_at", "2015-08-16 15:55:26.980044"], ["file_ext", "png"], ["mime_type", "image/png"]]
477
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-08-24 09:52:26.185693"], ["updated_at", "2015-08-24 09:52:26.185693"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-08-24 09:52:26.187921"], ["updated_at", "2015-08-24 09:52:26.187921"], ["file_ext", "png"], ["mime_type", "image/png"]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_2
482
+  (0.1ms) SAVEPOINT active_record_2
483
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-08-24 09:52:26.189922"], ["updated_at", "2015-08-24 09:52:26.189922"], ["file_ext", "png"], ["mime_type", "image/png"]]
484
+  (0.1ms) RELEASE SAVEPOINT active_record_2
485
+  (0.1ms) SAVEPOINT active_record_2
486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-08-24 09:52:26.192057"], ["updated_at", "2015-08-24 09:52:26.192057"], ["file_ext", "png"], ["mime_type", "image/png"]]
487
+  (0.1ms) RELEASE SAVEPOINT active_record_2
488
+  (0.1ms) SAVEPOINT active_record_2
489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-08-24 09:52:26.194044"], ["updated_at", "2015-08-24 09:52:26.194044"], ["file_ext", "png"], ["mime_type", "image/png"]]
490
+  (0.1ms) RELEASE SAVEPOINT active_record_2
491
+  (0.1ms) SAVEPOINT active_record_2
492
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-08-24 09:52:26.196124"], ["updated_at", "2015-08-24 09:52:26.196124"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
493
+  (0.1ms) RELEASE SAVEPOINT active_record_2
494
+  (0.1ms) SAVEPOINT active_record_2
495
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-08-24 09:52:26.198260"], ["updated_at", "2015-08-24 09:52:26.198260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
496
+  (0.1ms) RELEASE SAVEPOINT active_record_2
497
+  (0.1ms) SAVEPOINT active_record_2
498
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-08-24 09:52:26.214562"], ["updated_at", "2015-08-24 09:52:26.214562"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
499
+  (0.1ms) RELEASE SAVEPOINT active_record_2
500
+  (0.1ms) SAVEPOINT active_record_2
501
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-08-24 09:52:26.216923"], ["updated_at", "2015-08-24 09:52:26.216923"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
502
+  (0.1ms) RELEASE SAVEPOINT active_record_2
503
+  (0.1ms) SAVEPOINT active_record_2
504
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-08-24 09:52:26.219855"], ["updated_at", "2015-08-24 09:52:26.219855"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_2
506
+  (0.1ms) SAVEPOINT active_record_2
507
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-08-24 09:52:26.222593"], ["updated_at", "2015-08-24 09:52:26.222593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
508
+  (0.1ms) RELEASE SAVEPOINT active_record_2
509
+  (0.1ms) SAVEPOINT active_record_2
510
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-08-24 09:52:26.224654"], ["updated_at", "2015-08-24 09:52:26.224654"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
+  (0.1ms) RELEASE SAVEPOINT active_record_2
512
+  (0.1ms) SAVEPOINT active_record_2
513
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-08-24 09:52:26.226680"], ["updated_at", "2015-08-24 09:52:26.226680"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
+  (0.1ms) RELEASE SAVEPOINT active_record_2
515
+  (0.1ms) SAVEPOINT active_record_2
516
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-08-24 09:52:26.228912"], ["updated_at", "2015-08-24 09:52:26.228912"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
+  (0.1ms) RELEASE SAVEPOINT active_record_2
518
+  (0.1ms) SAVEPOINT active_record_2
519
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-08-24 09:52:26.231388"], ["updated_at", "2015-08-24 09:52:26.231388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
+  (0.1ms) RELEASE SAVEPOINT active_record_2
521
+  (0.1ms) SAVEPOINT active_record_2
522
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-08-24 09:52:26.234116"], ["updated_at", "2015-08-24 09:52:26.234116"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
523
+  (0.2ms) RELEASE SAVEPOINT active_record_2
524
+  (0.1ms) SAVEPOINT active_record_2
525
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-08-24 09:52:26.236561"], ["updated_at", "2015-08-24 09:52:26.236561"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
427
526
   (0.1ms) RELEASE SAVEPOINT active_record_2
428
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
429
-  (0.1ms) ROLLBACK
430
-  (0.1ms) BEGIN
431
- ----------------------------------------------------------------------
432
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
433
- ----------------------------------------------------------------------
434
-  (0.1ms) SAVEPOINT active_record_1
435
-  (0.0ms) RELEASE SAVEPOINT active_record_1
436
-  (0.0ms) SAVEPOINT active_record_1
437
527
   (0.1ms) SAVEPOINT active_record_2
438
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-08-16 15:55:26.983713"], ["updated_at", "2015-08-16 15:55:26.983713"], ["file_ext", "png"], ["mime_type", "image/png"]]
528
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-08-24 09:52:26.238805"], ["updated_at", "2015-08-24 09:52:26.238805"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
439
529
   (0.1ms) RELEASE SAVEPOINT active_record_2
530
+ Processing by PushType::WysiwygMediaController#index as JSON
531
+ Parameters: {"filter"=>"file", "page"=>2}
532
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
533
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
534
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
440
535
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
441
536
   (0.1ms) ROLLBACK
442
537
   (0.1ms) BEGIN
443
- ----------------------------------------------------------------------
444
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
445
- ----------------------------------------------------------------------
538
+ --------------------------------------------------------------------------
539
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0004_anonymous
540
+ --------------------------------------------------------------------------
446
541
   (0.1ms) SAVEPOINT active_record_1
447
542
   (0.0ms) RELEASE SAVEPOINT active_record_1
448
543
   (0.0ms) SAVEPOINT active_record_1
449
544
   (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", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-08-16 15:55:26.987677"], ["updated_at", "2015-08-16 15:55:26.987677"], ["file_ext", "png"], ["mime_type", "image/png"]]
545
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-08-24 09:52:26.249169"], ["updated_at", "2015-08-24 09:52:26.249169"], ["file_ext", "png"], ["mime_type", "image/png"]]
451
546
   (0.1ms) RELEASE SAVEPOINT active_record_2
452
547
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
453
548
   (0.1ms) ROLLBACK
454
549
   (0.1ms) BEGIN
455
- ----------------------------------------------------------------------
456
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
457
- ----------------------------------------------------------------------
458
-  (0.1ms) SAVEPOINT active_record_1
459
-  (0.1ms) RELEASE SAVEPOINT active_record_1
550
+ --------------------------------------------------------------------------
551
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0005_anonymous
552
+ --------------------------------------------------------------------------
553
+  (0.0ms) SAVEPOINT active_record_1
554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
460
555
   (0.0ms) SAVEPOINT active_record_1
461
556
   (0.1ms) SAVEPOINT active_record_2
462
- SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-08-16 15:55:26.991949"], ["updated_at", "2015-08-16 15:55:26.991949"], ["file_ext", "png"], ["mime_type", "image/png"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-08-24 09:52:26.253543"], ["updated_at", "2015-08-24 09:52:26.253543"], ["file_ext", "png"], ["mime_type", "image/png"]]
463
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
464
559
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
465
560
   (0.1ms) ROLLBACK
466
561
   (0.1ms) BEGIN
467
- ----------------------------------------------------------------------
468
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
469
- ----------------------------------------------------------------------
470
-  (0.1ms) SAVEPOINT active_record_1
562
+ --------------------------------------------------------------------------
563
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0001_anonymous
564
+ --------------------------------------------------------------------------
565
+  (0.0ms) SAVEPOINT active_record_1
471
566
   (0.0ms) RELEASE SAVEPOINT active_record_1
472
567
   (0.0ms) SAVEPOINT active_record_1
473
568
   (0.1ms) SAVEPOINT active_record_2
474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-08-16 15:55:26.996108"], ["updated_at", "2015-08-16 15:55:26.996108"], ["file_ext", "png"], ["mime_type", "image/png"]]
569
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-08-24 09:52:26.258187"], ["updated_at", "2015-08-24 09:52:26.258187"], ["file_ext", "png"], ["mime_type", "image/png"]]
475
570
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
571
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
477
572
   (0.1ms) ROLLBACK
478
573
   (0.1ms) BEGIN
479
- ----------------------------------------------------------------------
480
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
481
- ----------------------------------------------------------------------
482
-  (0.1ms) SAVEPOINT active_record_1
574
+ --------------------------------------------------------------------------
575
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0002_anonymous
576
+ --------------------------------------------------------------------------
577
+  (0.0ms) SAVEPOINT active_record_1
483
578
   (0.0ms) RELEASE SAVEPOINT active_record_1
484
579
   (0.1ms) SAVEPOINT active_record_1
485
580
   (0.1ms) SAVEPOINT active_record_2
486
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-08-16 15:55:27.000210"], ["updated_at", "2015-08-16 15:55:27.000210"], ["file_ext", "png"], ["mime_type", "image/png"]]
581
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-08-24 09:52:26.262010"], ["updated_at", "2015-08-24 09:52:26.262010"], ["file_ext", "png"], ["mime_type", "image/png"]]
487
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
488
583
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
489
584
   (0.1ms) ROLLBACK
490
585
   (0.1ms) BEGIN
491
- ----------------------------------------------------------------------------------------
492
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
493
- ----------------------------------------------------------------------------------------
494
-  (0.1ms) SAVEPOINT active_record_1
495
-  (0.1ms) RELEASE SAVEPOINT active_record_1
586
+ --------------------------------------------------------------------------
587
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0006_anonymous
588
+ --------------------------------------------------------------------------
496
589
   (0.0ms) SAVEPOINT active_record_1
497
- Processing by PushType::WysiwygMediaController#create as JSON
498
- Parameters: {"asset"=>{}}
499
-  (0.1ms) SAVEPOINT active_record_2
500
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
501
- Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.2ms)
502
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
503
-  (0.1ms) ROLLBACK
504
-  (0.1ms) BEGIN
505
- ----------------------------------------------------------------------------------------
506
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
507
- ----------------------------------------------------------------------------------------
508
-  (0.1ms) SAVEPOINT active_record_1
509
-  (0.1ms) RELEASE SAVEPOINT active_record_1
510
-  (0.1ms) SAVEPOINT active_record_1
511
- Processing by PushType::WysiwygMediaController#create as JSON
512
- Parameters: {"asset"=>{}}
513
-  (0.1ms) SAVEPOINT active_record_2
514
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
515
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
516
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
517
-  (0.1ms) ROLLBACK
518
-  (0.1ms) BEGIN
519
- ----------------------------------------------------------------------------------------
520
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
521
- ----------------------------------------------------------------------------------------
522
-  (0.1ms) SAVEPOINT active_record_1
523
-  (0.1ms) RELEASE SAVEPOINT active_record_1
590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
524
591
   (0.0ms) SAVEPOINT active_record_1
525
- Processing by PushType::WysiwygMediaController#create as JSON
526
- Parameters: {"asset"=>{}}
527
592
   (0.1ms) SAVEPOINT active_record_2
528
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
529
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
593
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "97"], ["created_at", "2015-08-24 09:52:26.265999"], ["updated_at", "2015-08-24 09:52:26.265999"], ["file_ext", "png"], ["mime_type", "image/png"]]
594
+  (0.1ms) RELEASE SAVEPOINT active_record_2
595
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
596
+  (0.1ms) ROLLBACK
597
+  (0.1ms) BEGIN
598
+ --------------------------------------------------------------------------
599
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0003_anonymous
600
+ --------------------------------------------------------------------------
601
+  (0.1ms) SAVEPOINT active_record_1
602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
603
+  (0.1ms) SAVEPOINT active_record_1
604
+  (0.1ms) SAVEPOINT active_record_2
605
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-08-24 09:52:26.270234"], ["updated_at", "2015-08-24 09:52:26.270234"], ["file_ext", "png"], ["mime_type", "image/png"]]
606
+  (0.1ms) RELEASE SAVEPOINT active_record_2
530
607
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
531
608
   (0.1ms) ROLLBACK
532
609
   (0.1ms) BEGIN
533
- ----------------------------------------------------------------------------------
534
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
535
- ----------------------------------------------------------------------------------
610
+ --------------------------------------------------------------------------
611
+ PushType::WysiwygMediaHelperTest::#wysiwyg_asset_hash: test_0007_anonymous
612
+ --------------------------------------------------------------------------
536
613
   (0.0ms) SAVEPOINT active_record_1
537
614
   (0.0ms) RELEASE SAVEPOINT active_record_1
538
615
   (0.0ms) SAVEPOINT active_record_1
539
616
   (0.1ms) SAVEPOINT active_record_2
540
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-08-16 15:55:27.025523"], ["updated_at", "2015-08-16 15:55:27.025523"], ["file_ext", "png"], ["mime_type", "image/png"]]
617
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-08-24 09:52:26.274324"], ["updated_at", "2015-08-24 09:52:26.274324"], ["file_ext", "png"], ["mime_type", "image/png"]]
541
618
   (0.1ms) RELEASE SAVEPOINT active_record_2
619
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
620
+  (0.1ms) ROLLBACK
621
+  (0.1ms) BEGIN
622
+ -------------------------------------------------------------------------------------------
623
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0001_anonymous
624
+ -------------------------------------------------------------------------------------------
625
+  (0.1ms) SAVEPOINT active_record_1
626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (0.1ms) SAVEPOINT active_record_1
542
628
   (0.1ms) SAVEPOINT active_record_2
543
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2015-08-16 15:55:27.027846"], ["updated_at", "2015-08-16 15:55:27.027846"], ["file_ext", "png"], ["mime_type", "image/png"]]
629
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-08-24 09:52:26.280281"], ["updated_at", "2015-08-24 09:52:26.280281"], ["file_ext", "png"], ["mime_type", "image/png"]]
544
630
   (0.1ms) RELEASE SAVEPOINT active_record_2
545
631
   (0.1ms) SAVEPOINT active_record_2
546
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-08-16 15:55:27.030003"], ["updated_at", "2015-08-16 15:55:27.030003"], ["file_ext", "png"], ["mime_type", "image/png"]]
632
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-08-24 09:52:26.282638"], ["updated_at", "2015-08-24 09:52:26.282638"], ["file_ext", "png"], ["mime_type", "image/png"]]
547
633
   (0.1ms) RELEASE SAVEPOINT active_record_2
548
634
   (0.1ms) SAVEPOINT active_record_2
549
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-08-16 15:55:27.032124"], ["updated_at", "2015-08-16 15:55:27.032124"], ["file_ext", "png"], ["mime_type", "image/png"]]
635
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-08-24 09:52:26.284798"], ["updated_at", "2015-08-24 09:52:26.284798"], ["file_ext", "png"], ["mime_type", "image/png"]]
550
636
   (0.1ms) RELEASE SAVEPOINT active_record_2
551
637
   (0.1ms) SAVEPOINT active_record_2
552
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-08-16 15:55:27.034129"], ["updated_at", "2015-08-16 15:55:27.034129"], ["file_ext", "png"], ["mime_type", "image/png"]]
638
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-08-24 09:52:26.287184"], ["updated_at", "2015-08-24 09:52:26.287184"], ["file_ext", "png"], ["mime_type", "image/png"]]
553
639
   (0.1ms) RELEASE SAVEPOINT active_record_2
554
640
   (0.1ms) SAVEPOINT active_record_2
555
- 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-08-16 15:55:27.036375"], ["updated_at", "2015-08-16 15:55:27.036375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
641
+ SQL (22.0ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-08-24 09:52:26.289431"], ["updated_at", "2015-08-24 09:52:26.289431"], ["file_ext", "png"], ["mime_type", "image/png"]]
556
642
   (0.1ms) RELEASE SAVEPOINT active_record_2
557
643
   (0.1ms) SAVEPOINT active_record_2
558
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-08-16 15:55:27.039052"], ["updated_at", "2015-08-16 15:55:27.039052"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
644
+ SQL (5.8ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-08-24 09:52:26.314016"], ["updated_at", "2015-08-24 09:52:26.314016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
559
645
   (0.1ms) RELEASE SAVEPOINT active_record_2
560
646
   (0.1ms) SAVEPOINT active_record_2
561
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-08-16 15:55:27.041532"], ["updated_at", "2015-08-16 15:55:27.041532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
647
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-08-24 09:52:26.321835"], ["updated_at", "2015-08-24 09:52:26.321835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
562
648
   (0.1ms) RELEASE SAVEPOINT active_record_2
563
649
   (0.1ms) SAVEPOINT active_record_2
564
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-08-16 15:55:27.043701"], ["updated_at", "2015-08-16 15:55:27.043701"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
650
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-08-24 09:52:26.324184"], ["updated_at", "2015-08-24 09:52:26.324184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
565
651
   (0.1ms) RELEASE SAVEPOINT active_record_2
566
652
   (0.1ms) SAVEPOINT active_record_2
567
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-08-16 15:55:27.045985"], ["updated_at", "2015-08-16 15:55:27.045985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
653
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-08-24 09:52:26.326769"], ["updated_at", "2015-08-24 09:52:26.326769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
568
654
   (0.1ms) RELEASE SAVEPOINT active_record_2
569
655
   (0.1ms) SAVEPOINT active_record_2
570
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-08-16 15:55:27.048394"], ["updated_at", "2015-08-16 15:55:27.048394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
571
-  (0.2ms) RELEASE SAVEPOINT active_record_2
572
-  (0.1ms) SAVEPOINT active_record_2
573
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-08-16 15:55:27.050670"], ["updated_at", "2015-08-16 15:55:27.050670"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
574
-  (0.1ms) RELEASE SAVEPOINT active_record_2
575
-  (0.1ms) SAVEPOINT active_record_2
576
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-08-16 15:55:27.052732"], ["updated_at", "2015-08-16 15:55:27.052732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
656
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-08-24 09:52:26.328834"], ["updated_at", "2015-08-24 09:52:26.328834"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
657
   (0.1ms) RELEASE SAVEPOINT active_record_2
578
658
   (0.1ms) SAVEPOINT active_record_2
579
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-08-16 15:55:27.055115"], ["updated_at", "2015-08-16 15:55:27.055115"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-08-24 09:52:26.330775"], ["updated_at", "2015-08-24 09:52:26.330775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
580
660
   (0.1ms) RELEASE SAVEPOINT active_record_2
581
661
   (0.1ms) SAVEPOINT active_record_2
582
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-08-16 15:55:27.057432"], ["updated_at", "2015-08-16 15:55:27.057432"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
662
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-08-24 09:52:26.332752"], ["updated_at", "2015-08-24 09:52:26.332752"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
583
663
   (0.1ms) RELEASE SAVEPOINT active_record_2
584
664
   (0.1ms) SAVEPOINT active_record_2
585
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-08-16 15:55:27.059616"], ["updated_at", "2015-08-16 15:55:27.059616"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
665
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-08-24 09:52:26.334766"], ["updated_at", "2015-08-24 09:52:26.334766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
586
666
   (0.1ms) RELEASE SAVEPOINT active_record_2
587
667
   (0.1ms) SAVEPOINT active_record_2
588
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.061784"], ["updated_at", "2015-08-16 15:55:27.061784"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
668
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-08-24 09:52:26.336961"], ["updated_at", "2015-08-24 09:52:26.336961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
589
669
   (0.1ms) RELEASE SAVEPOINT active_record_2
590
670
   (0.1ms) SAVEPOINT active_record_2
591
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.063864"], ["updated_at", "2015-08-16 15:55:27.063864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
671
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-08-24 09:52:26.339028"], ["updated_at", "2015-08-24 09:52:26.339028"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
592
672
   (0.1ms) RELEASE SAVEPOINT active_record_2
593
- Processing by PushType::WysiwygMediaController#index as JSON
594
- Parameters: {"filter"=>"file", "page"=>2}
595
- 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
596
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
597
- Completed 200 OK in 110ms (Views: 0.2ms | ActiveRecord: 0.6ms)
598
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
599
-  (0.1ms) ROLLBACK
600
-  (0.0ms) BEGIN
601
- ----------------------------------------------------------------------------------
602
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
603
- ----------------------------------------------------------------------------------
604
-  (0.0ms) SAVEPOINT active_record_1
605
-  (0.0ms) RELEASE SAVEPOINT active_record_1
606
-  (0.0ms) SAVEPOINT active_record_1
607
673
   (0.1ms) SAVEPOINT active_record_2
608
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-08-16 15:55:27.179346"], ["updated_at", "2015-08-16 15:55:27.179346"], ["file_ext", "png"], ["mime_type", "image/png"]]
674
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-08-24 09:52:26.341065"], ["updated_at", "2015-08-24 09:52:26.341065"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
609
675
   (0.1ms) RELEASE SAVEPOINT active_record_2
610
676
   (0.1ms) SAVEPOINT active_record_2
611
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-08-16 15:55:27.181725"], ["updated_at", "2015-08-16 15:55:27.181725"], ["file_ext", "png"], ["mime_type", "image/png"]]
677
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-08-24 09:52:26.343133"], ["updated_at", "2015-08-24 09:52:26.343133"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
612
678
   (0.1ms) RELEASE SAVEPOINT active_record_2
613
679
   (0.1ms) SAVEPOINT active_record_2
614
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-08-16 15:55:27.183891"], ["updated_at", "2015-08-16 15:55:27.183891"], ["file_ext", "png"], ["mime_type", "image/png"]]
680
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-08-24 09:52:26.345111"], ["updated_at", "2015-08-24 09:52:26.345111"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
615
681
   (0.1ms) RELEASE SAVEPOINT active_record_2
682
+ Processing by PushType::WysiwygMediaController#index as JSON
683
+ Parameters: {"filter"=>"image"}
684
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
685
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
686
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
687
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
688
+  (0.1ms) ROLLBACK
689
+  (0.1ms) BEGIN
690
+ -------------------------------------------------------------------------------------------
691
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0002_anonymous
692
+ -------------------------------------------------------------------------------------------
693
+  (0.0ms) SAVEPOINT active_record_1
694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
695
+  (0.0ms) SAVEPOINT active_record_1
616
696
   (0.1ms) SAVEPOINT active_record_2
617
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-08-16 15:55:27.185926"], ["updated_at", "2015-08-16 15:55:27.185926"], ["file_ext", "png"], ["mime_type", "image/png"]]
697
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-08-24 09:52:26.353423"], ["updated_at", "2015-08-24 09:52:26.353423"], ["file_ext", "png"], ["mime_type", "image/png"]]
618
698
   (0.1ms) RELEASE SAVEPOINT active_record_2
619
699
   (0.1ms) SAVEPOINT active_record_2
620
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-08-16 15:55:27.188012"], ["updated_at", "2015-08-16 15:55:27.188012"], ["file_ext", "png"], ["mime_type", "image/png"]]
700
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-08-24 09:52:26.355449"], ["updated_at", "2015-08-24 09:52:26.355449"], ["file_ext", "png"], ["mime_type", "image/png"]]
621
701
   (0.1ms) RELEASE SAVEPOINT active_record_2
622
702
   (0.1ms) SAVEPOINT active_record_2
623
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.190172"], ["updated_at", "2015-08-16 15:55:27.190172"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
703
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-08-24 09:52:26.357562"], ["updated_at", "2015-08-24 09:52:26.357562"], ["file_ext", "png"], ["mime_type", "image/png"]]
624
704
   (0.1ms) RELEASE SAVEPOINT active_record_2
625
705
   (0.1ms) SAVEPOINT active_record_2
626
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.192190"], ["updated_at", "2015-08-16 15:55:27.192190"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
706
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-08-24 09:52:26.359777"], ["updated_at", "2015-08-24 09:52:26.359777"], ["file_ext", "png"], ["mime_type", "image/png"]]
627
707
   (0.1ms) RELEASE SAVEPOINT active_record_2
628
708
   (0.1ms) SAVEPOINT active_record_2
629
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-08-16 15:55:27.194253"], ["updated_at", "2015-08-16 15:55:27.194253"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
709
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-08-24 09:52:26.361872"], ["updated_at", "2015-08-24 09:52:26.361872"], ["file_ext", "png"], ["mime_type", "image/png"]]
630
710
   (0.1ms) RELEASE SAVEPOINT active_record_2
631
711
   (0.1ms) SAVEPOINT active_record_2
632
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-08-16 15:55:27.196447"], ["updated_at", "2015-08-16 15:55:27.196447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
712
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-08-24 09:52:26.364007"], ["updated_at", "2015-08-24 09:52:26.364007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
633
713
   (0.1ms) RELEASE SAVEPOINT active_record_2
634
714
   (0.1ms) SAVEPOINT active_record_2
635
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-08-16 15:55:27.198443"], ["updated_at", "2015-08-16 15:55:27.198443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
715
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-08-24 09:52:26.366098"], ["updated_at", "2015-08-24 09:52:26.366098"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
636
716
   (0.1ms) RELEASE SAVEPOINT active_record_2
637
717
   (0.1ms) SAVEPOINT active_record_2
638
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-08-16 15:55:27.200421"], ["updated_at", "2015-08-16 15:55:27.200421"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
718
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-08-24 09:52:26.368041"], ["updated_at", "2015-08-24 09:52:26.368041"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
639
719
   (0.1ms) RELEASE SAVEPOINT active_record_2
640
720
   (0.1ms) SAVEPOINT active_record_2
641
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-08-16 15:55:27.202443"], ["updated_at", "2015-08-16 15:55:27.202443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
721
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-08-24 09:52:26.370288"], ["updated_at", "2015-08-24 09:52:26.370288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
642
722
   (0.1ms) RELEASE SAVEPOINT active_record_2
643
723
   (0.1ms) SAVEPOINT active_record_2
644
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-08-16 15:55:27.204571"], ["updated_at", "2015-08-16 15:55:27.204571"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
724
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-08-24 09:52:26.372308"], ["updated_at", "2015-08-24 09:52:26.372308"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
645
725
   (0.1ms) RELEASE SAVEPOINT active_record_2
646
726
   (0.1ms) SAVEPOINT active_record_2
647
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-08-16 15:55:27.206824"], ["updated_at", "2015-08-16 15:55:27.206824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-08-24 09:52:26.374351"], ["updated_at", "2015-08-24 09:52:26.374351"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
648
728
   (0.1ms) RELEASE SAVEPOINT active_record_2
649
729
   (0.1ms) SAVEPOINT active_record_2
650
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-08-16 15:55:27.208971"], ["updated_at", "2015-08-16 15:55:27.208971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
730
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-08-24 09:52:26.376419"], ["updated_at", "2015-08-24 09:52:26.376419"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
651
731
   (0.1ms) RELEASE SAVEPOINT active_record_2
652
732
   (0.1ms) SAVEPOINT active_record_2
653
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-08-16 15:55:27.211020"], ["updated_at", "2015-08-16 15:55:27.211020"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
733
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-08-24 09:52:26.378505"], ["updated_at", "2015-08-24 09:52:26.378505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
654
734
   (0.1ms) RELEASE SAVEPOINT active_record_2
655
735
   (0.1ms) SAVEPOINT active_record_2
656
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-08-16 15:55:27.213193"], ["updated_at", "2015-08-16 15:55:27.213193"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
736
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-08-24 09:52:26.380572"], ["updated_at", "2015-08-24 09:52:26.380572"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
657
737
   (0.1ms) RELEASE SAVEPOINT active_record_2
658
738
   (0.1ms) SAVEPOINT active_record_2
659
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-08-16 15:55:27.215279"], ["updated_at", "2015-08-16 15:55:27.215279"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
739
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-08-24 09:52:26.382563"], ["updated_at", "2015-08-24 09:52:26.382563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
660
740
   (0.1ms) RELEASE SAVEPOINT active_record_2
661
- Processing by PushType::WysiwygMediaController#index as JSON
662
- Parameters: {"filter"=>"file", "page"=>2}
663
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
664
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
665
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
666
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
667
-  (0.1ms) ROLLBACK
668
-  (0.1ms) BEGIN
669
- ----------------------------------------------------------------------------------
670
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
671
- ----------------------------------------------------------------------------------
672
-  (0.1ms) SAVEPOINT active_record_1
673
-  (0.0ms) RELEASE SAVEPOINT active_record_1
674
-  (0.0ms) SAVEPOINT active_record_1
675
741
   (0.1ms) SAVEPOINT active_record_2
676
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-08-16 15:55:27.222629"], ["updated_at", "2015-08-16 15:55:27.222629"], ["file_ext", "png"], ["mime_type", "image/png"]]
742
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-08-24 09:52:26.384700"], ["updated_at", "2015-08-24 09:52:26.384700"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
677
743
   (0.1ms) RELEASE SAVEPOINT active_record_2
678
744
   (0.1ms) SAVEPOINT active_record_2
679
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2015-08-16 15:55:27.224866"], ["updated_at", "2015-08-16 15:55:27.224866"], ["file_ext", "png"], ["mime_type", "image/png"]]
745
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-08-24 09:52:26.386809"], ["updated_at", "2015-08-24 09:52:26.386809"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
680
746
   (0.1ms) RELEASE SAVEPOINT active_record_2
681
747
   (0.1ms) SAVEPOINT active_record_2
682
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-08-16 15:55:27.226965"], ["updated_at", "2015-08-16 15:55:27.226965"], ["file_ext", "png"], ["mime_type", "image/png"]]
683
-  (0.1ms) RELEASE SAVEPOINT active_record_2
684
-  (0.1ms) SAVEPOINT active_record_2
685
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-08-16 15:55:27.228936"], ["updated_at", "2015-08-16 15:55:27.228936"], ["file_ext", "png"], ["mime_type", "image/png"]]
686
-  (0.1ms) RELEASE SAVEPOINT active_record_2
687
-  (0.1ms) SAVEPOINT active_record_2
688
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-08-16 15:55:27.230928"], ["updated_at", "2015-08-16 15:55:27.230928"], ["file_ext", "png"], ["mime_type", "image/png"]]
748
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-08-24 09:52:26.389126"], ["updated_at", "2015-08-24 09:52:26.389126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
689
749
   (0.1ms) RELEASE SAVEPOINT active_record_2
750
+ Processing by PushType::WysiwygMediaController#index as JSON
751
+ Parameters: {"filter"=>"image"}
752
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
753
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
754
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
755
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
756
+  (0.1ms) ROLLBACK
757
+  (0.1ms) BEGIN
758
+ -------------------------------------------------------------------------------------------
759
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0004_anonymous
760
+ -------------------------------------------------------------------------------------------
761
+  (0.0ms) SAVEPOINT active_record_1
762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
763
+  (0.1ms) SAVEPOINT active_record_1
690
764
   (0.1ms) SAVEPOINT active_record_2
691
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-08-16 15:55:27.233011"], ["updated_at", "2015-08-16 15:55:27.233011"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
765
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2015-08-24 09:52:26.397507"], ["updated_at", "2015-08-24 09:52:26.397507"], ["file_ext", "png"], ["mime_type", "image/png"]]
692
766
   (0.1ms) RELEASE SAVEPOINT active_record_2
693
767
   (0.1ms) SAVEPOINT active_record_2
694
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-08-16 15:55:27.234967"], ["updated_at", "2015-08-16 15:55:27.234967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
768
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-08-24 09:52:26.399622"], ["updated_at", "2015-08-24 09:52:26.399622"], ["file_ext", "png"], ["mime_type", "image/png"]]
695
769
   (0.1ms) RELEASE SAVEPOINT active_record_2
696
770
   (0.1ms) SAVEPOINT active_record_2
697
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-08-16 15:55:27.237086"], ["updated_at", "2015-08-16 15:55:27.237086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
771
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-08-24 09:52:26.401896"], ["updated_at", "2015-08-24 09:52:26.401896"], ["file_ext", "png"], ["mime_type", "image/png"]]
698
772
   (0.1ms) RELEASE SAVEPOINT active_record_2
699
773
   (0.1ms) SAVEPOINT active_record_2
700
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-08-16 15:55:27.239162"], ["updated_at", "2015-08-16 15:55:27.239162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
774
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-08-24 09:52:26.404128"], ["updated_at", "2015-08-24 09:52:26.404128"], ["file_ext", "png"], ["mime_type", "image/png"]]
701
775
   (0.1ms) RELEASE SAVEPOINT active_record_2
702
776
   (0.1ms) SAVEPOINT active_record_2
703
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-08-16 15:55:27.241261"], ["updated_at", "2015-08-16 15:55:27.241261"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
777
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "140"], ["created_at", "2015-08-24 09:52:26.406264"], ["updated_at", "2015-08-24 09:52:26.406264"], ["file_ext", "png"], ["mime_type", "image/png"]]
704
778
   (0.1ms) RELEASE SAVEPOINT active_record_2
705
779
   (0.1ms) SAVEPOINT active_record_2
706
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-08-16 15:55:27.243358"], ["updated_at", "2015-08-16 15:55:27.243358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
780
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-08-24 09:52:26.408378"], ["updated_at", "2015-08-24 09:52:26.408378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
707
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
708
782
   (0.1ms) SAVEPOINT active_record_2
709
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-08-16 15:55:27.245375"], ["updated_at", "2015-08-16 15:55:27.245375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
783
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-08-24 09:52:26.410431"], ["updated_at", "2015-08-24 09:52:26.410431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
710
784
   (0.1ms) RELEASE SAVEPOINT active_record_2
711
785
   (0.1ms) SAVEPOINT active_record_2
712
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-08-16 15:55:27.247328"], ["updated_at", "2015-08-16 15:55:27.247328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
786
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-08-24 09:52:26.412396"], ["updated_at", "2015-08-24 09:52:26.412396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
713
787
   (0.1ms) RELEASE SAVEPOINT active_record_2
714
788
   (0.1ms) SAVEPOINT active_record_2
715
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-08-16 15:55:27.249237"], ["updated_at", "2015-08-16 15:55:27.249237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
789
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-08-24 09:52:26.414549"], ["updated_at", "2015-08-24 09:52:26.414549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
716
790
   (0.1ms) RELEASE SAVEPOINT active_record_2
717
791
   (0.1ms) SAVEPOINT active_record_2
718
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-08-16 15:55:27.251342"], ["updated_at", "2015-08-16 15:55:27.251342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
792
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-08-24 09:52:26.416653"], ["updated_at", "2015-08-24 09:52:26.416653"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
719
793
   (0.1ms) RELEASE SAVEPOINT active_record_2
720
794
   (0.1ms) SAVEPOINT active_record_2
721
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-08-16 15:55:27.253679"], ["updated_at", "2015-08-16 15:55:27.253679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
795
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-08-24 09:52:26.418761"], ["updated_at", "2015-08-24 09:52:26.418761"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
722
796
   (0.1ms) RELEASE SAVEPOINT active_record_2
723
797
   (0.1ms) SAVEPOINT active_record_2
724
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-08-16 15:55:27.255966"], ["updated_at", "2015-08-16 15:55:27.255966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
798
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-08-24 09:52:26.420801"], ["updated_at", "2015-08-24 09:52:26.420801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
725
799
   (0.1ms) RELEASE SAVEPOINT active_record_2
726
800
   (0.1ms) SAVEPOINT active_record_2
727
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-08-16 15:55:27.258303"], ["updated_at", "2015-08-16 15:55:27.258303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
801
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-08-24 09:52:26.422780"], ["updated_at", "2015-08-24 09:52:26.422780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
728
802
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
- Processing by PushType::WysiwygMediaController#index as JSON
730
- Parameters: {"filter"=>"file", "page"=>2}
731
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
732
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
733
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
734
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
735
-  (0.1ms) ROLLBACK
736
-  (0.1ms) BEGIN
737
- ----------------------------------------------------------------------------------
738
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
739
- ----------------------------------------------------------------------------------
740
-  (0.1ms) SAVEPOINT active_record_1
741
-  (0.1ms) RELEASE SAVEPOINT active_record_1
742
-  (0.1ms) SAVEPOINT active_record_1
743
803
   (0.1ms) SAVEPOINT active_record_2
744
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "134"], ["created_at", "2015-08-16 15:55:27.265678"], ["updated_at", "2015-08-16 15:55:27.265678"], ["file_ext", "png"], ["mime_type", "image/png"]]
804
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-08-24 09:52:26.424729"], ["updated_at", "2015-08-24 09:52:26.424729"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
745
805
   (0.1ms) RELEASE SAVEPOINT active_record_2
746
806
   (0.1ms) SAVEPOINT active_record_2
747
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "135"], ["created_at", "2015-08-16 15:55:27.267784"], ["updated_at", "2015-08-16 15:55:27.267784"], ["file_ext", "png"], ["mime_type", "image/png"]]
807
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-08-24 09:52:26.426791"], ["updated_at", "2015-08-24 09:52:26.426791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
748
808
   (0.1ms) RELEASE SAVEPOINT active_record_2
749
809
   (0.1ms) SAVEPOINT active_record_2
750
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2015-08-16 15:55:27.270092"], ["updated_at", "2015-08-16 15:55:27.270092"], ["file_ext", "png"], ["mime_type", "image/png"]]
810
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-08-24 09:52:26.428824"], ["updated_at", "2015-08-24 09:52:26.428824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
751
811
   (0.1ms) RELEASE SAVEPOINT active_record_2
752
812
   (0.1ms) SAVEPOINT active_record_2
753
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-08-16 15:55:27.272336"], ["updated_at", "2015-08-16 15:55:27.272336"], ["file_ext", "png"], ["mime_type", "image/png"]]
813
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-08-24 09:52:26.430900"], ["updated_at", "2015-08-24 09:52:26.430900"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
754
814
   (0.1ms) RELEASE SAVEPOINT active_record_2
755
815
   (0.1ms) SAVEPOINT active_record_2
756
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-08-16 15:55:27.274427"], ["updated_at", "2015-08-16 15:55:27.274427"], ["file_ext", "png"], ["mime_type", "image/png"]]
816
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-08-24 09:52:26.432983"], ["updated_at", "2015-08-24 09:52:26.432983"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
757
817
   (0.1ms) RELEASE SAVEPOINT active_record_2
818
+ Processing by PushType::WysiwygMediaController#index as JSON
819
+ Parameters: {"filter"=>"image"}
820
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
821
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
822
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
823
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
824
+  (0.1ms) ROLLBACK
825
+  (0.1ms) BEGIN
826
+ -------------------------------------------------------------------------------------------
827
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for images: test_0003_anonymous
828
+ -------------------------------------------------------------------------------------------
829
+  (0.1ms) SAVEPOINT active_record_1
830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
831
+  (0.0ms) SAVEPOINT active_record_1
758
832
   (0.1ms) SAVEPOINT active_record_2
759
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-08-16 15:55:27.276564"], ["updated_at", "2015-08-16 15:55:27.276564"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
833
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-08-24 09:52:26.441290"], ["updated_at", "2015-08-24 09:52:26.441290"], ["file_ext", "png"], ["mime_type", "image/png"]]
760
834
   (0.1ms) RELEASE SAVEPOINT active_record_2
761
835
   (0.1ms) SAVEPOINT active_record_2
762
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-08-16 15:55:27.278567"], ["updated_at", "2015-08-16 15:55:27.278567"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
836
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-08-24 09:52:26.443484"], ["updated_at", "2015-08-24 09:52:26.443484"], ["file_ext", "png"], ["mime_type", "image/png"]]
763
837
   (0.1ms) RELEASE SAVEPOINT active_record_2
764
838
   (0.1ms) SAVEPOINT active_record_2
765
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-08-16 15:55:27.280661"], ["updated_at", "2015-08-16 15:55:27.280661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
839
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-08-24 09:52:26.445598"], ["updated_at", "2015-08-24 09:52:26.445598"], ["file_ext", "png"], ["mime_type", "image/png"]]
766
840
   (0.1ms) RELEASE SAVEPOINT active_record_2
767
841
   (0.1ms) SAVEPOINT active_record_2
768
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-08-16 15:55:27.282631"], ["updated_at", "2015-08-16 15:55:27.282631"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
842
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-08-24 09:52:26.447716"], ["updated_at", "2015-08-24 09:52:26.447716"], ["file_ext", "png"], ["mime_type", "image/png"]]
769
843
   (0.1ms) RELEASE SAVEPOINT active_record_2
770
844
   (0.1ms) SAVEPOINT active_record_2
771
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-08-16 15:55:27.284581"], ["updated_at", "2015-08-16 15:55:27.284581"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
845
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-08-24 09:52:26.449875"], ["updated_at", "2015-08-24 09:52:26.449875"], ["file_ext", "png"], ["mime_type", "image/png"]]
772
846
   (0.1ms) RELEASE SAVEPOINT active_record_2
773
847
   (0.1ms) SAVEPOINT active_record_2
774
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-08-16 15:55:27.286650"], ["updated_at", "2015-08-16 15:55:27.286650"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
848
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-08-24 09:52:26.452105"], ["updated_at", "2015-08-24 09:52:26.452105"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
775
849
   (0.1ms) RELEASE SAVEPOINT active_record_2
776
850
   (0.1ms) SAVEPOINT active_record_2
777
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-08-16 15:55:27.288887"], ["updated_at", "2015-08-16 15:55:27.288887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
851
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-08-24 09:52:26.454703"], ["updated_at", "2015-08-24 09:52:26.454703"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
778
852
   (0.1ms) RELEASE SAVEPOINT active_record_2
779
853
   (0.1ms) SAVEPOINT active_record_2
780
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-08-16 15:55:27.291022"], ["updated_at", "2015-08-16 15:55:27.291022"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
854
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-08-24 09:52:26.457079"], ["updated_at", "2015-08-24 09:52:26.457079"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
781
855
   (0.1ms) RELEASE SAVEPOINT active_record_2
782
856
   (0.1ms) SAVEPOINT active_record_2
783
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-08-16 15:55:27.293060"], ["updated_at", "2015-08-16 15:55:27.293060"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
857
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-08-24 09:52:26.459381"], ["updated_at", "2015-08-24 09:52:26.459381"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
784
858
   (0.1ms) RELEASE SAVEPOINT active_record_2
785
859
   (0.1ms) SAVEPOINT active_record_2
786
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-08-16 15:55:27.295328"], ["updated_at", "2015-08-16 15:55:27.295328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
860
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-08-24 09:52:26.461487"], ["updated_at", "2015-08-24 09:52:26.461487"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
787
861
   (0.1ms) RELEASE SAVEPOINT active_record_2
788
862
   (0.1ms) SAVEPOINT active_record_2
789
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-08-16 15:55:27.297624"], ["updated_at", "2015-08-16 15:55:27.297624"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
863
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-08-24 09:52:26.463450"], ["updated_at", "2015-08-24 09:52:26.463450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
790
864
   (0.1ms) RELEASE SAVEPOINT active_record_2
791
865
   (0.1ms) SAVEPOINT active_record_2
792
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-08-16 15:55:27.299688"], ["updated_at", "2015-08-16 15:55:27.299688"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
866
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-08-24 09:52:26.465702"], ["updated_at", "2015-08-24 09:52:26.465702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
793
867
   (0.1ms) RELEASE SAVEPOINT active_record_2
794
868
   (0.1ms) SAVEPOINT active_record_2
795
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-08-16 15:55:27.301680"], ["updated_at", "2015-08-16 15:55:27.301680"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
869
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-08-24 09:52:26.467934"], ["updated_at", "2015-08-24 09:52:26.467934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
796
870
   (0.1ms) RELEASE SAVEPOINT active_record_2
797
- Processing by PushType::WysiwygMediaController#index as JSON
798
- Parameters: {"filter"=>"file", "page"=>2}
799
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
800
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
801
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
802
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
803
-  (0.1ms) ROLLBACK
804
-  (0.1ms) BEGIN
805
- --------------------------------------------------------------------------------------
806
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
807
- --------------------------------------------------------------------------------------
808
-  (0.1ms) SAVEPOINT active_record_1
809
-  (0.0ms) RELEASE SAVEPOINT active_record_1
810
-  (0.0ms) SAVEPOINT active_record_1
811
871
   (0.1ms) SAVEPOINT active_record_2
812
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-08-16 15:55:27.310085"], ["updated_at", "2015-08-16 15:55:27.310085"], ["file_ext", "png"], ["mime_type", "image/png"]]
872
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-08-24 09:52:26.470044"], ["updated_at", "2015-08-24 09:52:26.470044"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
813
873
   (0.1ms) RELEASE SAVEPOINT active_record_2
814
874
   (0.1ms) SAVEPOINT active_record_2
815
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-08-16 15:55:27.312252"], ["updated_at", "2015-08-16 15:55:27.312252"], ["file_ext", "png"], ["mime_type", "image/png"]]
875
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-08-24 09:52:26.472391"], ["updated_at", "2015-08-24 09:52:26.472391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
816
876
   (0.1ms) RELEASE SAVEPOINT active_record_2
817
877
   (0.1ms) SAVEPOINT active_record_2
818
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-08-16 15:55:27.314183"], ["updated_at", "2015-08-16 15:55:27.314183"], ["file_ext", "png"], ["mime_type", "image/png"]]
878
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-08-24 09:52:26.474433"], ["updated_at", "2015-08-24 09:52:26.474433"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
819
879
   (0.1ms) RELEASE SAVEPOINT active_record_2
820
880
   (0.1ms) SAVEPOINT active_record_2
821
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-08-16 15:55:27.316092"], ["updated_at", "2015-08-16 15:55:27.316092"], ["file_ext", "png"], ["mime_type", "image/png"]]
881
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-08-24 09:52:26.476786"], ["updated_at", "2015-08-24 09:52:26.476786"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
822
882
   (0.1ms) RELEASE SAVEPOINT active_record_2
823
883
   (0.1ms) SAVEPOINT active_record_2
824
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-08-16 15:55:27.318059"], ["updated_at", "2015-08-16 15:55:27.318059"], ["file_ext", "png"], ["mime_type", "image/png"]]
884
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-08-24 09:52:26.479148"], ["updated_at", "2015-08-24 09:52:26.479148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
825
885
   (0.1ms) RELEASE SAVEPOINT active_record_2
886
+ Processing by PushType::WysiwygMediaController#index as JSON
887
+ Parameters: {"filter"=>"image"}
888
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
889
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
890
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
891
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
892
+  (0.1ms) ROLLBACK
893
+  (0.1ms) BEGIN
894
+ --------------------------------------------------------------------------------------------
895
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0002_anonymous
896
+ --------------------------------------------------------------------------------------------
897
+  (0.1ms) SAVEPOINT active_record_1
898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
899
+  (0.1ms) SAVEPOINT active_record_1
900
+ Processing by PushType::WysiwygMediaController#create as JSON
901
+ Parameters: {"asset"=>{}}
826
902
   (0.1ms) SAVEPOINT active_record_2
827
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-08-16 15:55:27.320301"], ["updated_at", "2015-08-16 15:55:27.320301"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
828
-  (0.1ms) RELEASE SAVEPOINT active_record_2
829
-  (0.1ms) SAVEPOINT active_record_2
830
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-08-16 15:55:27.322699"], ["updated_at", "2015-08-16 15:55:27.322699"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
831
-  (0.1ms) RELEASE SAVEPOINT active_record_2
903
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
904
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.2ms)
905
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
906
+  (0.1ms) ROLLBACK
907
+  (0.1ms) BEGIN
908
+ --------------------------------------------------------------------------------------------
909
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0001_anonymous
910
+ --------------------------------------------------------------------------------------------
911
+  (0.1ms) SAVEPOINT active_record_1
912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
913
+  (0.1ms) SAVEPOINT active_record_1
914
+ Processing by PushType::WysiwygMediaController#create as JSON
915
+ Parameters: {"asset"=>{}}
832
916
   (0.1ms) SAVEPOINT active_record_2
833
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-08-16 15:55:27.324726"], ["updated_at", "2015-08-16 15:55:27.324726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
834
-  (0.1ms) RELEASE SAVEPOINT active_record_2
835
-  (0.1ms) SAVEPOINT active_record_2
836
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-08-16 15:55:27.326689"], ["updated_at", "2015-08-16 15:55:27.326689"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
837
-  (0.1ms) RELEASE SAVEPOINT active_record_2
917
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
918
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
919
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
920
+  (0.1ms) ROLLBACK
921
+  (0.1ms) BEGIN
922
+ --------------------------------------------------------------------------------------------
923
+ PushType::WysiwygMediaControllerTest::POST #create::with in-valid asset: test_0003_anonymous
924
+ --------------------------------------------------------------------------------------------
925
+  (0.1ms) SAVEPOINT active_record_1
926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
927
+  (0.1ms) SAVEPOINT active_record_1
928
+ Processing by PushType::WysiwygMediaController#create as JSON
929
+ Parameters: {"asset"=>{}}
838
930
   (0.1ms) SAVEPOINT active_record_2
839
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-08-16 15:55:27.328720"], ["updated_at", "2015-08-16 15:55:27.328720"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
840
-  (0.1ms) RELEASE SAVEPOINT active_record_2
841
-  (0.1ms) SAVEPOINT active_record_2
842
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-08-16 15:55:27.330701"], ["updated_at", "2015-08-16 15:55:27.330701"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
843
-  (0.1ms) RELEASE SAVEPOINT active_record_2
931
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
932
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
933
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
934
+  (0.1ms) ROLLBACK
935
+  (0.1ms) BEGIN
936
+ -----------------------------------------------------------------------------------------
937
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0002_anonymous
938
+ -----------------------------------------------------------------------------------------
939
+  (0.1ms) SAVEPOINT active_record_1
940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
941
+  (0.0ms) SAVEPOINT active_record_1
942
+ Processing by PushType::WysiwygMediaController#create as JSON
943
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9da9c0a0a0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1bdl8zz>>}}
844
944
   (0.1ms) SAVEPOINT active_record_2
845
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-08-16 15:55:27.332817"], ["updated_at", "2015-08-16 15:55:27.332817"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
945
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-08-24 09:52:26.512129"], ["updated_at", "2015-08-24 09:52:26.512129"], ["file_ext", "png"], ["mime_type", "image/png"]]
846
946
   (0.1ms) RELEASE SAVEPOINT active_record_2
947
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
948
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
949
+  (0.1ms) ROLLBACK
950
+  (0.1ms) BEGIN
951
+ -----------------------------------------------------------------------------------------
952
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0001_anonymous
953
+ -----------------------------------------------------------------------------------------
954
+  (0.1ms) SAVEPOINT active_record_1
955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
956
+  (0.1ms) SAVEPOINT active_record_1
957
+ Processing by PushType::WysiwygMediaController#create as JSON
958
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9daa661058 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1um3yov>>}}
847
959
   (0.1ms) SAVEPOINT active_record_2
848
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-08-16 15:55:27.334894"], ["updated_at", "2015-08-16 15:55:27.334894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-08-24 09:52:26.517920"], ["updated_at", "2015-08-24 09:52:26.517920"], ["file_ext", "png"], ["mime_type", "image/png"]]
849
961
   (0.1ms) RELEASE SAVEPOINT active_record_2
962
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
963
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
964
+  (0.1ms) ROLLBACK
965
+  (0.1ms) BEGIN
966
+ -----------------------------------------------------------------------------------------
967
+ PushType::WysiwygMediaControllerTest::POST #create::with valid asset: test_0003_anonymous
968
+ -----------------------------------------------------------------------------------------
969
+  (0.0ms) SAVEPOINT active_record_1
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+  (0.1ms) SAVEPOINT active_record_1
972
+ Processing by PushType::WysiwygMediaController#create as JSON
973
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9dabde9568 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-1q2dzjl>>}}
850
974
   (0.1ms) SAVEPOINT active_record_2
851
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-08-16 15:55:27.336984"], ["updated_at", "2015-08-16 15:55:27.336984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
975
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-08-24 09:52:26.524182"], ["updated_at", "2015-08-24 09:52:26.524182"], ["file_ext", "png"], ["mime_type", "image/png"]]
852
976
   (0.1ms) RELEASE SAVEPOINT active_record_2
977
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
978
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
979
+  (0.1ms) ROLLBACK
980
+  (0.1ms) BEGIN
981
+ ---------------------------------------------------------------------------
982
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0001_anonymous
983
+ ---------------------------------------------------------------------------
984
+  (0.1ms) SAVEPOINT active_record_1
985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
986
+  (0.1ms) SAVEPOINT active_record_1
853
987
   (0.1ms) SAVEPOINT active_record_2
854
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-08-16 15:55:27.339055"], ["updated_at", "2015-08-16 15:55:27.339055"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
988
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-08-24 09:52:26.530370"], ["updated_at", "2015-08-24 09:52:26.530370"], ["file_ext", "png"], ["mime_type", "image/png"]]
855
989
   (0.1ms) RELEASE SAVEPOINT active_record_2
856
990
   (0.1ms) SAVEPOINT active_record_2
857
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-08-16 15:55:27.341117"], ["updated_at", "2015-08-16 15:55:27.341117"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
991
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-08-24 09:52:26.532670"], ["updated_at", "2015-08-24 09:52:26.532670"], ["file_ext", "png"], ["mime_type", "image/png"]]
858
992
   (0.1ms) RELEASE SAVEPOINT active_record_2
859
993
   (0.1ms) SAVEPOINT active_record_2
860
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-08-16 15:55:27.343120"], ["updated_at", "2015-08-16 15:55:27.343120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
994
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-08-24 09:52:26.534886"], ["updated_at", "2015-08-24 09:52:26.534886"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
995
   (0.1ms) RELEASE SAVEPOINT active_record_2
862
996
   (0.1ms) SAVEPOINT active_record_2
863
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-08-16 15:55:27.345187"], ["updated_at", "2015-08-16 15:55:27.345187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
997
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-08-24 09:52:26.537148"], ["updated_at", "2015-08-24 09:52:26.537148"], ["file_ext", "png"], ["mime_type", "image/png"]]
864
998
   (0.1ms) RELEASE SAVEPOINT active_record_2
865
- Processing by PushType::WysiwygMediaController#index as JSON
866
- Parameters: {"filter"=>"file"}
867
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
868
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
869
- Completed 200 OK in 25ms (Views: 0.9ms | ActiveRecord: 0.6ms)
999
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1000
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
870
1001
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
871
1002
   (0.1ms) ROLLBACK
872
1003
   (0.1ms) BEGIN
873
- --------------------------------------------------------------------------------------
874
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
875
- --------------------------------------------------------------------------------------
876
-  (0.1ms) SAVEPOINT active_record_1
877
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1004
+ ---------------------------------------------------------------------------
1005
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0004_anonymous
1006
+ ---------------------------------------------------------------------------
878
1007
   (0.0ms) SAVEPOINT active_record_1
1008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1009
+  (0.1ms) SAVEPOINT active_record_1
879
1010
   (0.1ms) SAVEPOINT active_record_2
880
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-08-16 15:55:27.374960"], ["updated_at", "2015-08-16 15:55:27.374960"], ["file_ext", "png"], ["mime_type", "image/png"]]
1011
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-08-24 09:52:26.543186"], ["updated_at", "2015-08-24 09:52:26.543186"], ["file_ext", "png"], ["mime_type", "image/png"]]
881
1012
   (0.1ms) RELEASE SAVEPOINT active_record_2
882
1013
   (0.1ms) SAVEPOINT active_record_2
883
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-08-16 15:55:27.377526"], ["updated_at", "2015-08-16 15:55:27.377526"], ["file_ext", "png"], ["mime_type", "image/png"]]
1014
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-08-24 09:52:26.545405"], ["updated_at", "2015-08-24 09:52:26.545405"], ["file_ext", "png"], ["mime_type", "image/png"]]
884
1015
   (0.1ms) RELEASE SAVEPOINT active_record_2
885
1016
   (0.1ms) SAVEPOINT active_record_2
886
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-08-16 15:55:27.379829"], ["updated_at", "2015-08-16 15:55:27.379829"], ["file_ext", "png"], ["mime_type", "image/png"]]
1017
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-08-24 09:52:26.547409"], ["updated_at", "2015-08-24 09:52:26.547409"], ["file_ext", "png"], ["mime_type", "image/png"]]
887
1018
   (0.1ms) RELEASE SAVEPOINT active_record_2
888
1019
   (0.1ms) SAVEPOINT active_record_2
889
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-08-16 15:55:27.382264"], ["updated_at", "2015-08-16 15:55:27.382264"], ["file_ext", "png"], ["mime_type", "image/png"]]
1020
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-08-24 09:52:26.549534"], ["updated_at", "2015-08-24 09:52:26.549534"], ["file_ext", "png"], ["mime_type", "image/png"]]
890
1021
   (0.1ms) RELEASE SAVEPOINT active_record_2
1022
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1023
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1024
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1025
+  (0.1ms) ROLLBACK
1026
+  (0.1ms) BEGIN
1027
+ ---------------------------------------------------------------------------
1028
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0005_anonymous
1029
+ ---------------------------------------------------------------------------
1030
+  (0.1ms) SAVEPOINT active_record_1
1031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1032
+  (0.1ms) SAVEPOINT active_record_1
891
1033
   (0.1ms) SAVEPOINT active_record_2
892
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-08-16 15:55:27.384903"], ["updated_at", "2015-08-16 15:55:27.384903"], ["file_ext", "png"], ["mime_type", "image/png"]]
1034
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-08-24 09:52:26.555096"], ["updated_at", "2015-08-24 09:52:26.555096"], ["file_ext", "png"], ["mime_type", "image/png"]]
893
1035
   (0.1ms) RELEASE SAVEPOINT active_record_2
894
1036
   (0.1ms) SAVEPOINT active_record_2
895
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-08-16 15:55:27.387455"], ["updated_at", "2015-08-16 15:55:27.387455"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-08-24 09:52:26.557451"], ["updated_at", "2015-08-24 09:52:26.557451"], ["file_ext", "png"], ["mime_type", "image/png"]]
896
1038
   (0.1ms) RELEASE SAVEPOINT active_record_2
897
1039
   (0.1ms) SAVEPOINT active_record_2
898
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-08-16 15:55:27.390025"], ["updated_at", "2015-08-16 15:55:27.390025"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-08-24 09:52:26.559643"], ["updated_at", "2015-08-24 09:52:26.559643"], ["file_ext", "png"], ["mime_type", "image/png"]]
899
1041
   (0.1ms) RELEASE SAVEPOINT active_record_2
900
1042
   (0.1ms) SAVEPOINT active_record_2
901
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-08-16 15:55:27.392565"], ["updated_at", "2015-08-16 15:55:27.392565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1043
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-08-24 09:52:26.561769"], ["updated_at", "2015-08-24 09:52:26.561769"], ["file_ext", "png"], ["mime_type", "image/png"]]
902
1044
   (0.1ms) RELEASE SAVEPOINT active_record_2
1045
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1046
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1047
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1048
+  (0.1ms) ROLLBACK
1049
+  (0.1ms) BEGIN
1050
+ ---------------------------------------------------------------------------
1051
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0002_anonymous
1052
+ ---------------------------------------------------------------------------
1053
+  (0.1ms) SAVEPOINT active_record_1
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.1ms) SAVEPOINT active_record_1
903
1056
   (0.1ms) SAVEPOINT active_record_2
904
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-08-16 15:55:27.394723"], ["updated_at", "2015-08-16 15:55:27.394723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
905
-  (0.1ms) RELEASE SAVEPOINT active_record_2
906
-  (0.1ms) SAVEPOINT active_record_2
907
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-08-16 15:55:27.397376"], ["updated_at", "2015-08-16 15:55:27.397376"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
908
-  (0.2ms) RELEASE SAVEPOINT active_record_2
909
-  (0.1ms) SAVEPOINT active_record_2
910
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-08-16 15:55:27.399878"], ["updated_at", "2015-08-16 15:55:27.399878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1057
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-08-24 09:52:26.567057"], ["updated_at", "2015-08-24 09:52:26.567057"], ["file_ext", "png"], ["mime_type", "image/png"]]
911
1058
   (0.1ms) RELEASE SAVEPOINT active_record_2
912
1059
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-08-16 15:55:27.402238"], ["updated_at", "2015-08-16 15:55:27.402238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1060
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-08-24 09:52:26.569096"], ["updated_at", "2015-08-24 09:52:26.569096"], ["file_ext", "png"], ["mime_type", "image/png"]]
914
1061
   (0.1ms) RELEASE SAVEPOINT active_record_2
915
1062
   (0.1ms) SAVEPOINT active_record_2
916
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-08-16 15:55:27.404989"], ["updated_at", "2015-08-16 15:55:27.404989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1063
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-08-24 09:52:26.571037"], ["updated_at", "2015-08-24 09:52:26.571037"], ["file_ext", "png"], ["mime_type", "image/png"]]
917
1064
   (0.1ms) RELEASE SAVEPOINT active_record_2
918
1065
   (0.1ms) SAVEPOINT active_record_2
919
- 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", "183"], ["created_at", "2015-08-16 15:55:27.407821"], ["updated_at", "2015-08-16 15:55:27.407821"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1066
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-08-24 09:52:26.573042"], ["updated_at", "2015-08-24 09:52:26.573042"], ["file_ext", "png"], ["mime_type", "image/png"]]
920
1067
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1069
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1070
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1071
+  (0.1ms) ROLLBACK
1072
+  (0.1ms) BEGIN
1073
+ ---------------------------------------------------------------------------
1074
+ PushType::WysiwygMediaHelperTest::#wysiwyg_assets_hash: test_0003_anonymous
1075
+ ---------------------------------------------------------------------------
1076
+  (0.1ms) SAVEPOINT active_record_1
1077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.0ms) SAVEPOINT active_record_1
921
1079
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-08-16 15:55:27.410419"], ["updated_at", "2015-08-16 15:55:27.410419"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1080
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-08-24 09:52:26.578218"], ["updated_at", "2015-08-24 09:52:26.578218"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
1081
   (0.1ms) RELEASE SAVEPOINT active_record_2
924
1082
   (0.1ms) SAVEPOINT active_record_2
925
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-08-16 15:55:27.412782"], ["updated_at", "2015-08-16 15:55:27.412782"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1083
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-08-24 09:52:26.580251"], ["updated_at", "2015-08-24 09:52:26.580251"], ["file_ext", "png"], ["mime_type", "image/png"]]
926
1084
   (0.1ms) RELEASE SAVEPOINT active_record_2
927
1085
   (0.1ms) SAVEPOINT active_record_2
928
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-08-16 15:55:27.415709"], ["updated_at", "2015-08-16 15:55:27.415709"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1086
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-08-24 09:52:26.582224"], ["updated_at", "2015-08-24 09:52:26.582224"], ["file_ext", "png"], ["mime_type", "image/png"]]
929
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
930
1088
   (0.1ms) SAVEPOINT active_record_2
931
- 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", "187"], ["created_at", "2015-08-16 15:55:27.418106"], ["updated_at", "2015-08-16 15:55:27.418106"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1089
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-08-24 09:52:26.584111"], ["updated_at", "2015-08-24 09:52:26.584111"], ["file_ext", "png"], ["mime_type", "image/png"]]
932
1090
   (0.1ms) RELEASE SAVEPOINT active_record_2
933
- Processing by PushType::WysiwygMediaController#index as JSON
934
- Parameters: {"filter"=>"file"}
935
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
936
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
937
- Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1091
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1092
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
938
1093
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
939
1094
   (0.1ms) ROLLBACK
940
1095
   (0.1ms) BEGIN
941
- --------------------------------------------------------------------------------------
942
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
943
- --------------------------------------------------------------------------------------
944
-  (0.1ms) SAVEPOINT active_record_1
945
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1096
+ ------------------------------------------------------------------------------------------
1097
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0003_anonymous
1098
+ ------------------------------------------------------------------------------------------
946
1099
   (0.1ms) SAVEPOINT active_record_1
1100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1101
+  (0.0ms) SAVEPOINT active_record_1
947
1102
   (0.1ms) SAVEPOINT active_record_2
948
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-08-16 15:55:27.435857"], ["updated_at", "2015-08-16 15:55:27.435857"], ["file_ext", "png"], ["mime_type", "image/png"]]
1103
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-08-24 09:52:26.590474"], ["updated_at", "2015-08-24 09:52:26.590474"], ["file_ext", "png"], ["mime_type", "image/png"]]
949
1104
   (0.1ms) RELEASE SAVEPOINT active_record_2
950
1105
   (0.1ms) SAVEPOINT active_record_2
951
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-08-16 15:55:27.438126"], ["updated_at", "2015-08-16 15:55:27.438126"], ["file_ext", "png"], ["mime_type", "image/png"]]
1106
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-08-24 09:52:26.592614"], ["updated_at", "2015-08-24 09:52:26.592614"], ["file_ext", "png"], ["mime_type", "image/png"]]
952
1107
   (0.1ms) RELEASE SAVEPOINT active_record_2
953
1108
   (0.1ms) SAVEPOINT active_record_2
954
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-08-16 15:55:27.440592"], ["updated_at", "2015-08-16 15:55:27.440592"], ["file_ext", "png"], ["mime_type", "image/png"]]
1109
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-08-24 09:52:26.594725"], ["updated_at", "2015-08-24 09:52:26.594725"], ["file_ext", "png"], ["mime_type", "image/png"]]
955
1110
   (0.1ms) RELEASE SAVEPOINT active_record_2
956
1111
   (0.1ms) SAVEPOINT active_record_2
957
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-08-16 15:55:27.442816"], ["updated_at", "2015-08-16 15:55:27.442816"], ["file_ext", "png"], ["mime_type", "image/png"]]
1112
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-08-24 09:52:26.596640"], ["updated_at", "2015-08-24 09:52:26.596640"], ["file_ext", "png"], ["mime_type", "image/png"]]
958
1113
   (0.1ms) RELEASE SAVEPOINT active_record_2
959
1114
   (0.1ms) SAVEPOINT active_record_2
960
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-08-16 15:55:27.445034"], ["updated_at", "2015-08-16 15:55:27.445034"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-08-24 09:52:26.598521"], ["updated_at", "2015-08-24 09:52:26.598521"], ["file_ext", "png"], ["mime_type", "image/png"]]
961
1116
   (0.1ms) RELEASE SAVEPOINT active_record_2
962
1117
   (0.1ms) SAVEPOINT active_record_2
963
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-08-16 15:55:27.447204"], ["updated_at", "2015-08-16 15:55:27.447204"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1118
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-08-24 09:52:26.600593"], ["updated_at", "2015-08-24 09:52:26.600593"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
964
1119
   (0.1ms) RELEASE SAVEPOINT active_record_2
965
1120
   (0.1ms) SAVEPOINT active_record_2
966
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-08-16 15:55:27.449269"], ["updated_at", "2015-08-16 15:55:27.449269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1121
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-08-24 09:52:26.602741"], ["updated_at", "2015-08-24 09:52:26.602741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
967
1122
   (0.1ms) RELEASE SAVEPOINT active_record_2
968
1123
   (0.1ms) SAVEPOINT active_record_2
969
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-08-16 15:55:27.451413"], ["updated_at", "2015-08-16 15:55:27.451413"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1124
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-08-24 09:52:26.604796"], ["updated_at", "2015-08-24 09:52:26.604796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
970
1125
   (0.1ms) RELEASE SAVEPOINT active_record_2
971
1126
   (0.1ms) SAVEPOINT active_record_2
972
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2015-08-16 15:55:27.453904"], ["updated_at", "2015-08-16 15:55:27.453904"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1127
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-08-24 09:52:26.606729"], ["updated_at", "2015-08-24 09:52:26.606729"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
973
1128
   (0.1ms) RELEASE SAVEPOINT active_record_2
974
1129
   (0.1ms) SAVEPOINT active_record_2
975
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2015-08-16 15:55:27.456451"], ["updated_at", "2015-08-16 15:55:27.456451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-08-24 09:52:26.643391"], ["updated_at", "2015-08-24 09:52:26.643391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
976
1131
   (0.1ms) RELEASE SAVEPOINT active_record_2
977
1132
   (0.1ms) SAVEPOINT active_record_2
978
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-08-16 15:55:27.458696"], ["updated_at", "2015-08-16 15:55:27.458696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-08-24 09:52:26.645739"], ["updated_at", "2015-08-24 09:52:26.645739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
979
1134
   (0.1ms) RELEASE SAVEPOINT active_record_2
980
1135
   (0.1ms) SAVEPOINT active_record_2
981
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-08-16 15:55:27.460833"], ["updated_at", "2015-08-16 15:55:27.460833"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-08-24 09:52:26.648047"], ["updated_at", "2015-08-24 09:52:26.648047"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
982
1137
   (0.1ms) RELEASE SAVEPOINT active_record_2
983
1138
   (0.1ms) SAVEPOINT active_record_2
984
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-08-16 15:55:27.462967"], ["updated_at", "2015-08-16 15:55:27.462967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1139
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-08-24 09:52:26.650451"], ["updated_at", "2015-08-24 09:52:26.650451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
985
1140
   (0.1ms) RELEASE SAVEPOINT active_record_2
986
1141
   (0.1ms) SAVEPOINT active_record_2
987
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-08-16 15:55:27.465178"], ["updated_at", "2015-08-16 15:55:27.465178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1142
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-08-24 09:52:26.653002"], ["updated_at", "2015-08-24 09:52:26.653002"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
988
1143
   (0.1ms) RELEASE SAVEPOINT active_record_2
989
1144
   (0.1ms) SAVEPOINT active_record_2
990
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-08-16 15:55:27.467539"], ["updated_at", "2015-08-16 15:55:27.467539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1145
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-08-24 09:52:26.655136"], ["updated_at", "2015-08-24 09:52:26.655136"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
991
1146
   (0.1ms) RELEASE SAVEPOINT active_record_2
992
1147
   (0.1ms) SAVEPOINT active_record_2
993
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-08-16 15:55:27.469872"], ["updated_at", "2015-08-16 15:55:27.469872"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1148
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-08-24 09:52:26.657163"], ["updated_at", "2015-08-24 09:52:26.657163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
994
1149
   (0.1ms) RELEASE SAVEPOINT active_record_2
995
1150
   (0.1ms) SAVEPOINT active_record_2
996
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-08-16 15:55:27.472212"], ["updated_at", "2015-08-16 15:55:27.472212"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-08-24 09:52:26.659238"], ["updated_at", "2015-08-24 09:52:26.659238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
997
1152
   (0.1ms) RELEASE SAVEPOINT active_record_2
998
1153
   (0.1ms) SAVEPOINT active_record_2
999
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-08-16 15:55:27.474532"], ["updated_at", "2015-08-16 15:55:27.474532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-08-24 09:52:26.661481"], ["updated_at", "2015-08-24 09:52:26.661481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1000
1155
   (0.1ms) RELEASE SAVEPOINT active_record_2
1001
1156
  Processing by PushType::WysiwygMediaController#index as JSON
1002
1157
  Parameters: {"filter"=>"file"}
1003
1158
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1004
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1005
- Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.6ms)
1159
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1160
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1006
1161
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1007
1162
   (0.1ms) ROLLBACK
1008
1163
   (0.1ms) BEGIN
1009
- --------------------------------------------------------------------------------------
1010
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1011
- --------------------------------------------------------------------------------------
1012
-  (0.1ms) SAVEPOINT active_record_1
1013
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1164
+ ------------------------------------------------------------------------------------------
1165
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0002_anonymous
1166
+ ------------------------------------------------------------------------------------------
1014
1167
   (0.1ms) SAVEPOINT active_record_1
1168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1169
+  (0.0ms) SAVEPOINT active_record_1
1015
1170
   (0.1ms) SAVEPOINT active_record_2
1016
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "206"], ["created_at", "2015-08-16 15:55:27.492275"], ["updated_at", "2015-08-16 15:55:27.492275"], ["file_ext", "png"], ["mime_type", "image/png"]]
1171
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-08-24 09:52:26.678871"], ["updated_at", "2015-08-24 09:52:26.678871"], ["file_ext", "png"], ["mime_type", "image/png"]]
1017
1172
   (0.1ms) RELEASE SAVEPOINT active_record_2
1018
1173
   (0.1ms) SAVEPOINT active_record_2
1019
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "207"], ["created_at", "2015-08-16 15:55:27.494540"], ["updated_at", "2015-08-16 15:55:27.494540"], ["file_ext", "png"], ["mime_type", "image/png"]]
1174
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-08-24 09:52:26.681009"], ["updated_at", "2015-08-24 09:52:26.681009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1020
1175
   (0.1ms) RELEASE SAVEPOINT active_record_2
1021
1176
   (0.1ms) SAVEPOINT active_record_2
1022
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "208"], ["created_at", "2015-08-16 15:55:27.496773"], ["updated_at", "2015-08-16 15:55:27.496773"], ["file_ext", "png"], ["mime_type", "image/png"]]
1177
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-08-24 09:52:26.682926"], ["updated_at", "2015-08-24 09:52:26.682926"], ["file_ext", "png"], ["mime_type", "image/png"]]
1023
1178
   (0.1ms) RELEASE SAVEPOINT active_record_2
1024
1179
   (0.1ms) SAVEPOINT active_record_2
1025
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "209"], ["created_at", "2015-08-16 15:55:27.499189"], ["updated_at", "2015-08-16 15:55:27.499189"], ["file_ext", "png"], ["mime_type", "image/png"]]
1180
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-08-24 09:52:26.684979"], ["updated_at", "2015-08-24 09:52:26.684979"], ["file_ext", "png"], ["mime_type", "image/png"]]
1026
1181
   (0.1ms) RELEASE SAVEPOINT active_record_2
1027
1182
   (0.1ms) SAVEPOINT active_record_2
1028
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "210"], ["created_at", "2015-08-16 15:55:27.501322"], ["updated_at", "2015-08-16 15:55:27.501322"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-08-24 09:52:26.686971"], ["updated_at", "2015-08-24 09:52:26.686971"], ["file_ext", "png"], ["mime_type", "image/png"]]
1029
1184
   (0.1ms) RELEASE SAVEPOINT active_record_2
1030
1185
   (0.1ms) SAVEPOINT active_record_2
1031
- 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", "211"], ["created_at", "2015-08-16 15:55:27.503628"], ["updated_at", "2015-08-16 15:55:27.503628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1186
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-08-24 09:52:26.689220"], ["updated_at", "2015-08-24 09:52:26.689220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1032
1187
   (0.1ms) RELEASE SAVEPOINT active_record_2
1033
1188
   (0.1ms) SAVEPOINT active_record_2
1034
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-08-16 15:55:27.505982"], ["updated_at", "2015-08-16 15:55:27.505982"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1189
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-08-24 09:52:26.691277"], ["updated_at", "2015-08-24 09:52:26.691277"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1035
1190
   (0.1ms) RELEASE SAVEPOINT active_record_2
1036
1191
   (0.1ms) SAVEPOINT active_record_2
1037
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-08-16 15:55:27.508287"], ["updated_at", "2015-08-16 15:55:27.508287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1192
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-08-24 09:52:26.693389"], ["updated_at", "2015-08-24 09:52:26.693389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1038
1193
   (0.1ms) RELEASE SAVEPOINT active_record_2
1039
1194
   (0.1ms) SAVEPOINT active_record_2
1040
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2015-08-16 15:55:27.510576"], ["updated_at", "2015-08-16 15:55:27.510576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1195
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-08-24 09:52:26.695449"], ["updated_at", "2015-08-24 09:52:26.695449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1041
1196
   (0.1ms) RELEASE SAVEPOINT active_record_2
1042
1197
   (0.1ms) SAVEPOINT active_record_2
1043
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2015-08-16 15:55:27.512740"], ["updated_at", "2015-08-16 15:55:27.512740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-08-24 09:52:26.697600"], ["updated_at", "2015-08-24 09:52:26.697600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1044
1199
   (0.1ms) RELEASE SAVEPOINT active_record_2
1045
1200
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-08-16 15:55:27.514997"], ["updated_at", "2015-08-16 15:55:27.514997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1201
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-08-24 09:52:26.699702"], ["updated_at", "2015-08-24 09:52:26.699702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1047
1202
   (0.1ms) RELEASE SAVEPOINT active_record_2
1048
1203
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-08-16 15:55:27.517191"], ["updated_at", "2015-08-16 15:55:27.517191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-08-24 09:52:26.701879"], ["updated_at", "2015-08-24 09:52:26.701879"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1050
1205
   (0.1ms) RELEASE SAVEPOINT active_record_2
1051
1206
   (0.1ms) 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", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-08-16 15:55:27.519463"], ["updated_at", "2015-08-16 15:55:27.519463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-08-24 09:52:26.703931"], ["updated_at", "2015-08-24 09:52:26.703931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1053
1208
   (0.1ms) RELEASE SAVEPOINT active_record_2
1054
1209
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-08-16 15:55:27.522039"], ["updated_at", "2015-08-16 15:55:27.522039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-08-24 09:52:26.705872"], ["updated_at", "2015-08-24 09:52:26.705872"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1056
1211
   (0.1ms) RELEASE SAVEPOINT active_record_2
1057
1212
   (0.1ms) SAVEPOINT active_record_2
1058
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-08-16 15:55:27.524407"], ["updated_at", "2015-08-16 15:55:27.524407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1213
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-08-24 09:52:26.707841"], ["updated_at", "2015-08-24 09:52:26.707841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1059
1214
   (0.1ms) RELEASE SAVEPOINT active_record_2
1060
1215
   (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", "221"], ["created_at", "2015-08-16 15:55:27.526908"], ["updated_at", "2015-08-16 15:55:27.526908"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-08-24 09:52:26.709853"], ["updated_at", "2015-08-24 09:52:26.709853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1062
1217
   (0.1ms) RELEASE SAVEPOINT active_record_2
1063
1218
   (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", "222"], ["created_at", "2015-08-16 15:55:27.529124"], ["updated_at", "2015-08-16 15:55:27.529124"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1219
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-08-24 09:52:26.712225"], ["updated_at", "2015-08-24 09:52:26.712225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1065
1220
   (0.1ms) RELEASE SAVEPOINT active_record_2
1066
1221
   (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", "223"], ["created_at", "2015-08-16 15:55:27.531347"], ["updated_at", "2015-08-16 15:55:27.531347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1222
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-08-24 09:52:26.714438"], ["updated_at", "2015-08-24 09:52:26.714438"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1068
1223
   (0.1ms) RELEASE SAVEPOINT active_record_2
1069
1224
  Processing by PushType::WysiwygMediaController#index as JSON
1070
1225
  Parameters: {"filter"=>"file"}
1071
1226
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1072
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1073
- Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1227
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1228
+ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1074
1229
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1075
1230
   (0.1ms) ROLLBACK
1076
1231
   (0.1ms) BEGIN
1077
- -------------------------------------------------------------------------------------
1078
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1079
- -------------------------------------------------------------------------------------
1232
+ ------------------------------------------------------------------------------------------
1233
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0001_anonymous
1234
+ ------------------------------------------------------------------------------------------
1080
1235
   (0.1ms) SAVEPOINT active_record_1
1081
1236
   (0.1ms) RELEASE SAVEPOINT active_record_1
1082
-  (0.1ms) SAVEPOINT active_record_1
1083
- Processing by PushType::WysiwygMediaController#create as JSON
1084
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3335f1f40 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-1cxk1o>>}}
1237
+  (0.0ms) SAVEPOINT active_record_1
1085
1238
   (0.1ms) SAVEPOINT active_record_2
1086
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "224"], ["created_at", "2015-08-16 15:55:27.551328"], ["updated_at", "2015-08-16 15:55:27.551328"], ["file_ext", "png"], ["mime_type", "image/png"]]
1239
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-08-24 09:52:26.731101"], ["updated_at", "2015-08-24 09:52:26.731101"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
1240
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1089
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1090
-  (0.1ms) ROLLBACK
1091
-  (0.1ms) BEGIN
1092
- -------------------------------------------------------------------------------------
1093
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1094
- -------------------------------------------------------------------------------------
1095
-  (0.0ms) SAVEPOINT active_record_1
1096
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
-  (0.0ms) SAVEPOINT active_record_1
1098
- Processing by PushType::WysiwygMediaController#create as JSON
1099
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe337878058 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-1sllxlq>>}}
1100
1241
   (0.1ms) SAVEPOINT active_record_2
1101
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "225"], ["created_at", "2015-08-16 15:55:27.557320"], ["updated_at", "2015-08-16 15:55:27.557320"], ["file_ext", "png"], ["mime_type", "image/png"]]
1242
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-08-24 09:52:26.733484"], ["updated_at", "2015-08-24 09:52:26.733484"], ["file_ext", "png"], ["mime_type", "image/png"]]
1102
1243
   (0.1ms) RELEASE SAVEPOINT active_record_2
1103
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1104
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1105
-  (0.1ms) ROLLBACK
1106
-  (0.1ms) BEGIN
1107
- -------------------------------------------------------------------------------------
1108
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1109
- -------------------------------------------------------------------------------------
1110
-  (0.1ms) SAVEPOINT active_record_1
1111
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1112
-  (0.1ms) SAVEPOINT active_record_1
1113
- Processing by PushType::WysiwygMediaController#create as JSON
1114
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3317822f8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-hkg9ez>>}}
1115
1244
   (0.1ms) SAVEPOINT active_record_2
1116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "226"], ["created_at", "2015-08-16 15:55:27.563182"], ["updated_at", "2015-08-16 15:55:27.563182"], ["file_ext", "png"], ["mime_type", "image/png"]]
1245
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-08-24 09:52:26.735773"], ["updated_at", "2015-08-24 09:52:26.735773"], ["file_ext", "png"], ["mime_type", "image/png"]]
1117
1246
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1119
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1120
-  (0.1ms) ROLLBACK
1121
-  (0.1ms) BEGIN
1122
- -----------------------------------------------------------------------
1123
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1124
- -----------------------------------------------------------------------
1125
-  (0.1ms) SAVEPOINT active_record_1
1126
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1127
-  (0.1ms) SAVEPOINT active_record_1
1128
1247
   (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", "image.png"], ["file_size", 2643], ["file_uid", "227"], ["created_at", "2015-08-16 15:55:27.569187"], ["updated_at", "2015-08-16 15:55:27.569187"], ["file_ext", "png"], ["mime_type", "image/png"]]
1248
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-08-24 09:52:26.737794"], ["updated_at", "2015-08-24 09:52:26.737794"], ["file_ext", "png"], ["mime_type", "image/png"]]
1130
1249
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
1250
   (0.1ms) SAVEPOINT active_record_2
1132
- 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", "228"], ["created_at", "2015-08-16 15:55:27.571586"], ["updated_at", "2015-08-16 15:55:27.571586"], ["file_ext", "png"], ["mime_type", "image/png"]]
1251
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-08-24 09:52:26.739889"], ["updated_at", "2015-08-24 09:52:26.739889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1133
1252
   (0.1ms) RELEASE SAVEPOINT active_record_2
1134
1253
   (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", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-08-16 15:55:27.574357"], ["updated_at", "2015-08-16 15:55:27.574357"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-08-24 09:52:26.741890"], ["updated_at", "2015-08-24 09:52:26.741890"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
1255
   (0.1ms) RELEASE SAVEPOINT active_record_2
1137
1256
   (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", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-08-16 15:55:27.576596"], ["updated_at", "2015-08-16 15:55:27.576596"], ["file_ext", "png"], ["mime_type", "image/png"]]
1139
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1140
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1141
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1142
-  (0.1ms) ROLLBACK
1143
-  (0.1ms) BEGIN
1144
- -----------------------------------------------------------------------
1145
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1146
- -----------------------------------------------------------------------
1147
-  (0.0ms) SAVEPOINT active_record_1
1148
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
-  (0.1ms) SAVEPOINT active_record_1
1150
-  (0.1ms) SAVEPOINT active_record_2
1151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-08-16 15:55:27.581009"], ["updated_at", "2015-08-16 15:55:27.581009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-08-24 09:52:26.744077"], ["updated_at", "2015-08-24 09:52:26.744077"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1152
1258
   (0.1ms) RELEASE SAVEPOINT active_record_2
1153
1259
   (0.1ms) SAVEPOINT active_record_2
1154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-08-16 15:55:27.583254"], ["updated_at", "2015-08-16 15:55:27.583254"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-08-24 09:52:26.746375"], ["updated_at", "2015-08-24 09:52:26.746375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1155
1261
   (0.1ms) RELEASE SAVEPOINT active_record_2
1156
1262
   (0.1ms) SAVEPOINT active_record_2
1157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-08-16 15:55:27.585547"], ["updated_at", "2015-08-16 15:55:27.585547"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-08-24 09:52:26.748527"], ["updated_at", "2015-08-24 09:52:26.748527"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1158
1264
   (0.1ms) RELEASE SAVEPOINT active_record_2
1159
1265
   (0.1ms) SAVEPOINT active_record_2
1160
- 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", "234"], ["created_at", "2015-08-16 15:55:27.587860"], ["updated_at", "2015-08-16 15:55:27.587860"], ["file_ext", "png"], ["mime_type", "image/png"]]
1161
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1162
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1163
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1164
-  (0.1ms) ROLLBACK
1165
-  (0.1ms) BEGIN
1166
- -----------------------------------------------------------------------
1167
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1168
- -----------------------------------------------------------------------
1169
-  (0.0ms) SAVEPOINT active_record_1
1170
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.0ms) SAVEPOINT active_record_1
1172
-  (0.1ms) SAVEPOINT active_record_2
1173
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-08-16 15:55:27.592614"], ["updated_at", "2015-08-16 15:55:27.592614"], ["file_ext", "png"], ["mime_type", "image/png"]]
1266
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-08-24 09:52:26.750727"], ["updated_at", "2015-08-24 09:52:26.750727"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1174
1267
   (0.1ms) RELEASE SAVEPOINT active_record_2
1175
1268
   (0.1ms) SAVEPOINT active_record_2
1176
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.594790"], ["updated_at", "2015-08-16 15:55:27.594790"], ["file_ext", "png"], ["mime_type", "image/png"]]
1269
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-08-24 09:52:26.752796"], ["updated_at", "2015-08-24 09:52:26.752796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1177
1270
   (0.1ms) RELEASE SAVEPOINT active_record_2
1178
1271
   (0.1ms) SAVEPOINT active_record_2
1179
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "237"], ["created_at", "2015-08-16 15:55:27.597598"], ["updated_at", "2015-08-16 15:55:27.597598"], ["file_ext", "png"], ["mime_type", "image/png"]]
1272
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-08-24 09:52:26.755025"], ["updated_at", "2015-08-24 09:52:26.755025"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1180
1273
   (0.1ms) RELEASE SAVEPOINT active_record_2
1181
1274
   (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", "238"], ["created_at", "2015-08-16 15:55:27.600088"], ["updated_at", "2015-08-16 15:55:27.600088"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1184
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1185
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1186
-  (0.1ms) ROLLBACK
1187
-  (0.0ms) BEGIN
1188
- -----------------------------------------------------------------------
1189
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1190
- -----------------------------------------------------------------------
1191
-  (0.0ms) SAVEPOINT active_record_1
1192
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1193
-  (0.0ms) SAVEPOINT active_record_1
1194
-  (0.1ms) SAVEPOINT active_record_2
1195
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-08-16 15:55:27.604482"], ["updated_at", "2015-08-16 15:55:27.604482"], ["file_ext", "png"], ["mime_type", "image/png"]]
1275
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-08-24 09:52:26.757224"], ["updated_at", "2015-08-24 09:52:26.757224"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1196
1276
   (0.1ms) RELEASE SAVEPOINT active_record_2
1197
1277
   (0.1ms) SAVEPOINT active_record_2
1198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-08-16 15:55:27.606660"], ["updated_at", "2015-08-16 15:55:27.606660"], ["file_ext", "png"], ["mime_type", "image/png"]]
1278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-08-24 09:52:26.759318"], ["updated_at", "2015-08-24 09:52:26.759318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1199
1279
   (0.1ms) RELEASE SAVEPOINT active_record_2
1200
1280
   (0.1ms) SAVEPOINT active_record_2
1201
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-08-16 15:55:27.608776"], ["updated_at", "2015-08-16 15:55:27.608776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1281
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-08-24 09:52:26.761383"], ["updated_at", "2015-08-24 09:52:26.761383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1202
1282
   (0.1ms) RELEASE SAVEPOINT active_record_2
1203
1283
   (0.1ms) SAVEPOINT active_record_2
1204
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-08-16 15:55:27.610724"], ["updated_at", "2015-08-16 15:55:27.610724"], ["file_ext", "png"], ["mime_type", "image/png"]]
1205
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1206
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1207
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1208
-  (0.1ms) ROLLBACK
1209
-  (0.1ms) BEGIN
1210
- -----------------------------------------------------------------------
1211
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1212
- -----------------------------------------------------------------------
1213
-  (0.1ms) SAVEPOINT active_record_1
1214
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1215
-  (0.1ms) SAVEPOINT active_record_1
1216
-  (0.1ms) SAVEPOINT active_record_2
1217
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-08-16 15:55:27.614889"], ["updated_at", "2015-08-16 15:55:27.614889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1284
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-08-24 09:52:26.763647"], ["updated_at", "2015-08-24 09:52:26.763647"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1218
1285
   (0.1ms) RELEASE SAVEPOINT active_record_2
1219
1286
   (0.1ms) SAVEPOINT active_record_2
1220
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-08-16 15:55:27.616912"], ["updated_at", "2015-08-16 15:55:27.616912"], ["file_ext", "png"], ["mime_type", "image/png"]]
1287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-08-24 09:52:26.765878"], ["updated_at", "2015-08-24 09:52:26.765878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1221
1288
   (0.1ms) RELEASE SAVEPOINT active_record_2
1222
1289
   (0.1ms) SAVEPOINT active_record_2
1223
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-08-16 15:55:27.619065"], ["updated_at", "2015-08-16 15:55:27.619065"], ["file_ext", "png"], ["mime_type", "image/png"]]
1290
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-08-24 09:52:26.768251"], ["updated_at", "2015-08-24 09:52:26.768251"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1224
1291
   (0.1ms) RELEASE SAVEPOINT active_record_2
1225
-  (0.1ms) SAVEPOINT active_record_2
1226
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-08-16 15:55:27.621052"], ["updated_at", "2015-08-16 15:55:27.621052"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1228
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1229
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1292
+ Processing by PushType::WysiwygMediaController#index as JSON
1293
+ Parameters: {"filter"=>"file"}
1294
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1295
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1296
+ Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1297
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1230
1298
   (0.1ms) ROLLBACK
1231
1299
   (0.1ms) BEGIN
1232
- --------------------------------------------------------------------------------
1233
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1234
- --------------------------------------------------------------------------------
1235
-  (0.1ms) SAVEPOINT active_record_1
1236
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1300
+ ------------------------------------------------------------------------------------------
1301
+ PushType::WysiwygMediaControllerTest::GET #index::filtering for files: test_0004_anonymous
1302
+ ------------------------------------------------------------------------------------------
1303
+  (0.0ms) SAVEPOINT active_record_1
1304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1237
1305
   (0.1ms) SAVEPOINT active_record_1
1238
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1239
- Processing by PushType::WysiwygMediaController#create as JSON
1240
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe33a901c60 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-sttfr3>>}}
1241
-  (0.1ms) SAVEPOINT active_record_2
1242
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-08-16 15:55:27.629853"], ["updated_at", "2015-08-16 15:55:27.629853"], ["file_ext", "png"], ["mime_type", "image/png"]]
1243
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1244
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1245
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1246
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1247
-  (0.1ms) ROLLBACK
1248
-  (0.1ms) BEGIN
1249
- -----------------------------------------------------------------------
1250
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1251
- -----------------------------------------------------------------------
1252
-  (0.1ms) SAVEPOINT active_record_1
1253
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1254
-  (0.0ms) SAVEPOINT active_record_1
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", "248"], ["created_at", "2015-08-16 15:55:27.635219"], ["updated_at", "2015-08-16 15:55:27.635219"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1258
1306
   (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", "249"], ["created_at", "2015-08-16 15:55:27.637400"], ["updated_at", "2015-08-16 15:55:27.637400"], ["file_ext", "png"], ["mime_type", "image/png"]]
1307
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-08-24 09:52:26.784570"], ["updated_at", "2015-08-24 09:52:26.784570"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
1308
   (0.1ms) RELEASE SAVEPOINT active_record_2
1261
1309
   (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", "250"], ["created_at", "2015-08-16 15:55:27.639621"], ["updated_at", "2015-08-16 15:55:27.639621"], ["file_ext", "png"], ["mime_type", "image/png"]]
1310
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-08-24 09:52:26.786776"], ["updated_at", "2015-08-24 09:52:26.786776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
1311
   (0.1ms) RELEASE SAVEPOINT active_record_2
1264
1312
   (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", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-08-16 15:55:27.641728"], ["updated_at", "2015-08-16 15:55:27.641728"], ["file_ext", "png"], ["mime_type", "image/png"]]
1313
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-08-24 09:52:26.788794"], ["updated_at", "2015-08-24 09:52:26.788794"], ["file_ext", "png"], ["mime_type", "image/png"]]
1266
1314
   (0.1ms) RELEASE SAVEPOINT active_record_2
1267
- 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
1268
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1269
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1270
-  (0.1ms) ROLLBACK
1271
-  (0.1ms) BEGIN
1272
- -----------------------------------------------------------------------
1273
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1274
- -----------------------------------------------------------------------
1275
-  (0.1ms) SAVEPOINT active_record_1
1276
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1277
-  (0.0ms) SAVEPOINT active_record_1
1278
1315
   (0.1ms) SAVEPOINT active_record_2
1279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-08-16 15:55:27.646913"], ["updated_at", "2015-08-16 15:55:27.646913"], ["file_ext", "png"], ["mime_type", "image/png"]]
1316
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-08-24 09:52:26.790847"], ["updated_at", "2015-08-24 09:52:26.790847"], ["file_ext", "png"], ["mime_type", "image/png"]]
1280
1317
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1318
   (0.1ms) SAVEPOINT active_record_2
1282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-08-16 15:55:27.649025"], ["updated_at", "2015-08-16 15:55:27.649025"], ["file_ext", "png"], ["mime_type", "image/png"]]
1319
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-08-24 09:52:26.792953"], ["updated_at", "2015-08-24 09:52:26.792953"], ["file_ext", "png"], ["mime_type", "image/png"]]
1283
1320
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1321
   (0.1ms) SAVEPOINT active_record_2
1285
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-08-16 15:55:27.650950"], ["updated_at", "2015-08-16 15:55:27.650950"], ["file_ext", "png"], ["mime_type", "image/png"]]
1322
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "254"], ["created_at", "2015-08-24 09:52:26.795120"], ["updated_at", "2015-08-24 09:52:26.795120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1286
1323
   (0.1ms) RELEASE SAVEPOINT active_record_2
1287
1324
   (0.1ms) SAVEPOINT active_record_2
1288
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-08-16 15:55:27.652897"], ["updated_at", "2015-08-16 15:55:27.652897"], ["file_ext", "png"], ["mime_type", "image/png"]]
1325
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-08-24 09:52:26.797334"], ["updated_at", "2015-08-24 09:52:26.797334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1289
1326
   (0.1ms) RELEASE SAVEPOINT active_record_2
1290
- 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
1291
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1292
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1293
-  (0.1ms) ROLLBACK
1294
-  (0.1ms) BEGIN
1295
- -----------------------------------------------------------------------
1296
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1297
- -----------------------------------------------------------------------
1298
-  (0.1ms) SAVEPOINT active_record_1
1299
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1300
-  (0.0ms) SAVEPOINT active_record_1
1301
1327
   (0.1ms) SAVEPOINT active_record_2
1302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-08-16 15:55:27.658445"], ["updated_at", "2015-08-16 15:55:27.658445"], ["file_ext", "png"], ["mime_type", "image/png"]]
1328
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-08-24 09:52:26.799424"], ["updated_at", "2015-08-24 09:52:26.799424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1303
1329
   (0.1ms) RELEASE SAVEPOINT active_record_2
1304
1330
   (0.1ms) SAVEPOINT active_record_2
1305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-08-16 15:55:27.660577"], ["updated_at", "2015-08-16 15:55:27.660577"], ["file_ext", "png"], ["mime_type", "image/png"]]
1331
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-08-24 09:52:26.801532"], ["updated_at", "2015-08-24 09:52:26.801532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1306
1332
   (0.1ms) RELEASE SAVEPOINT active_record_2
1307
1333
   (0.1ms) SAVEPOINT active_record_2
1308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-08-16 15:55:27.662464"], ["updated_at", "2015-08-16 15:55:27.662464"], ["file_ext", "png"], ["mime_type", "image/png"]]
1334
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-08-24 09:52:26.803739"], ["updated_at", "2015-08-24 09:52:26.803739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1309
1335
   (0.1ms) RELEASE SAVEPOINT active_record_2
1310
1336
   (0.1ms) SAVEPOINT active_record_2
1311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-08-16 15:55:27.664318"], ["updated_at", "2015-08-16 15:55:27.664318"], ["file_ext", "png"], ["mime_type", "image/png"]]
1337
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-08-24 09:52:26.806015"], ["updated_at", "2015-08-24 09:52:26.806015"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1312
1338
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
- 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
1314
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1315
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1316
-  (0.1ms) ROLLBACK
1317
-  (0.1ms) BEGIN
1318
- -----------------------------------------------------------------------
1319
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1320
- -----------------------------------------------------------------------
1321
-  (0.0ms) SAVEPOINT active_record_1
1322
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1323
-  (0.1ms) SAVEPOINT active_record_1
1324
1339
   (0.1ms) SAVEPOINT active_record_2
1325
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-08-16 15:55:27.669556"], ["updated_at", "2015-08-16 15:55:27.669556"], ["file_ext", "png"], ["mime_type", "image/png"]]
1340
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-08-24 09:52:26.808221"], ["updated_at", "2015-08-24 09:52:26.808221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1326
1341
   (0.1ms) RELEASE SAVEPOINT active_record_2
1327
1342
   (0.1ms) SAVEPOINT active_record_2
1328
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-08-16 15:55:27.671841"], ["updated_at", "2015-08-16 15:55:27.671841"], ["file_ext", "png"], ["mime_type", "image/png"]]
1343
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-08-24 09:52:26.810310"], ["updated_at", "2015-08-24 09:52:26.810310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1329
1344
   (0.1ms) RELEASE SAVEPOINT active_record_2
1330
1345
   (0.1ms) SAVEPOINT active_record_2
1331
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-08-16 15:55:27.674027"], ["updated_at", "2015-08-16 15:55:27.674027"], ["file_ext", "png"], ["mime_type", "image/png"]]
1346
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-08-24 09:52:26.812505"], ["updated_at", "2015-08-24 09:52:26.812505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1332
1347
   (0.1ms) RELEASE SAVEPOINT active_record_2
1333
1348
   (0.1ms) SAVEPOINT active_record_2
1334
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-08-16 15:55:27.676009"], ["updated_at", "2015-08-16 15:55:27.676009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1349
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-08-24 09:52:26.814607"], ["updated_at", "2015-08-24 09:52:26.814607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1335
1350
   (0.1ms) RELEASE SAVEPOINT active_record_2
1336
- 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
1337
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1338
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1339
-  (0.1ms) ROLLBACK
1340
-  (0.1ms) BEGIN
1341
- -----------------------------------------------------------------------
1342
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1343
- -----------------------------------------------------------------------
1344
-  (0.0ms) SAVEPOINT active_record_1
1345
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1346
-  (0.0ms) SAVEPOINT active_record_1
1347
1351
   (0.1ms) SAVEPOINT active_record_2
1348
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-08-16 15:55:27.719114"], ["updated_at", "2015-08-16 15:55:27.719114"], ["file_ext", "png"], ["mime_type", "image/png"]]
1352
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-08-24 09:52:26.816798"], ["updated_at", "2015-08-24 09:52:26.816798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1349
1353
   (0.1ms) RELEASE SAVEPOINT active_record_2
1350
1354
   (0.1ms) SAVEPOINT active_record_2
1351
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-08-16 15:55:27.721529"], ["updated_at", "2015-08-16 15:55:27.721529"], ["file_ext", "png"], ["mime_type", "image/png"]]
1355
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-08-24 09:52:26.819014"], ["updated_at", "2015-08-24 09:52:26.819014"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1352
1356
   (0.1ms) RELEASE SAVEPOINT active_record_2
1353
1357
   (0.1ms) SAVEPOINT active_record_2
1354
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-08-16 15:55:27.723992"], ["updated_at", "2015-08-16 15:55:27.723992"], ["file_ext", "png"], ["mime_type", "image/png"]]
1358
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-08-24 09:52:26.821242"], ["updated_at", "2015-08-24 09:52:26.821242"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1355
1359
   (0.1ms) RELEASE SAVEPOINT active_record_2
1356
-  (0.1ms) SAVEPOINT active_record_2
1357
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-08-16 15:55:27.726554"], ["updated_at", "2015-08-16 15:55:27.726554"], ["file_ext", "png"], ["mime_type", "image/png"]]
1358
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1359
- 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
1360
+ Processing by PushType::WysiwygMediaController#index as JSON
1361
+ Parameters: {"filter"=>"file"}
1362
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1363
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1364
+ Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.5ms)
1365
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1366
+  (0.1ms) ROLLBACK
1367
+  (0.1ms) BEGIN
1368
+ ------------------------------------------------------------------------------------
1369
+ PushType::WysiwygMediaControllerTest::POST #create::asset count: test_0001_anonymous
1370
+ ------------------------------------------------------------------------------------
1371
+  (0.1ms) SAVEPOINT active_record_1
1372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1373
+  (0.0ms) SAVEPOINT active_record_1
1360
1374
   (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1375
+ Processing by PushType::WysiwygMediaController#create as JSON
1376
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9da9cacc60 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150824-2942-etq4ka>>}}
1377
+  (0.1ms) SAVEPOINT active_record_2
1378
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-08-24 09:52:26.840635"], ["updated_at", "2015-08-24 09:52:26.840635"], ["file_ext", "png"], ["mime_type", "image/png"]]
1379
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1380
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1381
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1361
1382
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1362
1383
   (0.1ms) ROLLBACK