fogged 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f54e487e18e02d7926a96ea2103f12c7cdc5dce
4
- data.tar.gz: 581dd4bcbd0b970c7f895024add1517b29da623d
3
+ metadata.gz: ad646f9f7cfd9be779ae57ca7f2ebe24f2d5ec74
4
+ data.tar.gz: 0abe6f9c1f91769501a60a71cd598ac0523d5679
5
5
  SHA512:
6
- metadata.gz: f8d9536779136efc159435097b27b123b314a14b44f64365a7f9c9fb0ba53e4dcade542de1838bf3a05292a4aa53168d330712fe1d0ee0015ed59ff6b5d28aa7
7
- data.tar.gz: c7d9d89fdcb77ebc77a37c39f4249683128ee125464756321824b23d645bcbc9c113fa2258ff71371227003691f4d2f57c0d368f3b398a109e57a2bee37c0aed
6
+ metadata.gz: 2daa02f2ed3e3e81ddf3bb0217b8ff09a2608856247629abe67d00f3be7e5f8a3677fff781c7baf2f884dcdf0e83c610cbb239660d8695bf84a4b2e58e444ce0
7
+ data.tar.gz: f064beb63c69298f3d2c37f8ff96a53c098dda15af9efe34931bc7d2f29bad8a1c1bd9db826d038dfc388edf25df3281f5304b09cabcbc8d4e704b3f424bbf5b
@@ -9,9 +9,7 @@ module Fogged
9
9
  Tempfile.open(["thumbnail", ".png"]) do |t|
10
10
  MiniMagick::Tool::Convert.new do |c|
11
11
  c << resource.url
12
- c.resize("#{size}^")
13
- c.gravity("center")
14
- c.extent("#{size}")
12
+ c.resize("#{size}")
15
13
  c << t.path
16
14
  end
17
15
 
@@ -1,3 +1,3 @@
1
1
  module Fogged
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
Binary file
@@ -107983,3 +107983,2534 @@ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
107983
107983
  [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d311dfb4-45ef-44fa-99ff-cb6e55b9e304]  (0.1ms) commit transaction
107984
107984
  [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d311dfb4-45ef-44fa-99ff-cb6e55b9e304] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 2002.06ms
107985
107985
  Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
107986
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
107987
+  (0.1ms) begin transaction
107988
+ Fixture Delete (0.8ms) DELETE FROM "fogged_resources"
107989
+ Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 517391740)
107990
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 701625837)
107991
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 819504217)
107992
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 132093124)
107993
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 431685987)
107994
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 620280917)
107995
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 335514824)
107996
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 183950720)
107997
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 1039265257)
107998
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 596998220)
107999
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 433078596)
108000
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 785871319)
108001
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 937304175)
108002
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 14225656)
108003
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 515736925)
108004
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:30', '2016-01-18 14:28:30', 538821867)
108005
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:30', '2016-01-18 14:28:30', 731805050)
108006
+ Fixture Delete (0.3ms) DELETE FROM "images"
108007
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 579229346)
108008
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 153115190)
108009
+ Fixture Delete (0.9ms) DELETE FROM "movie_fogged_resources"
108010
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 419883833, 624739301, 701625837)
108011
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 849405871, 624739301, 819504217)
108012
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 98413728, 245026679, 784085492)
108013
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:30', '2016-01-18 14:28:30', 779853880, 245026679, 431685987)
108014
+ Fixture Delete (0.4ms) DELETE FROM "movies"
108015
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 624739301)
108016
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 245026679)
108017
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:30', '2016-01-18 14:28:30', 948421225)
108018
+  (1.2ms) commit transaction
108019
+  (0.1ms) begin transaction
108020
+ ------------------------------------------------------------------------
108021
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
108022
+ ------------------------------------------------------------------------
108023
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
108024
+ Processing by Fogged::ResourcesController#index as HTML
108025
+ Parameters: {"type"=>"movie"}
108026
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies"
108027
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
108028
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108029
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
108030
+ Completed 200 OK in 44ms (Views: 3.9ms | ActiveRecord: 0.5ms)
108031
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
108032
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
108033
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108034
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
108035
+  (0.1ms) rollback transaction
108036
+  (0.1ms) begin transaction
108037
+ ---------------------------------------------------------------------
108038
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
108039
+ ---------------------------------------------------------------------
108040
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
108041
+ Processing by Fogged::ResourcesController#index as HTML
108042
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
108043
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
108044
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108045
+ Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.1ms)
108046
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108047
+  (0.1ms) rollback transaction
108048
+  (0.0ms) begin transaction
108049
+ -----------------------------------------------------------------------------------------------
108050
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
108051
+ -----------------------------------------------------------------------------------------------
108052
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
108053
+  (0.0ms) SAVEPOINT active_record_1
108054
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "eb15a7befba1dd85bc576c3ca189c8e7"]]
108055
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "eb15a7befba1dd85bc576c3ca189c8e7"], ["created_at", "2016-01-18 14:28:30.817338"], ["updated_at", "2016-01-18 14:28:30.817338"]]
108056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108057
+  (0.0ms) SAVEPOINT active_record_1
108058
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:28:30.827386"], ["updated_at", "2016-01-18 14:28:30.827386"]]
108059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108060
+ Processing by Fogged::ResourcesController#index as HTML
108061
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
108062
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
108063
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
108064
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)
108065
+  (1.0ms) rollback transaction
108066
+  (0.1ms) begin transaction
108067
+ --------------------------------------------------------------------
108068
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
108069
+ --------------------------------------------------------------------
108070
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
108071
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
108072
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108073
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
108074
+ Processing by Fogged::ResourcesController#index as HTML
108075
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
108076
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
108077
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
108078
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
108079
+ Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.3ms)
108080
+  (0.2ms) rollback transaction
108081
+  (0.0ms) begin transaction
108082
+ -------------------------------------------------------------------------------
108083
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
108084
+ -------------------------------------------------------------------------------
108085
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
108086
+ Processing by Fogged::ResourcesController#index as HTML
108087
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
108088
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
108089
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
108090
+  (0.1ms) rollback transaction
108091
+  (0.1ms) begin transaction
108092
+ ------------------------------------------------------------------
108093
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
108094
+ ------------------------------------------------------------------
108095
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108096
+ Processing by Fogged::ResourcesController#create as HTML
108097
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
108098
+  (0.1ms) SAVEPOINT active_record_1
108099
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "501b85960e2e59976ff143dd335b7cf9"]]
108100
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "501b85960e2e59976ff143dd335b7cf9"], ["created_at", "2016-01-18 14:28:30.859244"], ["updated_at", "2016-01-18 14:28:30.859244"]]
108101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108102
+ Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.5ms)
108103
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108104
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
108105
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
108106
+  (0.4ms) rollback transaction
108107
+  (0.0ms) begin transaction
108108
+ --------------------------------------------------------------------------------------------
108109
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
108110
+ --------------------------------------------------------------------------------------------
108111
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108112
+ Processing by Fogged::ResourcesController#create as HTML
108113
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
108114
+  (0.0ms) SAVEPOINT active_record_1
108115
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
108116
+ Completed 422 Unprocessable Entity in 10ms (ActiveRecord: 0.1ms)
108117
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108118
+  (0.1ms) rollback transaction
108119
+  (0.0ms) begin transaction
108120
+ -------------------------------------------------------------------------------------------
108121
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
108122
+ -------------------------------------------------------------------------------------------
108123
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108124
+ Processing by Fogged::ResourcesController#create as HTML
108125
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
108126
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
108127
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108128
+  (0.0ms) rollback transaction
108129
+  (0.0ms) begin transaction
108130
+ ---------------------------------------------------------------------------------------
108131
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
108132
+ ---------------------------------------------------------------------------------------
108133
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108134
+ Processing by Fogged::ResourcesController#create as HTML
108135
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
108136
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
108137
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108138
+  (0.1ms) rollback transaction
108139
+  (0.0ms) begin transaction
108140
+ -----------------------------------------------------------------------------------
108141
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
108142
+ -----------------------------------------------------------------------------------
108143
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108144
+ Processing by Fogged::ResourcesController#create as HTML
108145
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
108146
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
108147
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108148
+  (0.1ms) rollback transaction
108149
+  (0.1ms) begin transaction
108150
+ -------------------------------------------------------------------------------------------------
108151
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
108152
+ -------------------------------------------------------------------------------------------------
108153
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108154
+ Processing by Fogged::ResourcesController#create as HTML
108155
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
108156
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108157
+  (0.0ms) rollback transaction
108158
+  (0.0ms) begin transaction
108159
+ --------------------------------------------------------------------
108160
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
108161
+ --------------------------------------------------------------------
108162
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108163
+ Processing by Fogged::ResourcesController#confirm as HTML
108164
+ Parameters: {"id"=>"785871319"}
108165
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108166
+  (0.1ms) SAVEPOINT active_record_1
108167
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:28:30.892881"], ["id", 785871319]]
108168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108169
+  (0.1ms) SAVEPOINT active_record_1
108170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108171
+ Completed 200 OK in 7ms (Views: 1.2ms | ActiveRecord: 0.7ms)
108172
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108173
+  (0.4ms) rollback transaction
108174
+  (0.1ms) begin transaction
108175
+ ------------------------------------------------------------------------------------------------
108176
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
108177
+ ------------------------------------------------------------------------------------------------
108178
+ Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108179
+ Processing by Fogged::ResourcesController#confirm as HTML
108180
+ Parameters: {"id"=>"335514824"}
108181
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108182
+  (0.1ms) begin transaction
108183
+ SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:30.958489"], ["id", 335514824]]
108184
+  (0.8ms) commit transaction
108185
+  (0.1ms) begin transaction
108186
+  (0.2ms) commit transaction
108187
+ Completed 200 OK in 14ms (Views: 3.4ms | ActiveRecord: 1.8ms)
108188
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108189
+  (0.5ms) begin transaction
108190
+ ----------------------------------------------------------------------------------------
108191
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
108192
+ ----------------------------------------------------------------------------------------
108193
+ Processing by Fogged::ResourcesController#confirm as HTML
108194
+ Parameters: {"id"=>"123456"}
108195
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
108196
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
108197
+  (0.1ms) rollback transaction
108198
+  (0.1ms) begin transaction
108199
+ Fixture Delete (0.4ms) DELETE FROM "fogged_resources"
108200
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 517391740)
108201
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 701625837)
108202
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 819504217)
108203
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 132093124)
108204
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 431685987)
108205
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 620280917)
108206
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 335514824)
108207
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 183950720)
108208
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 1039265257)
108209
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 596998220)
108210
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 433078596)
108211
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 785871319)
108212
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 937304175)
108213
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 14225656)
108214
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 515736925)
108215
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:31', '2016-01-18 14:28:31', 538821867)
108216
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:31', '2016-01-18 14:28:31', 731805050)
108217
+ Fixture Delete (0.1ms) DELETE FROM "images"
108218
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 579229346)
108219
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 153115190)
108220
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108221
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 419883833, 624739301, 701625837)
108222
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 849405871, 624739301, 819504217)
108223
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 98413728, 245026679, 784085492)
108224
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:31', '2016-01-18 14:28:31', 779853880, 245026679, 431685987)
108225
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108226
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 624739301)
108227
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 245026679)
108228
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:31', '2016-01-18 14:28:31', 948421225)
108229
+  (1.0ms) commit transaction
108230
+  (0.1ms) begin transaction
108231
+ -------------------------------------------------------
108232
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
108233
+ -------------------------------------------------------
108234
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108235
+  (0.1ms) rollback transaction
108236
+  (0.0ms) begin transaction
108237
+ ----------------------------------------------------------------------------------
108238
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
108239
+ ----------------------------------------------------------------------------------
108240
+ Processing by Fogged::ResourcesController#show as HTML
108241
+ Parameters: {"id"=>"1234567890"}
108242
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
108243
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
108244
+  (0.1ms) rollback transaction
108245
+  (0.2ms) begin transaction
108246
+ --------------------------------------------------------------------
108247
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
108248
+ --------------------------------------------------------------------
108249
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108250
+ Processing by Fogged::ResourcesController#show as HTML
108251
+ Parameters: {"id"=>"785871319"}
108252
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108253
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
108254
+  (0.1ms) rollback transaction
108255
+  (0.1ms) begin transaction
108256
+ --------------------------------------------------------------
108257
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
108258
+ --------------------------------------------------------------
108259
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108260
+ Processing by Fogged::ResourcesController#show as HTML
108261
+ Parameters: {"id"=>"701625837"}
108262
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108263
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
108264
+  (0.1ms) rollback transaction
108265
+  (0.0ms) begin transaction
108266
+ --------------------------------------------------------------------
108267
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
108268
+ --------------------------------------------------------------------
108269
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108270
+ Processing by Fogged::ResourcesController#show as HTML
108271
+ Parameters: {"id"=>"335514824"}
108272
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108273
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
108274
+  (0.1ms) rollback transaction
108275
+  (0.0ms) begin transaction
108276
+ ----------------------------------------------------------------
108277
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
108278
+ ----------------------------------------------------------------
108279
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
108280
+  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs"
108281
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 4fbc05f2-0bb1-408b-9a8f-ac59d9c06660) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
108282
+ [ActiveJob]  (0.2ms) begin transaction
108283
+ [ActiveJob] SQL (1.2ms) INSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 4fbc05f2-0bb1-408b-9a8f-ac59d9c06660\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:28:31.328815"], ["created_at", "2016-01-18 14:28:31.329458"], ["updated_at", "2016-01-18 14:28:31.329458"]]
108284
+ [ActiveJob]  (0.9ms) commit transaction
108285
+  (0.0ms) begin transaction
108286
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:31.335118"], ["id", 14225656]]
108287
+  (0.8ms) commit transaction
108288
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
108289
+  (0.5ms) begin transaction
108290
+ ----------------------------------------------------------------
108291
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
108292
+ ----------------------------------------------------------------
108293
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108294
+  (0.6ms) begin transaction
108295
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:31.572218"], ["id", 1039265257]]
108296
+  (0.7ms) commit transaction
108297
+  (0.6ms) begin transaction
108298
+ -----------------------------------------------------------------------------------
108299
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
108300
+ -----------------------------------------------------------------------------------
108301
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108302
+  (0.5ms) begin transaction
108303
+  (0.1ms) commit transaction
108304
+  (0.5ms) begin transaction
108305
+ ------------------------------------------------------------------------------------------
108306
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
108307
+ ------------------------------------------------------------------------------------------
108308
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108309
+  (0.5ms) begin transaction
108310
+  (0.1ms) commit transaction
108311
+  (0.6ms) begin transaction
108312
+ ----------------------------------------------------------------------------------------
108313
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
108314
+ ----------------------------------------------------------------------------------------
108315
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108316
+  (0.6ms) begin transaction
108317
+ ---------------------------------------------------------------------------------------
108318
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
108319
+ ---------------------------------------------------------------------------------------
108320
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
108321
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
108322
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
108323
+  (0.4ms) begin transaction
108324
+ ----------------------------------------------------------------------------------------
108325
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
108326
+ ----------------------------------------------------------------------------------------
108327
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108328
+  (0.5ms) begin transaction
108329
+ -------------------------------------------------------------------------------------
108330
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
108331
+ -------------------------------------------------------------------------------------
108332
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
108333
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
108334
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
108335
+  (0.5ms) begin transaction
108336
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
108337
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 517391740)
108338
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 701625837)
108339
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 819504217)
108340
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 132093124)
108341
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 431685987)
108342
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 620280917)
108343
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 335514824)
108344
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 183950720)
108345
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 1039265257)
108346
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 596998220)
108347
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 433078596)
108348
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 785871319)
108349
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 937304175)
108350
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 14225656)
108351
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 515736925)
108352
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:33', '2016-01-18 14:28:33', 538821867)
108353
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:33', '2016-01-18 14:28:33', 731805050)
108354
+ Fixture Delete (0.1ms) DELETE FROM "images"
108355
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 579229346)
108356
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 153115190)
108357
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108358
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 419883833, 624739301, 701625837)
108359
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 849405871, 624739301, 819504217)
108360
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 98413728, 245026679, 784085492)
108361
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:33', '2016-01-18 14:28:33', 779853880, 245026679, 431685987)
108362
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108363
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 624739301)
108364
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 245026679)
108365
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:33', '2016-01-18 14:28:33', 948421225)
108366
+  (1.1ms) commit transaction
108367
+  (0.1ms) begin transaction
108368
+ ------------------------------------------------------------------------------------
108369
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108370
+ ------------------------------------------------------------------------------------
108371
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108372
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [58c36199-e8ce-4b3b-9fed-e5e64af5a238] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108373
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [58c36199-e8ce-4b3b-9fed-e5e64af5a238] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 51.28ms
108374
+  (0.4ms) begin transaction
108375
+ -----------------------------------------------------------------------
108376
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
108377
+ -----------------------------------------------------------------------
108378
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108379
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108380
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.5ms) begin transaction
108381
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:28:34.350950"], ["id", 731805050]]
108382
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.7ms) commit transaction
108383
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.1ms) begin transaction
108384
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:28:34.536023"], ["id", 731805050]]
108385
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.7ms) commit transaction
108386
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.0ms) begin transaction
108387
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819]  (0.1ms) commit transaction
108388
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [4105921c-0bc9-4e97-bead-b493e9345819] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 1004.97ms
108389
+  (0.5ms) begin transaction
108390
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
108391
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 517391740)
108392
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 701625837)
108393
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 819504217)
108394
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 132093124)
108395
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 431685987)
108396
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 620280917)
108397
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 335514824)
108398
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 183950720)
108399
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 1039265257)
108400
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 596998220)
108401
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 433078596)
108402
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 785871319)
108403
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 937304175)
108404
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 14225656)
108405
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 515736925)
108406
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 538821867)
108407
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 731805050)
108408
+ Fixture Delete (0.1ms) DELETE FROM "images"
108409
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 579229346)
108410
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 153115190)
108411
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108412
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 419883833, 624739301, 701625837)
108413
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 849405871, 624739301, 819504217)
108414
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 98413728, 245026679, 784085492)
108415
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 779853880, 245026679, 431685987)
108416
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108417
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 624739301)
108418
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 245026679)
108419
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 948421225)
108420
+  (1.0ms) commit transaction
108421
+  (0.0ms) begin transaction
108422
+ ---------------------------------------------------
108423
+ Fogged::ResourceTest: test_resource_should_be_valid
108424
+ ---------------------------------------------------
108425
+  (0.1ms) SAVEPOINT active_record_1
108426
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "30c921df55e8e50f390225a0b71d43ba"]]
108427
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "30c921df55e8e50f390225a0b71d43ba"], ["created_at", "2016-01-18 14:28:35.018438"], ["updated_at", "2016-01-18 14:28:35.018438"]]
108428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108429
+  (0.5ms) rollback transaction
108430
+  (0.0ms) begin transaction
108431
+ ----------------------------------------------------------------------------
108432
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
108433
+ ----------------------------------------------------------------------------
108434
+  (0.0ms) SAVEPOINT active_record_1
108435
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "873ba2b732f9bd69e55160ae5f2d2392"]]
108436
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "873ba2b732f9bd69e55160ae5f2d2392"], ["created_at", "2016-01-18 14:28:35.022460"], ["updated_at", "2016-01-18 14:28:35.022460"]]
108437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108438
+  (0.0ms) SAVEPOINT active_record_1
108439
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
108440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108441
+  (0.7ms) rollback transaction
108442
+  (0.1ms) begin transaction
108443
+ -------------------------------------------------------------------------
108444
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
108445
+ -------------------------------------------------------------------------
108446
+  (0.0ms) SAVEPOINT active_record_1
108447
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "af4ee7932d00978be249f68956701603"]]
108448
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "af4ee7932d00978be249f68956701603"], ["created_at", "2016-01-18 14:28:35.027962"], ["updated_at", "2016-01-18 14:28:35.027962"]]
108449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108450
+  (0.4ms) rollback transaction
108451
+  (0.0ms) begin transaction
108452
+ -------------------------------------------------------------
108453
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
108454
+ -------------------------------------------------------------
108455
+  (0.0ms) SAVEPOINT active_record_1
108456
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "faef51ad7852992209b6d232fef1b2b6"]]
108457
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "faef51ad7852992209b6d232fef1b2b6"], ["created_at", "2016-01-18 14:28:35.030607"], ["updated_at", "2016-01-18 14:28:35.030607"]]
108458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108459
+  (0.4ms) rollback transaction
108460
+  (0.1ms) begin transaction
108461
+ ------------------------------------------------------
108462
+ Fogged::ResourceTest: test_resource_should_have_an_url
108463
+ ------------------------------------------------------
108464
+  (0.0ms) SAVEPOINT active_record_1
108465
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "d0eed4bd9c1ca5db20e00987c1616955"]]
108466
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "d0eed4bd9c1ca5db20e00987c1616955"], ["created_at", "2016-01-18 14:28:35.034440"], ["updated_at", "2016-01-18 14:28:35.034440"]]
108467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108468
+  (0.3ms) rollback transaction
108469
+  (0.1ms) begin transaction
108470
+ ----------------------------------------------------------------------------
108471
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
108472
+ ----------------------------------------------------------------------------
108473
+  (0.1ms) SAVEPOINT active_record_1
108474
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
108475
+  (0.0ms) rollback transaction
108476
+  (0.0ms) begin transaction
108477
+ -------------------------------------------------------------------------
108478
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
108479
+ -------------------------------------------------------------------------
108480
+  (0.0ms) SAVEPOINT active_record_1
108481
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
108482
+  (0.0ms) rollback transaction
108483
+  (0.0ms) begin transaction
108484
+ --------------------------------------------------------
108485
+ Fogged::ResourceTest: test_should_process_resource_image
108486
+ --------------------------------------------------------
108487
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108488
+  (0.0ms) SAVEPOINT active_record_1
108489
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:28:35.041603"], ["id", 785871319]]
108490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108491
+  (0.4ms) rollback transaction
108492
+  (0.0ms) begin transaction
108493
+ --------------------------------------------------------
108494
+ Fogged::ResourceTest: test_should_process_resource_video
108495
+ --------------------------------------------------------
108496
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108497
+  (0.1ms) rollback transaction
108498
+  (0.0ms) begin transaction
108499
+ ------------------------------------------------------------------------------
108500
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
108501
+ ------------------------------------------------------------------------------
108502
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
108503
+  (0.1ms) begin transaction
108504
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:28:35.137497"], ["id", 335514824]]
108505
+  (0.6ms) commit transaction
108506
+  (0.5ms) begin transaction
108507
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
108508
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 517391740)
108509
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 701625837)
108510
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 819504217)
108511
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 132093124)
108512
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 431685987)
108513
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 620280917)
108514
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 335514824)
108515
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 183950720)
108516
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 1039265257)
108517
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 596998220)
108518
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 433078596)
108519
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 785871319)
108520
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 937304175)
108521
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 14225656)
108522
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 515736925)
108523
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 538821867)
108524
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:35', '2016-01-18 14:28:35', 731805050)
108525
+ Fixture Delete (0.2ms) DELETE FROM "images"
108526
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 579229346)
108527
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 153115190)
108528
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108529
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 419883833, 624739301, 701625837)
108530
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 849405871, 624739301, 819504217)
108531
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 98413728, 245026679, 784085492)
108532
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:35', '2016-01-18 14:28:35', 779853880, 245026679, 431685987)
108533
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108534
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 624739301)
108535
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 245026679)
108536
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:35', '2016-01-18 14:28:35', 948421225)
108537
+  (1.0ms) commit transaction
108538
+  (0.1ms) begin transaction
108539
+ --------------------------------------------
108540
+ FoggedTest: test_should_check_if_file_exists
108541
+ --------------------------------------------
108542
+  (0.0ms) rollback transaction
108543
+  (0.1ms) begin transaction
108544
+ ---------------------------------------------------
108545
+ FoggedTest: test_should_return_directory_public_url
108546
+ ---------------------------------------------------
108547
+  (0.2ms) rollback transaction
108548
+  (0.0ms) begin transaction
108549
+ ---------------------------------------------------
108550
+ FoggedTest: test_should_return_resources_public_url
108551
+ ---------------------------------------------------
108552
+  (0.0ms) rollback transaction
108553
+  (0.0ms) begin transaction
108554
+ ----------------------
108555
+ FoggedTest: test_truth
108556
+ ----------------------
108557
+  (0.0ms) rollback transaction
108558
+  (0.0ms) begin transaction
108559
+ --------------------------------------------------------------------------------------
108560
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
108561
+ --------------------------------------------------------------------------------------
108562
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108563
+ Processing by Fogged::ResourcesController#update as HTML
108564
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
108565
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
108566
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
108567
+  (0.2ms) rollback transaction
108568
+  (0.1ms) begin transaction
108569
+ ------------------------------------------------------------------
108570
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
108571
+ ------------------------------------------------------------------
108572
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108573
+ Processing by Fogged::ResourcesController#update as HTML
108574
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
108575
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108576
+  (0.1ms) SAVEPOINT active_record_1
108577
+ SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-01-18 14:28:35.332079"], ["id", 785871319]]
108578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108579
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.5ms)
108580
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108581
+  (0.5ms) rollback transaction
108582
+  (0.1ms) begin transaction
108583
+ -------------------------------------------------------------
108584
+ MovieTest: test_should_not_save_movie_with_uploading_resource
108585
+ -------------------------------------------------------------
108586
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108587
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
108588
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
108589
+  (0.1ms) SAVEPOINT active_record_1
108590
+ SQL (0.4ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:28:35.346516"], ["id", 431685987]]
108591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108592
+  (0.0ms) SAVEPOINT active_record_1
108593
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
108594
+  (0.4ms) rollback transaction
108595
+  (0.1ms) begin transaction
108596
+ ---------------------------------------------------
108597
+ MovieTest: test_should_save_movie_with_no_resources
108598
+ ---------------------------------------------------
108599
+  (0.0ms) SAVEPOINT active_record_1
108600
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:28:35.352157"], ["updated_at", "2016-01-18 14:28:35.352157"]]
108601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108602
+  (0.4ms) rollback transaction
108603
+  (0.1ms) begin transaction
108604
+ --------------------------------------------------------
108605
+ MovieTest: test_should_save_movie_with_several_resources
108606
+ --------------------------------------------------------
108607
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108608
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
108609
+  (0.1ms) SAVEPOINT active_record_1
108610
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:28:35.359561"], ["updated_at", "2016-01-18 14:28:35.359561"]]
108611
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:28:35.361116"], ["updated_at", "2016-01-18 14:28:35.361116"]]
108612
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:28:35.362512"], ["updated_at", "2016-01-18 14:28:35.362512"]]
108613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108614
+  (0.5ms) rollback transaction
108615
+  (0.1ms) begin transaction
108616
+ --------------------------------------------------------------------
108617
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
108618
+ --------------------------------------------------------------------
108619
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108620
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108621
+ Processing by Fogged::ResourcesController#destroy as HTML
108622
+ Parameters: {"id"=>"785871319"}
108623
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108624
+  (0.1ms) SAVEPOINT active_record_1
108625
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
108626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108627
+ Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)
108628
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108629
+  (0.4ms) rollback transaction
108630
+  (0.0ms) begin transaction
108631
+ ----------------------------------------------------------------------------------------
108632
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
108633
+ ----------------------------------------------------------------------------------------
108634
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108635
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108636
+ Processing by Fogged::ResourcesController#destroy as HTML
108637
+ Parameters: {"id"=>"123456"}
108638
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
108639
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
108640
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
108641
+  (0.1ms) rollback transaction
108642
+  (0.0ms) begin transaction
108643
+ ----------------------------------------------------------------------------------------------
108644
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
108645
+ ----------------------------------------------------------------------------------------------
108646
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108647
+  (0.0ms) SAVEPOINT active_record_1
108648
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.380147"], ["id", 1039265257]]
108649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108650
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
108651
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
108652
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
108653
+  (0.0ms) SAVEPOINT active_record_1
108654
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:28:35.384721"], ["id", 1039265257]]
108655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108656
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
108657
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108658
+  (0.5ms) rollback transaction
108659
+  (0.1ms) begin transaction
108660
+ --------------------------------------------------------------------------------------------------------------
108661
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
108662
+ --------------------------------------------------------------------------------------------------------------
108663
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108664
+  (0.0ms) SAVEPOINT active_record_1
108665
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.389738"], ["id", 1039265257]]
108666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108667
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
108668
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
108669
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
108670
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
108671
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108672
+  (0.4ms) rollback transaction
108673
+  (0.1ms) begin transaction
108674
+ --------------------------------------------------------------------------------------------------------------
108675
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
108676
+ --------------------------------------------------------------------------------------------------------------
108677
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108678
+  (0.0ms) SAVEPOINT active_record_1
108679
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.397072"], ["id", 1039265257]]
108680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108681
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
108682
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
108683
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
108684
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
108685
+  (0.3ms) rollback transaction
108686
+  (0.1ms) begin transaction
108687
+ -------------------------------------------------------------------------------------------------------------------
108688
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
108689
+ -------------------------------------------------------------------------------------------------------------------
108690
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108691
+  (0.0ms) SAVEPOINT active_record_1
108692
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:28:35.402928"], ["id", 1039265257]]
108693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108694
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
108695
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
108696
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
108697
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
108698
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
108699
+  (0.5ms) rollback transaction
108700
+  (0.1ms) begin transaction
108701
+ ---------------------------------------------------
108702
+ ImageTest: test_image_url_changing_the_storage_name
108703
+ ---------------------------------------------------
108704
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
108705
+  (0.1ms) SAVEPOINT active_record_1
108706
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:28:35.414210"], ["updated_at", "2016-01-18 14:28:35.414210"]]
108707
+  (0.5ms) RELEASE SAVEPOINT active_record_1
108708
+  (0.3ms) rollback transaction
108709
+  (0.0ms) begin transaction
108710
+ -------------------------------------------------------------
108711
+ ImageTest: test_should_not_save_image_with_uploading_resource
108712
+ -------------------------------------------------------------
108713
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108714
+  (0.1ms) SAVEPOINT active_record_1
108715
+ SQL (0.4ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:28:35.419269"], ["id", 701625837]]
108716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108717
+  (0.1ms) SAVEPOINT active_record_1
108718
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
108719
+  (0.4ms) rollback transaction
108720
+  (0.0ms) begin transaction
108721
+ --------------------------------------------------------
108722
+ ImageTest: test_should_save_image_with_uploaded_resource
108723
+ --------------------------------------------------------
108724
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
108725
+  (0.0ms) SAVEPOINT active_record_1
108726
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:28:35.424134"], ["updated_at", "2016-01-18 14:28:35.424134"]]
108727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108728
+  (0.5ms) rollback transaction
108729
+  (0.1ms) begin transaction
108730
+ --------------------------------------------------
108731
+ ImageTest: test_should_save_image_without_resource
108732
+ --------------------------------------------------
108733
+  (0.1ms) SAVEPOINT active_record_1
108734
+ SQL (0.4ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:28:35.428012"], ["updated_at", "2016-01-18 14:28:35.428012"]]
108735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108736
+  (0.4ms) rollback transaction
108737
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108738
+  (0.1ms) begin transaction
108739
+ Fixture Delete (0.9ms) DELETE FROM "fogged_resources"
108740
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 517391740)
108741
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 701625837)
108742
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 819504217)
108743
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 132093124)
108744
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 431685987)
108745
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 620280917)
108746
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 335514824)
108747
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 183950720)
108748
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 1039265257)
108749
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 596998220)
108750
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 433078596)
108751
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 785871319)
108752
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 937304175)
108753
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 14225656)
108754
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 515736925)
108755
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:28:54', '2016-01-18 14:28:54', 538821867)
108756
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:28:54', '2016-01-18 14:28:54', 731805050)
108757
+ Fixture Delete (0.1ms) DELETE FROM "images"
108758
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 579229346)
108759
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 153115190)
108760
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108761
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 419883833, 624739301, 701625837)
108762
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 849405871, 624739301, 819504217)
108763
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 98413728, 245026679, 784085492)
108764
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:28:54', '2016-01-18 14:28:54', 779853880, 245026679, 431685987)
108765
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108766
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 624739301)
108767
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 245026679)
108768
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:28:54', '2016-01-18 14:28:54', 948421225)
108769
+  (5.3ms) commit transaction
108770
+  (0.1ms) begin transaction
108771
+ ------------------------------------------------------------------------------------
108772
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108773
+ ------------------------------------------------------------------------------------
108774
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108775
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [602ff661-0b8c-4326-9a4f-07a362239b23] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108776
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [602ff661-0b8c-4326-9a4f-07a362239b23] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.44ms
108777
+  (0.5ms) begin transaction
108778
+ -----------------------------------------------------------------------
108779
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
108780
+ -----------------------------------------------------------------------
108781
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108782
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108783
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.1ms) begin transaction
108784
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:28:55.236114"], ["id", 731805050]]
108785
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.9ms) commit transaction
108786
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.1ms) begin transaction
108787
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:28:55.407162"], ["id", 731805050]]
108788
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.6ms) commit transaction
108789
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.1ms) begin transaction
108790
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a]  (0.1ms) commit transaction
108791
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [1ee628be-9531-4558-894b-9dce79d7a69a] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 367.44ms
108792
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108793
+  (0.1ms) begin transaction
108794
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
108795
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 517391740)
108796
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 701625837)
108797
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 819504217)
108798
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 132093124)
108799
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 431685987)
108800
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 620280917)
108801
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 335514824)
108802
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 183950720)
108803
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 1039265257)
108804
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 596998220)
108805
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 433078596)
108806
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 785871319)
108807
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 937304175)
108808
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 14225656)
108809
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 515736925)
108810
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:29:49', '2016-01-18 14:29:49', 538821867)
108811
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:29:49', '2016-01-18 14:29:49', 731805050)
108812
+ Fixture Delete (0.1ms) DELETE FROM "images"
108813
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 579229346)
108814
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 153115190)
108815
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108816
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 419883833, 624739301, 701625837)
108817
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 849405871, 624739301, 819504217)
108818
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 98413728, 245026679, 784085492)
108819
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:29:49', '2016-01-18 14:29:49', 779853880, 245026679, 431685987)
108820
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108821
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 624739301)
108822
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 245026679)
108823
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:29:49', '2016-01-18 14:29:49', 948421225)
108824
+  (5.4ms) commit transaction
108825
+  (0.1ms) begin transaction
108826
+ ------------------------------------------------------------------------------------
108827
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108828
+ ------------------------------------------------------------------------------------
108829
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108830
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2bee758b-5ebf-4a01-b2cb-a280dd119eae] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108831
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2bee758b-5ebf-4a01-b2cb-a280dd119eae] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.66ms
108832
+  (0.5ms) begin transaction
108833
+ -----------------------------------------------------------------------
108834
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
108835
+ -----------------------------------------------------------------------
108836
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108837
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108838
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.1ms) begin transaction
108839
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:29:50.335211"], ["id", 731805050]]
108840
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.7ms) commit transaction
108841
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.1ms) begin transaction
108842
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:29:50.519243"], ["id", 731805050]]
108843
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.9ms) commit transaction
108844
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.1ms) begin transaction
108845
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f]  (0.2ms) commit transaction
108846
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [240f154b-dee5-4201-9845-d41d06867e0f] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 388.68ms
108847
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108848
+  (0.1ms) begin transaction
108849
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
108850
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 517391740)
108851
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 701625837)
108852
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 819504217)
108853
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 132093124)
108854
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 431685987)
108855
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 620280917)
108856
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 335514824)
108857
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 183950720)
108858
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 1039265257)
108859
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 596998220)
108860
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 433078596)
108861
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 785871319)
108862
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 937304175)
108863
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 14225656)
108864
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 515736925)
108865
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:30:34', '2016-01-18 14:30:34', 538821867)
108866
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:30:34', '2016-01-18 14:30:34', 731805050)
108867
+ Fixture Delete (0.1ms) DELETE FROM "images"
108868
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 579229346)
108869
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 153115190)
108870
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108871
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 419883833, 624739301, 701625837)
108872
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 849405871, 624739301, 819504217)
108873
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 98413728, 245026679, 784085492)
108874
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:30:34', '2016-01-18 14:30:34', 779853880, 245026679, 431685987)
108875
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108876
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 624739301)
108877
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 245026679)
108878
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:30:34', '2016-01-18 14:30:34', 948421225)
108879
+  (5.3ms) commit transaction
108880
+  (0.1ms) begin transaction
108881
+ ------------------------------------------------------------------------------------
108882
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108883
+ ------------------------------------------------------------------------------------
108884
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108885
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [0f66ecb2-9369-4256-92b8-2eee6b1c0a8d] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108886
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [0f66ecb2-9369-4256-92b8-2eee6b1c0a8d] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.22ms
108887
+  (0.4ms) begin transaction
108888
+ -----------------------------------------------------------------------
108889
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
108890
+ -----------------------------------------------------------------------
108891
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108892
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108893
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (0.2ms) begin transaction
108894
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:30:34.976424"], ["id", 731805050]]
108895
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (0.7ms) commit transaction
108896
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (0.1ms) begin transaction
108897
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:30:35.156430"], ["id", 731805050]]
108898
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (1.0ms) commit transaction
108899
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (0.1ms) begin transaction
108900
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419]  (0.1ms) commit transaction
108901
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [b9bc46bb-42f3-4a26-8a2a-afc35f3a2419] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 381.84ms
108902
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108903
+  (0.1ms) begin transaction
108904
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
108905
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 517391740)
108906
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 701625837)
108907
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 819504217)
108908
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 132093124)
108909
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 431685987)
108910
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 620280917)
108911
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 335514824)
108912
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 183950720)
108913
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 1039265257)
108914
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 596998220)
108915
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 433078596)
108916
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 785871319)
108917
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 937304175)
108918
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 14225656)
108919
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 515736925)
108920
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:31:08', '2016-01-18 14:31:08', 538821867)
108921
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:31:08', '2016-01-18 14:31:08', 731805050)
108922
+ Fixture Delete (0.1ms) DELETE FROM "images"
108923
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 579229346)
108924
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 153115190)
108925
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108926
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 419883833, 624739301, 701625837)
108927
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 849405871, 624739301, 819504217)
108928
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 98413728, 245026679, 784085492)
108929
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:31:08', '2016-01-18 14:31:08', 779853880, 245026679, 431685987)
108930
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108931
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 624739301)
108932
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 245026679)
108933
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:31:08', '2016-01-18 14:31:08', 948421225)
108934
+  (5.3ms) commit transaction
108935
+  (0.1ms) begin transaction
108936
+ ------------------------------------------------------------------------------------
108937
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108938
+ ------------------------------------------------------------------------------------
108939
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108940
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [17c5cbbb-9478-4a67-b131-ece4d03ff6f8] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108941
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [17c5cbbb-9478-4a67-b131-ece4d03ff6f8] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.86ms
108942
+  (0.6ms) begin transaction
108943
+ -----------------------------------------------------------------------
108944
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
108945
+ -----------------------------------------------------------------------
108946
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108947
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108948
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (0.2ms) begin transaction
108949
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:31:09.393915"], ["id", 731805050]]
108950
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (1.3ms) commit transaction
108951
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (0.2ms) begin transaction
108952
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:31:09.582713"], ["id", 731805050]]
108953
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (0.8ms) commit transaction
108954
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (0.1ms) begin transaction
108955
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3]  (0.1ms) commit transaction
108956
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c29b09b6-6f33-4850-bcd3-98515ded6cc3] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 382.43ms
108957
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108958
+  (0.1ms) begin transaction
108959
+ Fixture Delete (0.4ms) DELETE FROM "fogged_resources"
108960
+ Fixture Insert (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 517391740)
108961
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 701625837)
108962
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 819504217)
108963
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 132093124)
108964
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 431685987)
108965
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 620280917)
108966
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 335514824)
108967
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 183950720)
108968
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 1039265257)
108969
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 596998220)
108970
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 433078596)
108971
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 785871319)
108972
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 937304175)
108973
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 14225656)
108974
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 515736925)
108975
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:17', '2016-01-18 14:32:17', 538821867)
108976
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:17', '2016-01-18 14:32:17', 731805050)
108977
+ Fixture Delete (0.1ms) DELETE FROM "images"
108978
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 579229346)
108979
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 153115190)
108980
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
108981
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 419883833, 624739301, 701625837)
108982
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 849405871, 624739301, 819504217)
108983
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 98413728, 245026679, 784085492)
108984
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:17', '2016-01-18 14:32:17', 779853880, 245026679, 431685987)
108985
+ Fixture Delete (0.1ms) DELETE FROM "movies"
108986
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 624739301)
108987
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 245026679)
108988
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:17', '2016-01-18 14:32:17', 948421225)
108989
+  (1.0ms) commit transaction
108990
+  (0.1ms) begin transaction
108991
+ ------------------------------------------------------------------------------------
108992
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
108993
+ ------------------------------------------------------------------------------------
108994
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
108995
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [654eacb1-4f23-4919-849b-b5572837581e] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
108996
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [654eacb1-4f23-4919-849b-b5572837581e] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 32.68ms
108997
+  (0.5ms) begin transaction
108998
+ -----------------------------------------------------------------------
108999
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
109000
+ -----------------------------------------------------------------------
109001
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
109002
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
109003
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.1ms) begin transaction
109004
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:18.993000"], ["id", 731805050]]
109005
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.7ms) commit transaction
109006
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.1ms) begin transaction
109007
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:19.452707"], ["id", 731805050]]
109008
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.7ms) commit transaction
109009
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.0ms) begin transaction
109010
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015]  (0.1ms) commit transaction
109011
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ef4e5760-aca7-4977-b36d-f5e87c861015] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 1492.57ms
109012
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
109013
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
109014
+  (0.1ms) begin transaction
109015
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
109016
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 517391740)
109017
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 701625837)
109018
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 819504217)
109019
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 132093124)
109020
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 431685987)
109021
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 620280917)
109022
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 335514824)
109023
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 183950720)
109024
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 1039265257)
109025
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 596998220)
109026
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 433078596)
109027
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 785871319)
109028
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 937304175)
109029
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 14225656)
109030
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 515736925)
109031
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:26', '2016-01-18 14:32:26', 538821867)
109032
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:26', '2016-01-18 14:32:26', 731805050)
109033
+ Fixture Delete (0.1ms) DELETE FROM "images"
109034
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 579229346)
109035
+ Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 153115190)
109036
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109037
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 419883833, 624739301, 701625837)
109038
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 849405871, 624739301, 819504217)
109039
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 98413728, 245026679, 784085492)
109040
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:26', '2016-01-18 14:32:26', 779853880, 245026679, 431685987)
109041
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109042
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 624739301)
109043
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 245026679)
109044
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:26', '2016-01-18 14:32:26', 948421225)
109045
+  (1.0ms) commit transaction
109046
+  (0.1ms) begin transaction
109047
+ --------------------------------------------
109048
+ FoggedTest: test_should_check_if_file_exists
109049
+ --------------------------------------------
109050
+  (0.1ms) rollback transaction
109051
+  (0.0ms) begin transaction
109052
+ ---------------------------------------------------
109053
+ FoggedTest: test_should_return_directory_public_url
109054
+ ---------------------------------------------------
109055
+  (0.1ms) rollback transaction
109056
+  (0.0ms) begin transaction
109057
+ ---------------------------------------------------
109058
+ FoggedTest: test_should_return_resources_public_url
109059
+ ---------------------------------------------------
109060
+  (0.0ms) rollback transaction
109061
+  (0.1ms) begin transaction
109062
+ ----------------------
109063
+ FoggedTest: test_truth
109064
+ ----------------------
109065
+  (0.0ms) rollback transaction
109066
+  (0.0ms) begin transaction
109067
+ ------------------------------------------------------------------
109068
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
109069
+ ------------------------------------------------------------------
109070
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
109071
+ Processing by Fogged::ResourcesController#create as HTML
109072
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
109073
+  (0.1ms) SAVEPOINT active_record_1
109074
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "cfb68307f69090b46cfe6663d396a59d"]]
109075
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "cfb68307f69090b46cfe6663d396a59d"], ["created_at", "2016-01-18 14:32:26.701680"], ["updated_at", "2016-01-18 14:32:26.701680"]]
109076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109077
+ Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 0.6ms)
109078
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109079
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
109080
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
109081
+  (0.5ms) rollback transaction
109082
+  (0.1ms) begin transaction
109083
+ --------------------------------------------------------------------------------------------
109084
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
109085
+ --------------------------------------------------------------------------------------------
109086
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109087
+ Processing by Fogged::ResourcesController#create as HTML
109088
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
109089
+  (0.0ms) SAVEPOINT active_record_1
109090
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
109091
+ Completed 422 Unprocessable Entity in 7ms (ActiveRecord: 0.1ms)
109092
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109093
+  (0.1ms) rollback transaction
109094
+  (0.1ms) begin transaction
109095
+ -------------------------------------------------------------------------------------------
109096
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
109097
+ -------------------------------------------------------------------------------------------
109098
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109099
+ Processing by Fogged::ResourcesController#create as HTML
109100
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
109101
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
109102
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109103
+  (0.1ms) rollback transaction
109104
+  (0.0ms) begin transaction
109105
+ ---------------------------------------------------------------------------------------
109106
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
109107
+ ---------------------------------------------------------------------------------------
109108
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109109
+ Processing by Fogged::ResourcesController#create as HTML
109110
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
109111
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
109112
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109113
+  (0.1ms) rollback transaction
109114
+  (0.0ms) begin transaction
109115
+ -----------------------------------------------------------------------------------
109116
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
109117
+ -----------------------------------------------------------------------------------
109118
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109119
+ Processing by Fogged::ResourcesController#create as HTML
109120
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
109121
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
109122
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109123
+  (0.1ms) rollback transaction
109124
+  (0.0ms) begin transaction
109125
+ -------------------------------------------------------------------------------------------------
109126
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
109127
+ -------------------------------------------------------------------------------------------------
109128
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109129
+ Processing by Fogged::ResourcesController#create as HTML
109130
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
109131
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109132
+  (0.1ms) rollback transaction
109133
+  (0.0ms) begin transaction
109134
+ ----------------------------------------------------------------
109135
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
109136
+ ----------------------------------------------------------------
109137
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
109138
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109139
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 38a45fad-f891-4781-9d94-34e773615869) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
109140
+ [ActiveJob]  (0.1ms) begin transaction
109141
+ [ActiveJob] SQL (0.4ms) INSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 38a45fad-f891-4781-9d94-34e773615869\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:32:26.848415"], ["created_at", "2016-01-18 14:32:26.848853"], ["updated_at", "2016-01-18 14:32:26.848853"]]
109142
+ [ActiveJob]  (0.7ms) commit transaction
109143
+  (0.1ms) begin transaction
109144
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:26.852887"], ["id", 14225656]]
109145
+  (0.5ms) commit transaction
109146
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109147
+  (0.5ms) begin transaction
109148
+ ----------------------------------------------------------------
109149
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
109150
+ ----------------------------------------------------------------
109151
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109152
+  (0.5ms) begin transaction
109153
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:27.084118"], ["id", 1039265257]]
109154
+  (0.8ms) commit transaction
109155
+  (0.5ms) begin transaction
109156
+ -----------------------------------------------------------------------------------
109157
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
109158
+ -----------------------------------------------------------------------------------
109159
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109160
+  (0.4ms) begin transaction
109161
+  (0.1ms) commit transaction
109162
+  (0.4ms) begin transaction
109163
+ ------------------------------------------------------------------------------------------
109164
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
109165
+ ------------------------------------------------------------------------------------------
109166
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109167
+  (0.5ms) begin transaction
109168
+  (0.1ms) commit transaction
109169
+  (0.6ms) begin transaction
109170
+ ----------------------------------------------------------------------------------------
109171
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
109172
+ ----------------------------------------------------------------------------------------
109173
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109174
+  (0.6ms) begin transaction
109175
+ ---------------------------------------------------------------------------------------
109176
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
109177
+ ---------------------------------------------------------------------------------------
109178
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
109179
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109180
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109181
+  (0.5ms) begin transaction
109182
+ ----------------------------------------------------------------------------------------
109183
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
109184
+ ----------------------------------------------------------------------------------------
109185
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109186
+  (0.5ms) begin transaction
109187
+ -------------------------------------------------------------------------------------
109188
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
109189
+ -------------------------------------------------------------------------------------
109190
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
109191
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109192
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109193
+  (0.4ms) begin transaction
109194
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
109195
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 517391740)
109196
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 701625837)
109197
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 819504217)
109198
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 132093124)
109199
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 431685987)
109200
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 620280917)
109201
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 335514824)
109202
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 183950720)
109203
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 1039265257)
109204
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 596998220)
109205
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 433078596)
109206
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 785871319)
109207
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 937304175)
109208
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 14225656)
109209
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 515736925)
109210
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 538821867)
109211
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 731805050)
109212
+ Fixture Delete (0.1ms) DELETE FROM "images"
109213
+ Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 579229346)
109214
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 153115190)
109215
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109216
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 419883833, 624739301, 701625837)
109217
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 849405871, 624739301, 819504217)
109218
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 98413728, 245026679, 784085492)
109219
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 779853880, 245026679, 431685987)
109220
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109221
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 624739301)
109222
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 245026679)
109223
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 948421225)
109224
+  (5.4ms) commit transaction
109225
+  (0.2ms) begin transaction
109226
+ ----------------------------------------------------------------------------------------------
109227
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
109228
+ ----------------------------------------------------------------------------------------------
109229
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109230
+  (0.1ms) SAVEPOINT active_record_1
109231
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.631479"], ["id", 1039265257]]
109232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109233
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109234
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109235
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109236
+  (0.1ms) SAVEPOINT active_record_1
109237
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:32:28.639241"], ["id", 1039265257]]
109238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109239
+ Completed 200 OK in 5ms (ActiveRecord: 0.8ms)
109240
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109241
+  (0.6ms) rollback transaction
109242
+  (0.1ms) begin transaction
109243
+ --------------------------------------------------------------------------------------------------------------
109244
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
109245
+ --------------------------------------------------------------------------------------------------------------
109246
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109247
+  (0.1ms) SAVEPOINT active_record_1
109248
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.645539"], ["id", 1039265257]]
109249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109250
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109251
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109252
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109253
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
109254
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109255
+  (0.4ms) rollback transaction
109256
+  (0.1ms) begin transaction
109257
+ --------------------------------------------------------------------------------------------------------------
109258
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
109259
+ --------------------------------------------------------------------------------------------------------------
109260
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109261
+  (0.0ms) SAVEPOINT active_record_1
109262
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.653131"], ["id", 1039265257]]
109263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109264
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109265
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109266
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
109267
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
109268
+  (0.5ms) rollback transaction
109269
+  (0.1ms) begin transaction
109270
+ -------------------------------------------------------------------------------------------------------------------
109271
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
109272
+ -------------------------------------------------------------------------------------------------------------------
109273
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109274
+  (0.0ms) SAVEPOINT active_record_1
109275
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:28.659749"], ["id", 1039265257]]
109276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109277
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109278
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
109279
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109280
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
109281
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109282
+  (0.4ms) rollback transaction
109283
+  (0.1ms) begin transaction
109284
+ ---------------------------------------------------
109285
+ ImageTest: test_image_url_changing_the_storage_name
109286
+ ---------------------------------------------------
109287
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109288
+  (0.0ms) SAVEPOINT active_record_1
109289
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:32:28.674933"], ["updated_at", "2016-01-18 14:32:28.674933"]]
109290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109291
+  (0.4ms) rollback transaction
109292
+  (0.1ms) begin transaction
109293
+ -------------------------------------------------------------
109294
+ ImageTest: test_should_not_save_image_with_uploading_resource
109295
+ -------------------------------------------------------------
109296
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109297
+  (0.1ms) SAVEPOINT active_record_1
109298
+ SQL (0.3ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:28.679866"], ["id", 701625837]]
109299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109300
+  (0.1ms) SAVEPOINT active_record_1
109301
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
109302
+  (0.4ms) rollback transaction
109303
+  (0.1ms) begin transaction
109304
+ --------------------------------------------------------
109305
+ ImageTest: test_should_save_image_with_uploaded_resource
109306
+ --------------------------------------------------------
109307
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109308
+  (0.1ms) SAVEPOINT active_record_1
109309
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:32:28.684695"], ["updated_at", "2016-01-18 14:32:28.684695"]]
109310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109311
+  (0.4ms) rollback transaction
109312
+  (0.1ms) begin transaction
109313
+ --------------------------------------------------
109314
+ ImageTest: test_should_save_image_without_resource
109315
+ --------------------------------------------------
109316
+  (0.1ms) SAVEPOINT active_record_1
109317
+ SQL (0.4ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:28.687630"], ["updated_at", "2016-01-18 14:32:28.687630"]]
109318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109319
+  (0.3ms) rollback transaction
109320
+  (0.1ms) begin transaction
109321
+ ----------------------------------------------------------------------------------
109322
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
109323
+ ----------------------------------------------------------------------------------
109324
+ Processing by Fogged::ResourcesController#show as HTML
109325
+ Parameters: {"id"=>"1234567890"}
109326
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
109327
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
109328
+  (0.1ms) rollback transaction
109329
+  (0.0ms) begin transaction
109330
+ --------------------------------------------------------------------
109331
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
109332
+ --------------------------------------------------------------------
109333
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109334
+ Processing by Fogged::ResourcesController#show as HTML
109335
+ Parameters: {"id"=>"785871319"}
109336
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109337
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
109338
+  (0.1ms) rollback transaction
109339
+  (0.0ms) begin transaction
109340
+ --------------------------------------------------------------
109341
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
109342
+ --------------------------------------------------------------
109343
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109344
+ Processing by Fogged::ResourcesController#show as HTML
109345
+ Parameters: {"id"=>"701625837"}
109346
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109347
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
109348
+  (0.1ms) rollback transaction
109349
+  (0.1ms) begin transaction
109350
+ --------------------------------------------------------------------
109351
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
109352
+ --------------------------------------------------------------------
109353
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109354
+ Processing by Fogged::ResourcesController#show as HTML
109355
+ Parameters: {"id"=>"335514824"}
109356
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109357
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
109358
+  (0.1ms) rollback transaction
109359
+  (0.1ms) begin transaction
109360
+ ---------------------------------------------------
109361
+ Fogged::ResourceTest: test_resource_should_be_valid
109362
+ ---------------------------------------------------
109363
+  (0.1ms) SAVEPOINT active_record_1
109364
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "25e4ce9999e6ce1a6ff1586a192fd521"]]
109365
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "25e4ce9999e6ce1a6ff1586a192fd521"], ["created_at", "2016-01-18 14:32:28.713128"], ["updated_at", "2016-01-18 14:32:28.713128"]]
109366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109367
+  (0.4ms) rollback transaction
109368
+  (0.1ms) begin transaction
109369
+ ----------------------------------------------------------------------------
109370
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
109371
+ ----------------------------------------------------------------------------
109372
+  (0.0ms) SAVEPOINT active_record_1
109373
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "c3a2528d7426ee9f4c8efcf7947f7f64"]]
109374
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "c3a2528d7426ee9f4c8efcf7947f7f64"], ["created_at", "2016-01-18 14:32:28.716762"], ["updated_at", "2016-01-18 14:32:28.716762"]]
109375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109376
+  (0.0ms) SAVEPOINT active_record_1
109377
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
109378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109379
+  (0.5ms) rollback transaction
109380
+  (0.1ms) begin transaction
109381
+ -------------------------------------------------------------------------
109382
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
109383
+ -------------------------------------------------------------------------
109384
+  (0.0ms) SAVEPOINT active_record_1
109385
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "0cb5db9b3149ed7402341c4554ec6931"]]
109386
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "0cb5db9b3149ed7402341c4554ec6931"], ["created_at", "2016-01-18 14:32:28.721918"], ["updated_at", "2016-01-18 14:32:28.721918"]]
109387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109388
+  (0.3ms) rollback transaction
109389
+  (0.1ms) begin transaction
109390
+ -------------------------------------------------------------
109391
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
109392
+ -------------------------------------------------------------
109393
+  (0.0ms) SAVEPOINT active_record_1
109394
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "bd3edde39f2c014fcdf7ae14e6be311b"]]
109395
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "bd3edde39f2c014fcdf7ae14e6be311b"], ["created_at", "2016-01-18 14:32:28.724609"], ["updated_at", "2016-01-18 14:32:28.724609"]]
109396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109397
+  (0.3ms) rollback transaction
109398
+  (0.0ms) begin transaction
109399
+ ------------------------------------------------------
109400
+ Fogged::ResourceTest: test_resource_should_have_an_url
109401
+ ------------------------------------------------------
109402
+  (0.0ms) SAVEPOINT active_record_1
109403
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "53f09c4b3a3d271c1556ada009aa9c49"]]
109404
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "53f09c4b3a3d271c1556ada009aa9c49"], ["created_at", "2016-01-18 14:32:28.728112"], ["updated_at", "2016-01-18 14:32:28.728112"]]
109405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109406
+  (0.3ms) rollback transaction
109407
+  (0.0ms) begin transaction
109408
+ ----------------------------------------------------------------------------
109409
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
109410
+ ----------------------------------------------------------------------------
109411
+  (0.0ms) SAVEPOINT active_record_1
109412
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
109413
+  (0.0ms) rollback transaction
109414
+  (0.0ms) begin transaction
109415
+ -------------------------------------------------------------------------
109416
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
109417
+ -------------------------------------------------------------------------
109418
+  (0.0ms) SAVEPOINT active_record_1
109419
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
109420
+  (0.0ms) rollback transaction
109421
+  (0.0ms) begin transaction
109422
+ --------------------------------------------------------
109423
+ Fogged::ResourceTest: test_should_process_resource_image
109424
+ --------------------------------------------------------
109425
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109426
+  (0.0ms) SAVEPOINT active_record_1
109427
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:28.734865"], ["id", 785871319]]
109428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109429
+  (0.3ms) rollback transaction
109430
+  (0.0ms) begin transaction
109431
+ --------------------------------------------------------
109432
+ Fogged::ResourceTest: test_should_process_resource_video
109433
+ --------------------------------------------------------
109434
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109435
+  (0.1ms) rollback transaction
109436
+  (0.0ms) begin transaction
109437
+ ------------------------------------------------------------------------------
109438
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
109439
+ ------------------------------------------------------------------------------
109440
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109441
+  (0.1ms) begin transaction
109442
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:28.823291"], ["id", 335514824]]
109443
+  (0.8ms) commit transaction
109444
+  (0.4ms) begin transaction
109445
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
109446
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 517391740)
109447
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 701625837)
109448
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 819504217)
109449
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 132093124)
109450
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 431685987)
109451
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 620280917)
109452
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 335514824)
109453
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 183950720)
109454
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 1039265257)
109455
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 596998220)
109456
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 433078596)
109457
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 785871319)
109458
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 937304175)
109459
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 14225656)
109460
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 515736925)
109461
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 538821867)
109462
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:28', '2016-01-18 14:32:28', 731805050)
109463
+ Fixture Delete (0.1ms) DELETE FROM "images"
109464
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 579229346)
109465
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:28', '2016-01-18 14:32:28', 153115190)
109466
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109467
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 419883833, 624739301, 701625837)
109468
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 849405871, 624739301, 819504217)
109469
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 98413728, 245026679, 784085492)
109470
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:28', '2016-01-18 14:32:28', 779853880, 245026679, 431685987)
109471
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109472
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 624739301)
109473
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 245026679)
109474
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 948421225)
109475
+  (0.9ms) commit transaction
109476
+  (0.1ms) begin transaction
109477
+ ------------------------------------------------------------------------------------
109478
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
109479
+ ------------------------------------------------------------------------------------
109480
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
109481
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [71bd71ae-5c9c-490c-a967-0be064243f90] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
109482
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [71bd71ae-5c9c-490c-a967-0be064243f90] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 26.83ms
109483
+  (0.5ms) begin transaction
109484
+ -----------------------------------------------------------------------
109485
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
109486
+ -----------------------------------------------------------------------
109487
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
109488
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
109489
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (0.7ms) begin transaction
109490
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:29.570683"], ["id", 731805050]]
109491
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (0.9ms) commit transaction
109492
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (0.3ms) begin transaction
109493
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:29.752975"], ["id", 731805050]]
109494
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (1.1ms) commit transaction
109495
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (0.1ms) begin transaction
109496
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc]  (0.1ms) commit transaction
109497
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [ed2a8b73-1898-48b6-962b-7745042148cc] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 386.18ms
109498
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
109499
+  (0.4ms) begin transaction
109500
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
109501
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 517391740)
109502
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 701625837)
109503
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 819504217)
109504
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 132093124)
109505
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 431685987)
109506
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 620280917)
109507
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 335514824)
109508
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 183950720)
109509
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 1039265257)
109510
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 596998220)
109511
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 433078596)
109512
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 785871319)
109513
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 937304175)
109514
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 14225656)
109515
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 515736925)
109516
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:29', '2016-01-18 14:32:29', 538821867)
109517
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:29', '2016-01-18 14:32:29', 731805050)
109518
+ Fixture Delete (0.1ms) DELETE FROM "images"
109519
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 579229346)
109520
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 153115190)
109521
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109522
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 419883833, 624739301, 701625837)
109523
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 849405871, 624739301, 819504217)
109524
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 98413728, 245026679, 784085492)
109525
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:29', '2016-01-18 14:32:29', 779853880, 245026679, 431685987)
109526
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109527
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 624739301)
109528
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 245026679)
109529
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:29', '2016-01-18 14:32:29', 948421225)
109530
+  (1.1ms) commit transaction
109531
+  (0.0ms) begin transaction
109532
+ --------------------------------------------------------------------------------------
109533
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
109534
+ --------------------------------------------------------------------------------------
109535
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109536
+ Processing by Fogged::ResourcesController#update as HTML
109537
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
109538
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
109539
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
109540
+  (0.1ms) rollback transaction
109541
+  (0.0ms) begin transaction
109542
+ ------------------------------------------------------------------
109543
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
109544
+ ------------------------------------------------------------------
109545
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109546
+ Processing by Fogged::ResourcesController#update as HTML
109547
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
109548
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109549
+  (0.0ms) SAVEPOINT active_record_1
109550
+ SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-01-18 14:32:29.947624"], ["id", 785871319]]
109551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109552
+ Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms)
109553
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109554
+  (0.4ms) rollback transaction
109555
+  (0.1ms) begin transaction
109556
+ ------------------------------------------------------------------------
109557
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
109558
+ ------------------------------------------------------------------------
109559
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
109560
+ Processing by Fogged::ResourcesController#index as HTML
109561
+ Parameters: {"type"=>"movie"}
109562
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
109563
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
109564
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109565
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
109566
+ Completed 200 OK in 26ms (Views: 3.4ms | ActiveRecord: 0.4ms)
109567
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
109568
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
109569
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109570
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
109571
+  (0.1ms) rollback transaction
109572
+  (0.0ms) begin transaction
109573
+ ---------------------------------------------------------------------
109574
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
109575
+ ---------------------------------------------------------------------
109576
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
109577
+ Processing by Fogged::ResourcesController#index as HTML
109578
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
109579
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
109580
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109581
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
109582
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109583
+  (0.2ms) rollback transaction
109584
+  (0.1ms) begin transaction
109585
+ -----------------------------------------------------------------------------------------------
109586
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
109587
+ -----------------------------------------------------------------------------------------------
109588
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
109589
+  (0.1ms) SAVEPOINT active_record_1
109590
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "5a9276544d7bfb88ceeb868482579332"]]
109591
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "5a9276544d7bfb88ceeb868482579332"], ["created_at", "2016-01-18 14:32:30.019279"], ["updated_at", "2016-01-18 14:32:30.019279"]]
109592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109593
+  (0.0ms) SAVEPOINT active_record_1
109594
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:32:30.027524"], ["updated_at", "2016-01-18 14:32:30.027524"]]
109595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109596
+ Processing by Fogged::ResourcesController#index as HTML
109597
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
109598
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
109599
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
109600
+ Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)
109601
+  (0.8ms) rollback transaction
109602
+  (0.1ms) begin transaction
109603
+ --------------------------------------------------------------------
109604
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
109605
+ --------------------------------------------------------------------
109606
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
109607
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
109608
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109609
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
109610
+ Processing by Fogged::ResourcesController#index as HTML
109611
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
109612
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
109613
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
109614
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
109615
+ Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms)
109616
+  (0.1ms) rollback transaction
109617
+  (0.0ms) begin transaction
109618
+ -------------------------------------------------------------------------------
109619
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
109620
+ -------------------------------------------------------------------------------
109621
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
109622
+ Processing by Fogged::ResourcesController#index as HTML
109623
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
109624
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
109625
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
109626
+  (0.1ms) rollback transaction
109627
+  (0.0ms) begin transaction
109628
+ -------------------------------------------------------------
109629
+ MovieTest: test_should_not_save_movie_with_uploading_resource
109630
+ -------------------------------------------------------------
109631
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109632
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
109633
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
109634
+  (0.1ms) SAVEPOINT active_record_1
109635
+ SQL (0.3ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:30.062629"], ["id", 431685987]]
109636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109637
+  (0.1ms) SAVEPOINT active_record_1
109638
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
109639
+  (0.5ms) rollback transaction
109640
+  (0.1ms) begin transaction
109641
+ ---------------------------------------------------
109642
+ MovieTest: test_should_save_movie_with_no_resources
109643
+ ---------------------------------------------------
109644
+  (0.1ms) SAVEPOINT active_record_1
109645
+ SQL (0.4ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:30.069163"], ["updated_at", "2016-01-18 14:32:30.069163"]]
109646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109647
+  (0.4ms) rollback transaction
109648
+  (0.1ms) begin transaction
109649
+ --------------------------------------------------------
109650
+ MovieTest: test_should_save_movie_with_several_resources
109651
+ --------------------------------------------------------
109652
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109653
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
109654
+  (0.1ms) SAVEPOINT active_record_1
109655
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:30.077093"], ["updated_at", "2016-01-18 14:32:30.077093"]]
109656
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:30.078711"], ["updated_at", "2016-01-18 14:32:30.078711"]]
109657
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:30.080356"], ["updated_at", "2016-01-18 14:32:30.080356"]]
109658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109659
+  (0.4ms) rollback transaction
109660
+  (0.1ms) begin transaction
109661
+ -------------------------------------------------------
109662
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
109663
+ -------------------------------------------------------
109664
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109665
+  (0.1ms) rollback transaction
109666
+  (0.0ms) begin transaction
109667
+ --------------------------------------------------------------------
109668
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
109669
+ --------------------------------------------------------------------
109670
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109671
+ Processing by Fogged::ResourcesController#confirm as HTML
109672
+ Parameters: {"id"=>"785871319"}
109673
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109674
+  (0.0ms) SAVEPOINT active_record_1
109675
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:30.091116"], ["id", 785871319]]
109676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109677
+  (0.1ms) SAVEPOINT active_record_1
109678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109679
+ Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.7ms)
109680
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109681
+  (0.5ms) rollback transaction
109682
+  (0.1ms) begin transaction
109683
+ ------------------------------------------------------------------------------------------------
109684
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
109685
+ ------------------------------------------------------------------------------------------------
109686
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109687
+ Processing by Fogged::ResourcesController#confirm as HTML
109688
+ Parameters: {"id"=>"335514824"}
109689
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109690
+  (0.2ms) begin transaction
109691
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:30.149385"], ["id", 335514824]]
109692
+  (0.8ms) commit transaction
109693
+  (0.1ms) begin transaction
109694
+  (0.0ms) commit transaction
109695
+ Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 1.6ms)
109696
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109697
+  (0.5ms) begin transaction
109698
+ ----------------------------------------------------------------------------------------
109699
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
109700
+ ----------------------------------------------------------------------------------------
109701
+ Processing by Fogged::ResourcesController#confirm as HTML
109702
+ Parameters: {"id"=>"123456"}
109703
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
109704
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
109705
+  (0.1ms) rollback transaction
109706
+  (0.1ms) begin transaction
109707
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
109708
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 517391740)
109709
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 701625837)
109710
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 819504217)
109711
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 132093124)
109712
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 431685987)
109713
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 620280917)
109714
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 335514824)
109715
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 183950720)
109716
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 1039265257)
109717
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 596998220)
109718
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 433078596)
109719
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 785871319)
109720
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 937304175)
109721
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 14225656)
109722
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 515736925)
109723
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:30', '2016-01-18 14:32:30', 538821867)
109724
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:30', '2016-01-18 14:32:30', 731805050)
109725
+ Fixture Delete (0.1ms) DELETE FROM "images"
109726
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 579229346)
109727
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 153115190)
109728
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109729
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 419883833, 624739301, 701625837)
109730
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 849405871, 624739301, 819504217)
109731
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 98413728, 245026679, 784085492)
109732
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:30', '2016-01-18 14:32:30', 779853880, 245026679, 431685987)
109733
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109734
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 624739301)
109735
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 245026679)
109736
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:30', '2016-01-18 14:32:30', 948421225)
109737
+  (1.1ms) commit transaction
109738
+  (0.0ms) begin transaction
109739
+ --------------------------------------------------------------------
109740
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
109741
+ --------------------------------------------------------------------
109742
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109743
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109744
+ Processing by Fogged::ResourcesController#destroy as HTML
109745
+ Parameters: {"id"=>"785871319"}
109746
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109747
+  (0.1ms) SAVEPOINT active_record_1
109748
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
109749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109750
+ Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)
109751
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109752
+  (0.4ms) rollback transaction
109753
+  (0.1ms) begin transaction
109754
+ ----------------------------------------------------------------------------------------
109755
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
109756
+ ----------------------------------------------------------------------------------------
109757
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109758
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109759
+ Processing by Fogged::ResourcesController#destroy as HTML
109760
+ Parameters: {"id"=>"123456"}
109761
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
109762
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
109763
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109764
+  (0.1ms) rollback transaction
109765
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
109766
+  (0.1ms) begin transaction
109767
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
109768
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 517391740)
109769
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 701625837)
109770
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 819504217)
109771
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 132093124)
109772
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 431685987)
109773
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 620280917)
109774
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 335514824)
109775
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 183950720)
109776
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 1039265257)
109777
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 596998220)
109778
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 433078596)
109779
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 785871319)
109780
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 937304175)
109781
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 14225656)
109782
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 515736925)
109783
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:38', '2016-01-18 14:32:38', 538821867)
109784
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:38', '2016-01-18 14:32:38', 731805050)
109785
+ Fixture Delete (0.1ms) DELETE FROM "images"
109786
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 579229346)
109787
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 153115190)
109788
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
109789
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 419883833, 624739301, 701625837)
109790
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 849405871, 624739301, 819504217)
109791
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 98413728, 245026679, 784085492)
109792
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:38', '2016-01-18 14:32:38', 779853880, 245026679, 431685987)
109793
+ Fixture Delete (0.1ms) DELETE FROM "movies"
109794
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 624739301)
109795
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 245026679)
109796
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:38', '2016-01-18 14:32:38', 948421225)
109797
+  (5.0ms) commit transaction
109798
+  (0.1ms) begin transaction
109799
+ --------------------------------------------------------------------------------------
109800
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
109801
+ --------------------------------------------------------------------------------------
109802
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109803
+ Processing by Fogged::ResourcesController#update as HTML
109804
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
109805
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
109806
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
109807
+  (0.1ms) rollback transaction
109808
+  (0.0ms) begin transaction
109809
+ ------------------------------------------------------------------
109810
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
109811
+ ------------------------------------------------------------------
109812
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109813
+ Processing by Fogged::ResourcesController#update as HTML
109814
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
109815
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109816
+  (0.1ms) SAVEPOINT active_record_1
109817
+ SQL (0.4ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-01-18 14:32:38.615846"], ["id", 785871319]]
109818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109819
+ Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.5ms)
109820
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109821
+  (0.6ms) rollback transaction
109822
+  (0.1ms) begin transaction
109823
+ ----------------------------------------------------------------------------------------------
109824
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
109825
+ ----------------------------------------------------------------------------------------------
109826
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109827
+  (0.0ms) SAVEPOINT active_record_1
109828
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.627566"], ["id", 1039265257]]
109829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109830
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109831
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109832
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109833
+  (0.1ms) SAVEPOINT active_record_1
109834
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-01-18 14:32:38.632448"], ["id", 1039265257]]
109835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109836
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
109837
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109838
+  (0.7ms) rollback transaction
109839
+  (0.1ms) begin transaction
109840
+ --------------------------------------------------------------------------------------------------------------
109841
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
109842
+ --------------------------------------------------------------------------------------------------------------
109843
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109844
+  (0.1ms) SAVEPOINT active_record_1
109845
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.638153"], ["id", 1039265257]]
109846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109847
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109848
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109849
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109850
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
109851
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109852
+  (0.4ms) rollback transaction
109853
+  (0.0ms) begin transaction
109854
+ --------------------------------------------------------------------------------------------------------------
109855
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
109856
+ --------------------------------------------------------------------------------------------------------------
109857
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109858
+  (0.0ms) SAVEPOINT active_record_1
109859
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.644767"], ["id", 1039265257]]
109860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109861
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109862
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
109863
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
109864
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
109865
+  (0.5ms) rollback transaction
109866
+  (0.0ms) begin transaction
109867
+ -------------------------------------------------------------------------------------------------------------------
109868
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
109869
+ -------------------------------------------------------------------------------------------------------------------
109870
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109871
+  (0.1ms) SAVEPOINT active_record_1
109872
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-01-18 14:32:38.650074"], ["id", 1039265257]]
109873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109874
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
109875
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
109876
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
109877
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
109878
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109879
+  (0.7ms) rollback transaction
109880
+  (0.0ms) begin transaction
109881
+ -------------------------------------------------------
109882
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
109883
+ -------------------------------------------------------
109884
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109885
+  (0.1ms) rollback transaction
109886
+  (0.0ms) begin transaction
109887
+ ----------------------------------------------------------------------------------
109888
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
109889
+ ----------------------------------------------------------------------------------
109890
+ Processing by Fogged::ResourcesController#show as HTML
109891
+ Parameters: {"id"=>"1234567890"}
109892
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
109893
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
109894
+  (0.0ms) rollback transaction
109895
+  (0.0ms) begin transaction
109896
+ --------------------------------------------------------------------
109897
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
109898
+ --------------------------------------------------------------------
109899
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109900
+ Processing by Fogged::ResourcesController#show as HTML
109901
+ Parameters: {"id"=>"785871319"}
109902
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109903
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
109904
+  (0.1ms) rollback transaction
109905
+  (0.0ms) begin transaction
109906
+ --------------------------------------------------------------
109907
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
109908
+ --------------------------------------------------------------
109909
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109910
+ Processing by Fogged::ResourcesController#show as HTML
109911
+ Parameters: {"id"=>"701625837"}
109912
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
109913
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
109914
+  (0.1ms) rollback transaction
109915
+  (0.1ms) begin transaction
109916
+ --------------------------------------------------------------------
109917
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
109918
+ --------------------------------------------------------------------
109919
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109920
+ Processing by Fogged::ResourcesController#show as HTML
109921
+ Parameters: {"id"=>"335514824"}
109922
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
109923
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
109924
+  (0.1ms) rollback transaction
109925
+  (0.1ms) begin transaction
109926
+ --------------------------------------------------------------------
109927
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
109928
+ --------------------------------------------------------------------
109929
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109930
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109931
+ Processing by Fogged::ResourcesController#destroy as HTML
109932
+ Parameters: {"id"=>"785871319"}
109933
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109934
+  (0.0ms) SAVEPOINT active_record_1
109935
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
109936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109937
+ Completed 204 No Content in 2ms (ActiveRecord: 0.4ms)
109938
+  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"
109939
+  (0.6ms) rollback transaction
109940
+  (0.1ms) begin transaction
109941
+ ----------------------------------------------------------------------------------------
109942
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
109943
+ ----------------------------------------------------------------------------------------
109944
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109945
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109946
+ Processing by Fogged::ResourcesController#destroy as HTML
109947
+ Parameters: {"id"=>"123456"}
109948
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
109949
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
109950
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
109951
+  (0.1ms) rollback transaction
109952
+  (0.1ms) begin transaction
109953
+ ----------------------------------------------------------------
109954
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
109955
+ ----------------------------------------------------------------
109956
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
109957
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109958
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 5a970c66-a44f-4312-b299-a477bcc795cc) to DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/14225656
109959
+ [ActiveJob]  (0.2ms) begin transaction
109960
+ [ActiveJob] SQL (0.5ms) INSERT INTO "delayed_jobs" ("queue", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["queue", "default"], ["handler", "--- !ruby/object:ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper\njob_data:\n job_class: Fogged::Resources::AWSThumbnailJob\n job_id: 5a970c66-a44f-4312-b299-a477bcc795cc\n queue_name: default\n arguments:\n - _aj_globalid: gid://dummy/Fogged::Resource/14225656\n"], ["run_at", "2016-01-18 14:32:38.799837"], ["created_at", "2016-01-18 14:32:38.800439"], ["updated_at", "2016-01-18 14:32:38.800439"]]
109961
+ [ActiveJob]  (1.0ms) commit transaction
109962
+  (0.0ms) begin transaction
109963
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:38.804923"], ["id", 14225656]]
109964
+  (0.7ms) commit transaction
109965
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
109966
+  (0.6ms) begin transaction
109967
+ ----------------------------------------------------------------
109968
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
109969
+ ----------------------------------------------------------------
109970
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109971
+  (0.5ms) begin transaction
109972
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:39.039588"], ["id", 1039265257]]
109973
+  (0.7ms) commit transaction
109974
+  (0.5ms) begin transaction
109975
+ -----------------------------------------------------------------------------------
109976
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
109977
+ -----------------------------------------------------------------------------------
109978
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109979
+  (0.5ms) begin transaction
109980
+  (0.0ms) commit transaction
109981
+  (0.6ms) begin transaction
109982
+ ------------------------------------------------------------------------------------------
109983
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
109984
+ ------------------------------------------------------------------------------------------
109985
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
109986
+  (0.5ms) begin transaction
109987
+  (0.1ms) commit transaction
109988
+  (0.5ms) begin transaction
109989
+ ----------------------------------------------------------------------------------------
109990
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
109991
+ ----------------------------------------------------------------------------------------
109992
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
109993
+  (0.6ms) begin transaction
109994
+ ---------------------------------------------------------------------------------------
109995
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
109996
+ ---------------------------------------------------------------------------------------
109997
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
109998
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
109999
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
110000
+  (0.6ms) begin transaction
110001
+ ----------------------------------------------------------------------------------------
110002
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
110003
+ ----------------------------------------------------------------------------------------
110004
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110005
+  (0.5ms) begin transaction
110006
+ -------------------------------------------------------------------------------------
110007
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
110008
+ -------------------------------------------------------------------------------------
110009
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
110010
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
110011
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
110012
+  (0.4ms) begin transaction
110013
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
110014
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 517391740)
110015
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 701625837)
110016
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 819504217)
110017
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 132093124)
110018
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 431685987)
110019
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 620280917)
110020
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 335514824)
110021
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 183950720)
110022
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 1039265257)
110023
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 596998220)
110024
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 433078596)
110025
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 785871319)
110026
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 937304175)
110027
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 14225656)
110028
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 515736925)
110029
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:40', '2016-01-18 14:32:40', 538821867)
110030
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:40', '2016-01-18 14:32:40', 731805050)
110031
+ Fixture Delete (0.1ms) DELETE FROM "images"
110032
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 579229346)
110033
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 153115190)
110034
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
110035
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 419883833, 624739301, 701625837)
110036
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 849405871, 624739301, 819504217)
110037
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 98413728, 245026679, 784085492)
110038
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:40', '2016-01-18 14:32:40', 779853880, 245026679, 431685987)
110039
+ Fixture Delete (0.1ms) DELETE FROM "movies"
110040
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 624739301)
110041
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 245026679)
110042
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:40', '2016-01-18 14:32:40', 948421225)
110043
+  (5.1ms) commit transaction
110044
+  (0.1ms) begin transaction
110045
+ ------------------------------------------------------------------------------------
110046
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
110047
+ ------------------------------------------------------------------------------------
110048
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
110049
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c559060d-3c86-4964-9393-746ea1b3c202] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
110050
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c559060d-3c86-4964-9393-746ea1b3c202] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 27.12ms
110051
+  (0.5ms) begin transaction
110052
+ -----------------------------------------------------------------------
110053
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
110054
+ -----------------------------------------------------------------------
110055
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
110056
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] Performing Fogged::Resources::AWSThumbnailJob from DelayedJob(default) with arguments: gid://dummy/Fogged::Resource/731805050
110057
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.6ms) begin transaction
110058
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-01-18 14:32:41.139730"], ["id", 731805050]]
110059
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.9ms) commit transaction
110060
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.1ms) begin transaction
110061
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-01-18 14:32:41.425632"], ["id", 731805050]]
110062
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.7ms) commit transaction
110063
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.0ms) begin transaction
110064
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe]  (0.0ms) commit transaction
110065
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2af1c95e-03c2-4e50-a934-4dc37f1a6ebe] Performed Fogged::Resources::AWSThumbnailJob from DelayedJob(default) in 497.04ms
110066
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
110067
+  (0.4ms) begin transaction
110068
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
110069
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 517391740)
110070
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 701625837)
110071
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 819504217)
110072
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 132093124)
110073
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 431685987)
110074
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 620280917)
110075
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 335514824)
110076
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 183950720)
110077
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 1039265257)
110078
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 596998220)
110079
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 433078596)
110080
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 785871319)
110081
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 937304175)
110082
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 14225656)
110083
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 515736925)
110084
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 538821867)
110085
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 731805050)
110086
+ Fixture Delete (0.1ms) DELETE FROM "images"
110087
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 579229346)
110088
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 153115190)
110089
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
110090
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 419883833, 624739301, 701625837)
110091
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 849405871, 624739301, 819504217)
110092
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 98413728, 245026679, 784085492)
110093
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 779853880, 245026679, 431685987)
110094
+ Fixture Delete (0.1ms) DELETE FROM "movies"
110095
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 624739301)
110096
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 245026679)
110097
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 948421225)
110098
+  (1.1ms) commit transaction
110099
+  (0.0ms) begin transaction
110100
+ --------------------------------------------
110101
+ FoggedTest: test_should_check_if_file_exists
110102
+ --------------------------------------------
110103
+  (0.0ms) rollback transaction
110104
+  (0.0ms) begin transaction
110105
+ ---------------------------------------------------
110106
+ FoggedTest: test_should_return_directory_public_url
110107
+ ---------------------------------------------------
110108
+  (0.0ms) rollback transaction
110109
+  (0.1ms) begin transaction
110110
+ ---------------------------------------------------
110111
+ FoggedTest: test_should_return_resources_public_url
110112
+ ---------------------------------------------------
110113
+  (0.0ms) rollback transaction
110114
+  (0.1ms) begin transaction
110115
+ ----------------------
110116
+ FoggedTest: test_truth
110117
+ ----------------------
110118
+  (0.0ms) rollback transaction
110119
+  (0.1ms) begin transaction
110120
+ ------------------------------------------------------------------------
110121
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
110122
+ ------------------------------------------------------------------------
110123
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
110124
+ Processing by Fogged::ResourcesController#index as HTML
110125
+ Parameters: {"type"=>"movie"}
110126
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
110127
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
110128
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110129
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
110130
+ Completed 200 OK in 27ms (Views: 3.5ms | ActiveRecord: 0.3ms)
110131
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
110132
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
110133
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110134
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
110135
+  (0.1ms) rollback transaction
110136
+  (0.0ms) begin transaction
110137
+ ---------------------------------------------------------------------
110138
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
110139
+ ---------------------------------------------------------------------
110140
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
110141
+ Processing by Fogged::ResourcesController#index as HTML
110142
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
110143
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
110144
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110145
+ Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms)
110146
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110147
+  (0.1ms) rollback transaction
110148
+  (0.1ms) begin transaction
110149
+ -----------------------------------------------------------------------------------------------
110150
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
110151
+ -----------------------------------------------------------------------------------------------
110152
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
110153
+  (0.0ms) SAVEPOINT active_record_1
110154
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "f4ceb15a18ae512fc20488081cbdf593"]]
110155
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "f4ceb15a18ae512fc20488081cbdf593"], ["created_at", "2016-01-18 14:32:41.663516"], ["updated_at", "2016-01-18 14:32:41.663516"]]
110156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110157
+  (0.0ms) SAVEPOINT active_record_1
110158
+ SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265258], ["created_at", "2016-01-18 14:32:41.671664"], ["updated_at", "2016-01-18 14:32:41.671664"]]
110159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110160
+ Processing by Fogged::ResourcesController#index as HTML
110161
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
110162
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
110163
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
110164
+ Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)
110165
+  (0.8ms) rollback transaction
110166
+  (0.0ms) begin transaction
110167
+ --------------------------------------------------------------------
110168
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
110169
+ --------------------------------------------------------------------
110170
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
110171
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
110172
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110173
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
110174
+ Processing by Fogged::ResourcesController#index as HTML
110175
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
110176
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
110177
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
110178
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
110179
+ Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.3ms)
110180
+  (0.1ms) rollback transaction
110181
+  (0.0ms) begin transaction
110182
+ -------------------------------------------------------------------------------
110183
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
110184
+ -------------------------------------------------------------------------------
110185
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
110186
+ Processing by Fogged::ResourcesController#index as HTML
110187
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
110188
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
110189
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
110190
+  (0.1ms) rollback transaction
110191
+  (0.1ms) begin transaction
110192
+ --------------------------------------------------------------------
110193
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
110194
+ --------------------------------------------------------------------
110195
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
110196
+ Processing by Fogged::ResourcesController#confirm as HTML
110197
+ Parameters: {"id"=>"785871319"}
110198
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
110199
+  (0.0ms) SAVEPOINT active_record_1
110200
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:41.699978"], ["id", 785871319]]
110201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110202
+  (0.0ms) SAVEPOINT active_record_1
110203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110204
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.5ms)
110205
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
110206
+  (0.5ms) rollback transaction
110207
+  (0.1ms) begin transaction
110208
+ ------------------------------------------------------------------------------------------------
110209
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
110210
+ ------------------------------------------------------------------------------------------------
110211
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110212
+ Processing by Fogged::ResourcesController#confirm as HTML
110213
+ Parameters: {"id"=>"335514824"}
110214
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110215
+  (0.2ms) begin transaction
110216
+ SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:41.762369"], ["id", 335514824]]
110217
+  (0.9ms) commit transaction
110218
+  (0.1ms) begin transaction
110219
+  (0.1ms) commit transaction
110220
+ Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 1.8ms)
110221
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110222
+  (0.7ms) begin transaction
110223
+ ----------------------------------------------------------------------------------------
110224
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
110225
+ ----------------------------------------------------------------------------------------
110226
+ Processing by Fogged::ResourcesController#confirm as HTML
110227
+ Parameters: {"id"=>"123456"}
110228
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
110229
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
110230
+  (0.1ms) rollback transaction
110231
+  (0.0ms) begin transaction
110232
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
110233
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 517391740)
110234
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 701625837)
110235
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 819504217)
110236
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 132093124)
110237
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 431685987)
110238
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 620280917)
110239
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 335514824)
110240
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 183950720)
110241
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 1039265257)
110242
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 596998220)
110243
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 433078596)
110244
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 785871319)
110245
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 937304175)
110246
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 14225656)
110247
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 515736925)
110248
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 538821867)
110249
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:41', '2016-01-18 14:32:41', 731805050)
110250
+ Fixture Delete (0.1ms) DELETE FROM "images"
110251
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 579229346)
110252
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 153115190)
110253
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
110254
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 419883833, 624739301, 701625837)
110255
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 849405871, 624739301, 819504217)
110256
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 98413728, 245026679, 784085492)
110257
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:41', '2016-01-18 14:32:41', 779853880, 245026679, 431685987)
110258
+ Fixture Delete (0.1ms) DELETE FROM "movies"
110259
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 624739301)
110260
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 245026679)
110261
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:41', '2016-01-18 14:32:41', 948421225)
110262
+  (0.9ms) commit transaction
110263
+  (0.1ms) begin transaction
110264
+ ------------------------------------------------------------------
110265
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
110266
+ ------------------------------------------------------------------
110267
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110268
+ Processing by Fogged::ResourcesController#create as HTML
110269
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
110270
+  (0.1ms) SAVEPOINT active_record_1
110271
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "84f77d4fbe99cd05466c6b943c6ad0bf"]]
110272
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["extension", "png"], ["content_type", "image/png"], ["uploading", "t"], ["token", "84f77d4fbe99cd05466c6b943c6ad0bf"], ["created_at", "2016-01-18 14:32:41.966137"], ["updated_at", "2016-01-18 14:32:41.966137"]]
110273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110274
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.6ms)
110275
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110276
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
110277
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
110278
+  (0.5ms) rollback transaction
110279
+  (0.0ms) begin transaction
110280
+ --------------------------------------------------------------------------------------------
110281
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
110282
+ --------------------------------------------------------------------------------------------
110283
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110284
+ Processing by Fogged::ResourcesController#create as HTML
110285
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
110286
+  (0.1ms) SAVEPOINT active_record_1
110287
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
110288
+ Completed 422 Unprocessable Entity in 9ms (ActiveRecord: 0.1ms)
110289
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110290
+  (0.1ms) rollback transaction
110291
+  (0.1ms) begin transaction
110292
+ -------------------------------------------------------------------------------------------
110293
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
110294
+ -------------------------------------------------------------------------------------------
110295
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110296
+ Processing by Fogged::ResourcesController#create as HTML
110297
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
110298
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
110299
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110300
+  (0.1ms) rollback transaction
110301
+  (0.1ms) begin transaction
110302
+ ---------------------------------------------------------------------------------------
110303
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
110304
+ ---------------------------------------------------------------------------------------
110305
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110306
+ Processing by Fogged::ResourcesController#create as HTML
110307
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
110308
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
110309
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110310
+  (0.0ms) rollback transaction
110311
+  (0.0ms) begin transaction
110312
+ -----------------------------------------------------------------------------------
110313
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
110314
+ -----------------------------------------------------------------------------------
110315
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110316
+ Processing by Fogged::ResourcesController#create as HTML
110317
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
110318
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
110319
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110320
+  (0.0ms) rollback transaction
110321
+  (0.0ms) begin transaction
110322
+ -------------------------------------------------------------------------------------------------
110323
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
110324
+ -------------------------------------------------------------------------------------------------
110325
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110326
+ Processing by Fogged::ResourcesController#create as HTML
110327
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
110328
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
110329
+  (0.0ms) rollback transaction
110330
+  (0.1ms) begin transaction
110331
+ ---------------------------------------------------
110332
+ ImageTest: test_image_url_changing_the_storage_name
110333
+ ---------------------------------------------------
110334
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
110335
+  (0.0ms) SAVEPOINT active_record_1
110336
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-01-18 14:32:42.002525"], ["updated_at", "2016-01-18 14:32:42.002525"]]
110337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110338
+  (0.5ms) rollback transaction
110339
+  (0.1ms) begin transaction
110340
+ -------------------------------------------------------------
110341
+ ImageTest: test_should_not_save_image_with_uploading_resource
110342
+ -------------------------------------------------------------
110343
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
110344
+  (0.1ms) SAVEPOINT active_record_1
110345
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:42.006863"], ["id", 701625837]]
110346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110347
+  (0.0ms) SAVEPOINT active_record_1
110348
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
110349
+  (0.4ms) rollback transaction
110350
+  (0.1ms) begin transaction
110351
+ --------------------------------------------------------
110352
+ ImageTest: test_should_save_image_with_uploaded_resource
110353
+ --------------------------------------------------------
110354
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
110355
+  (0.1ms) SAVEPOINT active_record_1
110356
+ SQL (0.2ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-01-18 14:32:42.011552"], ["updated_at", "2016-01-18 14:32:42.011552"]]
110357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110358
+  (0.3ms) rollback transaction
110359
+  (0.1ms) begin transaction
110360
+ --------------------------------------------------
110361
+ ImageTest: test_should_save_image_without_resource
110362
+ --------------------------------------------------
110363
+  (0.1ms) SAVEPOINT active_record_1
110364
+ SQL (0.3ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:42.014091"], ["updated_at", "2016-01-18 14:32:42.014091"]]
110365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110366
+  (0.4ms) rollback transaction
110367
+  (0.1ms) begin transaction
110368
+ ---------------------------------------------------
110369
+ Fogged::ResourceTest: test_resource_should_be_valid
110370
+ ---------------------------------------------------
110371
+  (0.0ms) SAVEPOINT active_record_1
110372
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "54e59026b35e6ccdef5e2e7e986d25e5"]]
110373
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "54e59026b35e6ccdef5e2e7e986d25e5"], ["created_at", "2016-01-18 14:32:42.018303"], ["updated_at", "2016-01-18 14:32:42.018303"]]
110374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110375
+  (0.4ms) rollback transaction
110376
+  (0.1ms) begin transaction
110377
+ ----------------------------------------------------------------------------
110378
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
110379
+ ----------------------------------------------------------------------------
110380
+  (0.1ms) SAVEPOINT active_record_1
110381
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "5d0d30170526bdddeb8cd6172f0459b1"]]
110382
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "5d0d30170526bdddeb8cd6172f0459b1"], ["created_at", "2016-01-18 14:32:42.021770"], ["updated_at", "2016-01-18 14:32:42.021770"]]
110383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110384
+  (0.0ms) SAVEPOINT active_record_1
110385
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265258]]
110386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110387
+  (0.6ms) rollback transaction
110388
+  (0.1ms) begin transaction
110389
+ -------------------------------------------------------------------------
110390
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
110391
+ -------------------------------------------------------------------------
110392
+  (0.0ms) SAVEPOINT active_record_1
110393
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "0dc1bbb8902b6201855e2df183233974"]]
110394
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "0dc1bbb8902b6201855e2df183233974"], ["created_at", "2016-01-18 14:32:42.026948"], ["updated_at", "2016-01-18 14:32:42.026948"]]
110395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110396
+  (0.3ms) rollback transaction
110397
+  (0.0ms) begin transaction
110398
+ -------------------------------------------------------------
110399
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
110400
+ -------------------------------------------------------------
110401
+  (0.0ms) SAVEPOINT active_record_1
110402
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "da4243675a6daca543cb4da2b3865d22"]]
110403
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "da4243675a6daca543cb4da2b3865d22"], ["created_at", "2016-01-18 14:32:42.029426"], ["updated_at", "2016-01-18 14:32:42.029426"]]
110404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110405
+  (0.4ms) rollback transaction
110406
+  (0.1ms) begin transaction
110407
+ ------------------------------------------------------
110408
+ Fogged::ResourceTest: test_resource_should_have_an_url
110409
+ ------------------------------------------------------
110410
+  (0.1ms) SAVEPOINT active_record_1
110411
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "f229c16ffecbab2048add61cfd58641d"]]
110412
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "f229c16ffecbab2048add61cfd58641d"], ["created_at", "2016-01-18 14:32:42.033283"], ["updated_at", "2016-01-18 14:32:42.033283"]]
110413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110414
+  (0.5ms) rollback transaction
110415
+  (0.1ms) begin transaction
110416
+ ----------------------------------------------------------------------------
110417
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
110418
+ ----------------------------------------------------------------------------
110419
+  (0.0ms) SAVEPOINT active_record_1
110420
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
110421
+  (0.0ms) rollback transaction
110422
+  (0.0ms) begin transaction
110423
+ -------------------------------------------------------------------------
110424
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
110425
+ -------------------------------------------------------------------------
110426
+  (0.0ms) SAVEPOINT active_record_1
110427
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
110428
+  (0.0ms) rollback transaction
110429
+  (0.0ms) begin transaction
110430
+ --------------------------------------------------------
110431
+ Fogged::ResourceTest: test_should_process_resource_image
110432
+ --------------------------------------------------------
110433
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
110434
+  (0.0ms) SAVEPOINT active_record_1
110435
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-01-18 14:32:42.040347"], ["id", 785871319]]
110436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110437
+  (0.3ms) rollback transaction
110438
+  (0.0ms) begin transaction
110439
+ --------------------------------------------------------
110440
+ Fogged::ResourceTest: test_should_process_resource_video
110441
+ --------------------------------------------------------
110442
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110443
+  (0.1ms) rollback transaction
110444
+  (0.0ms) begin transaction
110445
+ ------------------------------------------------------------------------------
110446
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
110447
+ ------------------------------------------------------------------------------
110448
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
110449
+  (0.1ms) begin transaction
110450
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-01-18 14:32:42.135991"], ["id", 335514824]]
110451
+  (0.7ms) commit transaction
110452
+  (0.4ms) begin transaction
110453
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
110454
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 517391740)
110455
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 701625837)
110456
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 819504217)
110457
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 132093124)
110458
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 431685987)
110459
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 620280917)
110460
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 335514824)
110461
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 183950720)
110462
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 1039265257)
110463
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 596998220)
110464
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 433078596)
110465
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 785871319)
110466
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 937304175)
110467
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 14225656)
110468
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 515736925)
110469
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-01-18 14:32:42', '2016-01-18 14:32:42', 538821867)
110470
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-01-18 14:32:42', '2016-01-18 14:32:42', 731805050)
110471
+ Fixture Delete (0.1ms) DELETE FROM "images"
110472
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 579229346)
110473
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 153115190)
110474
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
110475
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 419883833, 624739301, 701625837)
110476
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 849405871, 624739301, 819504217)
110477
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 98413728, 245026679, 784085492)
110478
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-01-18 14:32:42', '2016-01-18 14:32:42', 779853880, 245026679, 431685987)
110479
+ Fixture Delete (0.6ms) DELETE FROM "movies"
110480
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 624739301)
110481
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 245026679)
110482
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-01-18 14:32:42', '2016-01-18 14:32:42', 948421225)
110483
+  (1.0ms) commit transaction
110484
+  (0.0ms) begin transaction
110485
+ -------------------------------------------------------------
110486
+ MovieTest: test_should_not_save_movie_with_uploading_resource
110487
+ -------------------------------------------------------------
110488
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
110489
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
110490
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
110491
+  (0.1ms) SAVEPOINT active_record_1
110492
+ SQL (0.3ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-01-18 14:32:42.306555"], ["id", 431685987]]
110493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110494
+  (0.1ms) SAVEPOINT active_record_1
110495
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
110496
+  (0.5ms) rollback transaction
110497
+  (0.1ms) begin transaction
110498
+ ---------------------------------------------------
110499
+ MovieTest: test_should_save_movie_with_no_resources
110500
+ ---------------------------------------------------
110501
+  (0.1ms) SAVEPOINT active_record_1
110502
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:42.313543"], ["updated_at", "2016-01-18 14:32:42.313543"]]
110503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110504
+  (0.4ms) rollback transaction
110505
+  (0.1ms) begin transaction
110506
+ --------------------------------------------------------
110507
+ MovieTest: test_should_save_movie_with_several_resources
110508
+ --------------------------------------------------------
110509
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
110510
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
110511
+  (0.0ms) SAVEPOINT active_record_1
110512
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-01-18 14:32:42.321343"], ["updated_at", "2016-01-18 14:32:42.321343"]]
110513
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:42.322573"], ["updated_at", "2016-01-18 14:32:42.322573"]]
110514
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421226], ["created_at", "2016-01-18 14:32:42.323786"], ["updated_at", "2016-01-18 14:32:42.323786"]]
110515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
110516
+  (0.5ms) rollback transaction