fogged 0.0.11 → 0.0.12

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: 1b26f44d925aab630ce4817902f40c34e64a1c42
4
- data.tar.gz: 3d143d08995848497e4c06fcd2f8f70d03a93809
3
+ metadata.gz: ceb2197719fd9737a9ebcabbc2645128dcc85822
4
+ data.tar.gz: 967ee4286c60f10f5e2e2a0503e22f4d651c9c96
5
5
  SHA512:
6
- metadata.gz: 343f4fca03211399e138d2cceecffc31bfde4f199fa5636e4884551575f36da4ccd037498c2d26ff9091ef43fe6ce059095e1b5f1ba20137484201e52b208565
7
- data.tar.gz: ed3b43dd4434f943f3b09204f59712a5e851f6935e2c4eaad7e6f3602976289e417f3d8e985548d3303d8134ec87c9dfdb30c482bf8de74d69c4fc277c4297d4
6
+ metadata.gz: 326755b4fd2f45a641c8c21e4bb4e56b8c77376a8c1b98977b987bea48bc751712256ce5a3c47440d24e7d01af0a6426e9aa26094c966a5d075a46a99ff53006
7
+ data.tar.gz: 8e1a4066f384a420c5ef26c36a6159248b83db2a3247f715cb6df5ab7b60232d5da0e0cb6607363279fc176811d01328c8765a9b251f0ea22027c4457be973aa
@@ -95,9 +95,10 @@ module Fogged
95
95
  @fogged_file = files.get(fogged_name) || files.create(
96
96
  :key => fogged_name,
97
97
  :body => "",
98
- :public => true,
99
98
  :content_type => content_type
100
99
  )
100
+ @fogged_file.public = "public_read"
101
+ @fogged_file.tap(&:save)
101
102
  end
102
103
 
103
104
  def find_size!
@@ -1,3 +1,3 @@
1
1
  module Fogged
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
Binary file
@@ -138881,3 +138881,2807 @@ ImageTest: test_should_save_image_without_resource
138881
138881
  SQL (0.3ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-13 05:38:52.329517"], ["updated_at", "2016-07-13 05:38:52.329517"]]
138882
138882
   (0.0ms) RELEASE SAVEPOINT active_record_1
138883
138883
   (0.3ms) rollback transaction
138884
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
138885
+  (0.1ms) begin transaction
138886
+ Fixture Delete (0.8ms) DELETE FROM "fogged_resources"
138887
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 517391740)
138888
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 701625837)
138889
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 819504217)
138890
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 132093124)
138891
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 431685987)
138892
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 620280917)
138893
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 335514824)
138894
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 183950720)
138895
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 1039265257)
138896
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 596998220)
138897
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 433078596)
138898
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 785871319)
138899
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 937304175)
138900
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 14225656)
138901
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 515736925)
138902
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 538821867)
138903
+ 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-07-15 09:40:43', '2016-07-15 09:40:43', 731805050)
138904
+ Fixture Delete (0.3ms) DELETE FROM "images"
138905
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 579229346)
138906
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 153115190)
138907
+ Fixture Delete (0.8ms) DELETE FROM "movie_fogged_resources"
138908
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 419883833, 624739301, 701625837)
138909
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 849405871, 624739301, 819504217)
138910
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 98413728, 245026679, 784085492)
138911
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:43', '2016-07-15 09:40:43', 779853880, 245026679, 431685987)
138912
+ Fixture Delete (0.3ms) DELETE FROM "movies"
138913
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 624739301)
138914
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 245026679)
138915
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:43', '2016-07-15 09:40:43', 948421225)
138916
+  (0.8ms) commit transaction
138917
+  (0.1ms) begin transaction
138918
+ ----------------------------------------------------------------
138919
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
138920
+ ----------------------------------------------------------------
138921
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
138922
+ spawn> parent PID = 85479
138923
+ spawn> child PID = 85480
138924
+  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs"
138925
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: cdf305bf-686e-4b48-94b9-426ca23b8439) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
138926
+  (0.2ms) begin transaction
138927
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-07-15 09:40:43.805127"], ["id", 14225656]]
138928
+  (0.8ms) commit transaction
138929
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
138930
+ spawn> child[85480] took 0.122607 sec
138931
+  (0.5ms) begin transaction
138932
+ -----------------------------------------------------------------------
138933
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
138934
+ -----------------------------------------------------------------------
138935
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
138936
+ spawn> parent PID = 85479
138937
+ spawn> child PID = 85481
138938
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
138939
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f1239654-f0cf-4fbe-bbe2-9761d67819b5] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
138940
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f1239654-f0cf-4fbe-bbe2-9761d67819b5] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1261.56ms
138941
+ spawn> Exception in child[85481] - OpenURI::HTTPError: 403 Forbidden
138942
+ spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
138943
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
138944
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
138945
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
138946
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
138947
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
138948
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
138949
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
138950
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
138951
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
138952
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
138953
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
138954
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
138955
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
138956
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
138957
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
138958
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
138959
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
138960
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
138961
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
138962
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
138963
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
138964
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
138965
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
138966
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
138967
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
138968
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
138969
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
138970
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
138971
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
138972
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
138973
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
138974
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
138975
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
138976
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
138977
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
138978
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
138979
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
138980
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
138981
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
138982
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
138983
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
138984
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
138985
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
138986
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
138987
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
138988
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
138989
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
138990
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
138991
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
138992
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
138993
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
138994
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
138995
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
138996
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
138997
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
138998
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
138999
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139000
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139001
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139002
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139003
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139004
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139005
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139006
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139007
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
139008
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139009
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139010
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139011
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139012
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139013
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139014
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139015
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139016
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139017
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139018
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139019
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139020
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139021
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139022
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139023
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139024
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139025
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139026
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139027
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139028
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139029
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139030
+ spawn> child[85481] took 1.356289 sec
139031
+  (0.5ms) begin transaction
139032
+ ----------------------------------------------------------------
139033
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
139034
+ ----------------------------------------------------------------
139035
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139036
+ spawn> parent PID = 85479
139037
+ spawn> child PID = 85483
139038
+ spawn> Exception in child[85483] - NoMethodError: undefined method `public=' for nil:NilClass
139039
+ spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
139040
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
139041
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
139042
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
139043
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
139044
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:48:in `block (2 levels) in <class:AWSEncoderTest>'
139045
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
139046
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139047
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139048
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139049
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139050
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139051
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139052
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139053
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139054
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:40:in `block in <class:AWSEncoderTest>'
139055
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139056
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139057
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139058
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139059
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139060
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139061
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139062
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139063
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139064
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139065
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139066
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139067
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139068
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139069
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139070
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139071
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139072
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139073
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139074
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139075
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139076
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139077
+ spawn> child[85483] took 0.084146 sec
139078
+  (0.6ms) begin transaction
139079
+ -----------------------------------------------------------------------------------
139080
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
139081
+ -----------------------------------------------------------------------------------
139082
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139083
+ spawn> parent PID = 85479
139084
+ spawn> child PID = 85484
139085
+ spawn> Exception in child[85484] - NoMethodError: undefined method `public=' for nil:NilClass
139086
+ spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
139087
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
139088
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
139089
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
139090
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
139091
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:145:in `block (2 levels) in <class:AWSEncoderTest>'
139092
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
139093
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139094
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139095
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139096
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139097
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139098
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139099
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139100
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139101
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:126:in `block in <class:AWSEncoderTest>'
139102
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139103
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139104
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139105
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139106
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139107
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139108
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139109
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139110
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139111
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139112
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139113
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139114
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139115
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139116
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139117
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139118
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139119
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139120
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139121
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139122
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139123
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139124
+ spawn> child[85484] took 0.07671 sec
139125
+  (0.6ms) begin transaction
139126
+ ------------------------------------------------------------------------------------------
139127
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
139128
+ ------------------------------------------------------------------------------------------
139129
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139130
+ spawn> parent PID = 85479
139131
+ spawn> child PID = 85485
139132
+ spawn> Exception in child[85485] - NoMethodError: undefined method `public=' for nil:NilClass
139133
+ spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
139134
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:83:in `bucket'
139135
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:56:in `output'
139136
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:29:in `encode_video'
139137
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:9:in `encode!'
139138
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:167:in `block (2 levels) in <class:AWSEncoderTest>'
139139
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
139140
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139141
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139142
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139143
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139144
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139145
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139146
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139147
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139148
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:157:in `block in <class:AWSEncoderTest>'
139149
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139150
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139151
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139152
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139153
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139154
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139155
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139156
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139157
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139158
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139159
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139160
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139161
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139162
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139163
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139164
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139165
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139166
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139167
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139168
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139169
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139170
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139171
+ spawn> child[85485] took 0.080237 sec
139172
+  (0.4ms) begin transaction
139173
+ ----------------------------------------------------------------------------------------
139174
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
139175
+ ----------------------------------------------------------------------------------------
139176
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139177
+ spawn> parent PID = 85479
139178
+ spawn> child PID = 85486
139179
+ spawn> child[85486] took 0.003956 sec
139180
+  (0.6ms) begin transaction
139181
+ ---------------------------------------------------------------------------------------
139182
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
139183
+ ---------------------------------------------------------------------------------------
139184
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
139185
+ spawn> parent PID = 85479
139186
+ spawn> child PID = 85487
139187
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
139188
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
139189
+ spawn> child[85487] took 0.070256 sec
139190
+  (0.6ms) begin transaction
139191
+ ----------------------------------------------------------------------------------------
139192
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
139193
+ ----------------------------------------------------------------------------------------
139194
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139195
+ spawn> parent PID = 85479
139196
+ spawn> child PID = 85488
139197
+ spawn> child[85488] took 0.004231 sec
139198
+  (0.5ms) begin transaction
139199
+ -------------------------------------------------------------------------------------
139200
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
139201
+ -------------------------------------------------------------------------------------
139202
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
139203
+ spawn> parent PID = 85479
139204
+ spawn> child PID = 85489
139205
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
139206
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
139207
+ spawn> child[85489] took 0.070312 sec
139208
+  (0.3ms) begin transaction
139209
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
139210
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 517391740)
139211
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 701625837)
139212
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 819504217)
139213
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 132093124)
139214
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 431685987)
139215
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 620280917)
139216
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 335514824)
139217
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 183950720)
139218
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 1039265257)
139219
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 596998220)
139220
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 433078596)
139221
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 785871319)
139222
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 937304175)
139223
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 14225656)
139224
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 515736925)
139225
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 538821867)
139226
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 731805050)
139227
+ Fixture Delete (0.1ms) DELETE FROM "images"
139228
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 579229346)
139229
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 153115190)
139230
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
139231
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 419883833, 624739301, 701625837)
139232
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 849405871, 624739301, 819504217)
139233
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 98413728, 245026679, 784085492)
139234
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 779853880, 245026679, 431685987)
139235
+ Fixture Delete (0.1ms) DELETE FROM "movies"
139236
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 624739301)
139237
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 245026679)
139238
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 948421225)
139239
+  (0.9ms) commit transaction
139240
+  (0.1ms) begin transaction
139241
+ ---------------------------------------------------
139242
+ ImageTest: test_image_url_changing_the_storage_name
139243
+ ---------------------------------------------------
139244
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139245
+  (0.0ms) SAVEPOINT active_record_1
139246
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-07-15 09:40:45.803955"], ["updated_at", "2016-07-15 09:40:45.803955"]]
139247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139248
+  (0.8ms) rollback transaction
139249
+  (0.1ms) begin transaction
139250
+ -------------------------------------------------------------
139251
+ ImageTest: test_should_not_save_image_with_uploading_resource
139252
+ -------------------------------------------------------------
139253
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139254
+  (0.0ms) SAVEPOINT active_record_1
139255
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:40:45.810082"], ["id", 701625837]]
139256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139257
+  (0.0ms) SAVEPOINT active_record_1
139258
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
139259
+  (0.4ms) rollback transaction
139260
+  (0.1ms) begin transaction
139261
+ --------------------------------------------------------
139262
+ ImageTest: test_should_save_image_with_uploaded_resource
139263
+ --------------------------------------------------------
139264
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139265
+  (0.0ms) SAVEPOINT active_record_1
139266
+ SQL (0.2ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 09:40:45.822214"], ["updated_at", "2016-07-15 09:40:45.822214"]]
139267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139268
+  (0.3ms) rollback transaction
139269
+  (0.0ms) begin transaction
139270
+ --------------------------------------------------
139271
+ ImageTest: test_should_save_image_without_resource
139272
+ --------------------------------------------------
139273
+  (0.0ms) SAVEPOINT active_record_1
139274
+ SQL (0.2ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:40:45.824399"], ["updated_at", "2016-07-15 09:40:45.824399"]]
139275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139276
+  (0.4ms) rollback transaction
139277
+  (0.0ms) begin transaction
139278
+ ---------------------------------------------------
139279
+ Fogged::ResourceTest: test_resource_should_be_valid
139280
+ ---------------------------------------------------
139281
+  (0.0ms) SAVEPOINT active_record_1
139282
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "7d35975636e0dd992d98d10464a6d54c"]]
139283
+ 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", "7d35975636e0dd992d98d10464a6d54c"], ["created_at", "2016-07-15 09:40:45.829603"], ["updated_at", "2016-07-15 09:40:45.829603"]]
139284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139285
+  (0.3ms) rollback transaction
139286
+  (0.1ms) begin transaction
139287
+ ----------------------------------------------------------------------------
139288
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
139289
+ ----------------------------------------------------------------------------
139290
+  (0.0ms) SAVEPOINT active_record_1
139291
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "89af78bf7c23e1739141d7749a8c6ca4"]]
139292
+ 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", "89af78bf7c23e1739141d7749a8c6ca4"], ["created_at", "2016-07-15 09:40:45.832412"], ["updated_at", "2016-07-15 09:40:45.832412"]]
139293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139294
+  (0.0ms) SAVEPOINT active_record_1
139295
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
139296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139297
+  (0.6ms) rollback transaction
139298
+  (0.1ms) begin transaction
139299
+ -------------------------------------------------------------------------
139300
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
139301
+ -------------------------------------------------------------------------
139302
+  (0.1ms) SAVEPOINT active_record_1
139303
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "97931438d644cdce1797293b34d2aaff"]]
139304
+ 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", "97931438d644cdce1797293b34d2aaff"], ["created_at", "2016-07-15 09:40:45.837394"], ["updated_at", "2016-07-15 09:40:45.837394"]]
139305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139306
+  (0.3ms) rollback transaction
139307
+  (0.1ms) begin transaction
139308
+ -------------------------------------------------------------
139309
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
139310
+ -------------------------------------------------------------
139311
+  (0.1ms) SAVEPOINT active_record_1
139312
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "b3a54dabbd787008cb96e5a421914dd0"]]
139313
+ 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", "b3a54dabbd787008cb96e5a421914dd0"], ["created_at", "2016-07-15 09:40:45.839908"], ["updated_at", "2016-07-15 09:40:45.839908"]]
139314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139315
+  (0.3ms) rollback transaction
139316
+  (0.0ms) begin transaction
139317
+ ------------------------------------------------------
139318
+ Fogged::ResourceTest: test_resource_should_have_an_url
139319
+ ------------------------------------------------------
139320
+  (0.0ms) SAVEPOINT active_record_1
139321
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "01088f3b5ab5e1a020b8283194eeca7c"]]
139322
+ 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", "01088f3b5ab5e1a020b8283194eeca7c"], ["created_at", "2016-07-15 09:40:45.843072"], ["updated_at", "2016-07-15 09:40:45.843072"]]
139323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139324
+  (0.3ms) rollback transaction
139325
+  (0.0ms) begin transaction
139326
+ ----------------------------------------------------------------------------
139327
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
139328
+ ----------------------------------------------------------------------------
139329
+  (0.0ms) SAVEPOINT active_record_1
139330
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139331
+  (0.1ms) rollback transaction
139332
+  (0.0ms) begin transaction
139333
+ -------------------------------------------------------------------------
139334
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
139335
+ -------------------------------------------------------------------------
139336
+  (0.0ms) SAVEPOINT active_record_1
139337
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
139338
+  (0.0ms) rollback transaction
139339
+  (0.0ms) begin transaction
139340
+ --------------------------------------------------------
139341
+ Fogged::ResourceTest: test_should_process_resource_image
139342
+ --------------------------------------------------------
139343
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139344
+  (0.0ms) SAVEPOINT active_record_1
139345
+ SQL (0.2ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:40:45.850258"], ["id", 785871319]]
139346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139347
+  (0.4ms) rollback transaction
139348
+  (0.0ms) begin transaction
139349
+ --------------------------------------------------------
139350
+ Fogged::ResourceTest: test_should_process_resource_video
139351
+ --------------------------------------------------------
139352
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139353
+  (0.1ms) rollback transaction
139354
+  (0.0ms) begin transaction
139355
+ ------------------------------------------------------------------------------
139356
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
139357
+ ------------------------------------------------------------------------------
139358
+ spawn> parent PID = 85479
139359
+ spawn> child PID = 85490
139360
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139361
+ spawn> Exception in child[85490] - NoMethodError: undefined method `public=' for nil:NilClass
139362
+ spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
139363
+ /Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:9:in `provider_for'
139364
+ /Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:5:in `for'
139365
+ /Users/david/projects/fogged/app/models/fogged/resource.rb:120:in `encode!'
139366
+ /Users/david/projects/fogged/app/models/fogged/resource.rb:83:in `process!'
139367
+ /Users/david/projects/fogged/test/models/fogged/resource_test.rb:80:in `block (2 levels) in <class:ResourceTest>'
139368
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
139369
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139370
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139371
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139372
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139373
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139374
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139375
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139376
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139377
+ /Users/david/projects/fogged/test/models/fogged/resource_test.rb:69:in `block in <class:ResourceTest>'
139378
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139379
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139380
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139381
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139382
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139383
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139384
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139385
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139386
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139387
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139388
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139389
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139390
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139391
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139392
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139393
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139394
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139395
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139396
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139397
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139398
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139399
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139400
+ spawn> child[85490] took 0.066535 sec
139401
+  (0.4ms) begin transaction
139402
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
139403
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 517391740)
139404
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 701625837)
139405
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 819504217)
139406
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 132093124)
139407
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 431685987)
139408
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 620280917)
139409
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 335514824)
139410
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 183950720)
139411
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 1039265257)
139412
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 596998220)
139413
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 433078596)
139414
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 785871319)
139415
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 937304175)
139416
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 14225656)
139417
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 515736925)
139418
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 538821867)
139419
+ 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-07-15 09:40:45', '2016-07-15 09:40:45', 731805050)
139420
+ Fixture Delete (0.1ms) DELETE FROM "images"
139421
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 579229346)
139422
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 153115190)
139423
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
139424
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 419883833, 624739301, 701625837)
139425
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 849405871, 624739301, 819504217)
139426
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 98413728, 245026679, 784085492)
139427
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:45', '2016-07-15 09:40:45', 779853880, 245026679, 431685987)
139428
+ Fixture Delete (0.1ms) DELETE FROM "movies"
139429
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 624739301)
139430
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 245026679)
139431
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:45', '2016-07-15 09:40:45', 948421225)
139432
+  (1.0ms) commit transaction
139433
+  (0.1ms) begin transaction
139434
+ --------------------------------------------------------------------
139435
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
139436
+ --------------------------------------------------------------------
139437
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139438
+ Processing by Fogged::ResourcesController#confirm as HTML
139439
+ Parameters: {"id"=>"785871319"}
139440
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139441
+  (0.1ms) SAVEPOINT active_record_1
139442
+ SQL (0.2ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:40:45.969336"], ["id", 785871319]]
139443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139444
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.4ms)
139445
+  (0.4ms) rollback transaction
139446
+  (0.1ms) begin transaction
139447
+ ------------------------------------------------------------------------------------------------
139448
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
139449
+ ------------------------------------------------------------------------------------------------
139450
+ spawn> parent PID = 85479
139451
+ spawn> child PID = 85491
139452
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139453
+ Processing by Fogged::ResourcesController#confirm as HTML
139454
+ Parameters: {"id"=>"335514824"}
139455
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139456
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
139457
+ spawn> Exception in child[85491] - NoMethodError: undefined method `public=' for nil:NilClass
139458
+ spawn> /Users/david/projects/fogged/app/models/fogged/resource.rb:100:in `fogged_file'
139459
+ /Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:9:in `provider_for'
139460
+ /Users/david/projects/fogged/app/models/fogged/resources/encoder.rb:5:in `for'
139461
+ /Users/david/projects/fogged/app/models/fogged/resource.rb:120:in `encode!'
139462
+ /Users/david/projects/fogged/app/models/fogged/resource.rb:83:in `process!'
139463
+ /Users/david/projects/fogged/app/controllers/fogged/resources_controller.rb:182:in `confirm'
139464
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
139465
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:198:in `process_action'
139466
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
139467
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
139468
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
139469
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
139470
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
139471
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
139472
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
139473
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
139474
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
139475
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
139476
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
139477
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
139478
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
139479
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
139480
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
139481
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
139482
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
139483
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
139484
+ /Users/david/.gem/ruby/2.2.2/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
139485
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:137:in `process'
139486
+ /Users/david/.gem/ruby/2.2.2/gems/actionview-4.2.1/lib/action_view/rendering.rb:30:in `process'
139487
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:632:in `process'
139488
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:65:in `process'
139489
+ /Users/david/.gem/ruby/2.2.2/gems/actionpack-4.2.1/lib/action_controller/test_case.rb:526:in `put'
139490
+ /Users/david/projects/fogged/test/controllers/fogged/resources_controller/confirm_test.rb:29:in `block (2 levels) in <class:ResourcesControllerConfirmTest>'
139491
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
139492
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
139493
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
139494
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
139495
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
139496
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
139497
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
139498
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
139499
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
139500
+ /Users/david/projects/fogged/test/controllers/fogged/resources_controller/confirm_test.rb:20:in `block in <class:ResourcesControllerConfirmTest>'
139501
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
139502
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
139503
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
139504
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
139505
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
139506
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139507
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
139508
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
139509
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
139510
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
139511
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
139512
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
139513
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
139514
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
139515
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
139516
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
139517
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
139518
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
139519
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
139520
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
139521
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
139522
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
139523
+ spawn> child[85491] took 0.032373 sec
139524
+  (0.4ms) begin transaction
139525
+ ----------------------------------------------------------------------------------------
139526
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
139527
+ ----------------------------------------------------------------------------------------
139528
+ Processing by Fogged::ResourcesController#confirm as HTML
139529
+ Parameters: {"id"=>"123456"}
139530
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
139531
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
139532
+  (0.1ms) rollback transaction
139533
+  (0.0ms) begin transaction
139534
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
139535
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 517391740)
139536
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 701625837)
139537
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 819504217)
139538
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 132093124)
139539
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 431685987)
139540
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 620280917)
139541
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 335514824)
139542
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 183950720)
139543
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 1039265257)
139544
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 596998220)
139545
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 433078596)
139546
+ Fixture Insert (0.3ms) 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-07-15 09:40:46', '2016-07-15 09:40:46', 785871319)
139547
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 937304175)
139548
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 14225656)
139549
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 515736925)
139550
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 538821867)
139551
+ 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-07-15 09:40:46', '2016-07-15 09:40:46', 731805050)
139552
+ Fixture Delete (0.1ms) DELETE FROM "images"
139553
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 579229346)
139554
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 153115190)
139555
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
139556
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 419883833, 624739301, 701625837)
139557
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 849405871, 624739301, 819504217)
139558
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 98413728, 245026679, 784085492)
139559
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:40:46', '2016-07-15 09:40:46', 779853880, 245026679, 431685987)
139560
+ Fixture Delete (0.1ms) DELETE FROM "movies"
139561
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 624739301)
139562
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 245026679)
139563
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:40:46', '2016-07-15 09:40:46', 948421225)
139564
+  (1.0ms) commit transaction
139565
+  (0.0ms) begin transaction
139566
+ ----------------------------------------------------------------------------------
139567
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
139568
+ ----------------------------------------------------------------------------------
139569
+ Processing by Fogged::ResourcesController#show as HTML
139570
+ Parameters: {"id"=>"1234567890"}
139571
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
139572
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
139573
+  (0.1ms) rollback transaction
139574
+  (0.1ms) begin transaction
139575
+ --------------------------------------------------------------------
139576
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
139577
+ --------------------------------------------------------------------
139578
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139579
+ Processing by Fogged::ResourcesController#show as HTML
139580
+ Parameters: {"id"=>"785871319"}
139581
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139582
+ Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.0ms)
139583
+  (0.1ms) rollback transaction
139584
+  (0.1ms) begin transaction
139585
+ --------------------------------------------------------------
139586
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
139587
+ --------------------------------------------------------------
139588
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139589
+ Processing by Fogged::ResourcesController#show as HTML
139590
+ Parameters: {"id"=>"701625837"}
139591
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139592
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
139593
+  (0.1ms) rollback transaction
139594
+  (0.1ms) begin transaction
139595
+ --------------------------------------------------------------------
139596
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
139597
+ --------------------------------------------------------------------
139598
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139599
+ Processing by Fogged::ResourcesController#show as HTML
139600
+ Parameters: {"id"=>"335514824"}
139601
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139602
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
139603
+  (0.1ms) rollback transaction
139604
+  (0.0ms) begin transaction
139605
+ ----------------------------------------------------------------------------------------------
139606
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
139607
+ ----------------------------------------------------------------------------------------------
139608
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139609
+  (0.0ms) SAVEPOINT active_record_1
139610
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.067120"], ["id", 1039265257]]
139611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139612
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
139613
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
139614
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
139615
+  (0.0ms) SAVEPOINT active_record_1
139616
+ SQL (0.3ms) 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-07-15 09:40:46.071229"], ["id", 1039265257]]
139617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139618
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
139619
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139620
+  (0.7ms) rollback transaction
139621
+  (0.0ms) begin transaction
139622
+ --------------------------------------------------------------------------------------------------------------
139623
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
139624
+ --------------------------------------------------------------------------------------------------------------
139625
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139626
+  (0.1ms) SAVEPOINT active_record_1
139627
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.076112"], ["id", 1039265257]]
139628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139629
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
139630
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
139631
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
139632
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
139633
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139634
+  (0.6ms) rollback transaction
139635
+  (0.0ms) begin transaction
139636
+ --------------------------------------------------------------------------------------------------------------
139637
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
139638
+ --------------------------------------------------------------------------------------------------------------
139639
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139640
+  (0.0ms) SAVEPOINT active_record_1
139641
+ SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.083789"], ["id", 1039265257]]
139642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139643
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
139644
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
139645
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
139646
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
139647
+  (0.4ms) rollback transaction
139648
+  (0.1ms) begin transaction
139649
+ -------------------------------------------------------------------------------------------------------------------
139650
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
139651
+ -------------------------------------------------------------------------------------------------------------------
139652
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139653
+  (0.0ms) SAVEPOINT active_record_1
139654
+ SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:40:46.088600"], ["id", 1039265257]]
139655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139656
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
139657
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
139658
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
139659
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
139660
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
139661
+  (0.5ms) rollback transaction
139662
+  (0.1ms) begin transaction
139663
+ --------------------------------------------------------------------
139664
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
139665
+ --------------------------------------------------------------------
139666
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139667
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139668
+ Processing by Fogged::ResourcesController#destroy as HTML
139669
+ Parameters: {"id"=>"785871319"}
139670
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139671
+  (0.0ms) SAVEPOINT active_record_1
139672
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
139673
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
139674
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
139675
+  (0.4ms) rollback transaction
139676
+  (0.1ms) begin transaction
139677
+ ----------------------------------------------------------------------------------------
139678
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
139679
+ ----------------------------------------------------------------------------------------
139680
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139681
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139682
+ Processing by Fogged::ResourcesController#destroy as HTML
139683
+ Parameters: {"id"=>"123456"}
139684
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
139685
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
139686
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139687
+  (0.0ms) rollback transaction
139688
+  (0.0ms) begin transaction
139689
+ ------------------------------------------------------------------
139690
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
139691
+ ------------------------------------------------------------------
139692
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139693
+ Processing by Fogged::ResourcesController#create as HTML
139694
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
139695
+  (0.0ms) SAVEPOINT active_record_1
139696
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "d4ee1d93a4c178973f713d98e4a9a3f4"]]
139697
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "d4ee1d93a4c178973f713d98e4a9a3f4"], ["created_at", "2016-07-15 09:40:46.106716"], ["updated_at", "2016-07-15 09:40:46.106716"]]
139698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139699
+ Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.5ms)
139700
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139701
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
139702
+  (0.6ms) rollback transaction
139703
+  (0.0ms) begin transaction
139704
+ --------------------------------------------------------------------------------------------
139705
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
139706
+ --------------------------------------------------------------------------------------------
139707
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139708
+ Processing by Fogged::ResourcesController#create as HTML
139709
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
139710
+  (0.0ms) SAVEPOINT active_record_1
139711
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139712
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
139713
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139714
+  (0.1ms) rollback transaction
139715
+  (0.0ms) begin transaction
139716
+ -------------------------------------------------------------------------------------------
139717
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
139718
+ -------------------------------------------------------------------------------------------
139719
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139720
+ Processing by Fogged::ResourcesController#create as HTML
139721
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
139722
+  (0.1ms) SAVEPOINT active_record_1
139723
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139724
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
139725
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139726
+  (0.1ms) rollback transaction
139727
+  (0.0ms) begin transaction
139728
+ ---------------------------------------------------------------------------------------
139729
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
139730
+ ---------------------------------------------------------------------------------------
139731
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139732
+ Processing by Fogged::ResourcesController#create as HTML
139733
+ Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
139734
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
139735
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139736
+  (0.1ms) rollback transaction
139737
+  (0.1ms) begin transaction
139738
+ -----------------------------------------------------------------------------------
139739
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
139740
+ -----------------------------------------------------------------------------------
139741
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139742
+ Processing by Fogged::ResourcesController#create as HTML
139743
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
139744
+  (0.0ms) SAVEPOINT active_record_1
139745
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139746
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
139747
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139748
+  (0.1ms) rollback transaction
139749
+  (0.1ms) begin transaction
139750
+ -------------------------------------------------------------------------------------------------
139751
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
139752
+ -------------------------------------------------------------------------------------------------
139753
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139754
+ Processing by Fogged::ResourcesController#create as HTML
139755
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
139756
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
139757
+  (0.0ms) rollback transaction
139758
+  (0.0ms) begin transaction
139759
+ --------------------------------------------------------------------------------------
139760
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
139761
+ --------------------------------------------------------------------------------------
139762
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139763
+ Processing by Fogged::ResourcesController#update as HTML
139764
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
139765
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
139766
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
139767
+  (0.0ms) rollback transaction
139768
+  (0.0ms) begin transaction
139769
+ ------------------------------------------------------------------
139770
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
139771
+ ------------------------------------------------------------------
139772
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139773
+ Processing by Fogged::ResourcesController#update as HTML
139774
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
139775
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139776
+  (0.0ms) SAVEPOINT active_record_1
139777
+ SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-07-15 09:40:46.142116"], ["id", 785871319]]
139778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139779
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
139780
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
139781
+  (0.5ms) rollback transaction
139782
+  (0.1ms) begin transaction
139783
+ ------------------------------------------------------------------------
139784
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
139785
+ ------------------------------------------------------------------------
139786
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
139787
+ Processing by Fogged::ResourcesController#index as HTML
139788
+ Parameters: {"type"=>"movie"}
139789
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
139790
+ 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]]
139791
+ 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]]
139792
+ 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]]
139793
+ Completed 200 OK in 27ms (Views: 0.8ms | ActiveRecord: 0.4ms)
139794
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
139795
+ 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]]
139796
+ 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]]
139797
+ 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]]
139798
+  (0.1ms) rollback transaction
139799
+  (0.0ms) begin transaction
139800
+ ---------------------------------------------------------------------
139801
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
139802
+ ---------------------------------------------------------------------
139803
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
139804
+ Processing by Fogged::ResourcesController#index as HTML
139805
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
139806
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
139807
+ 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]]
139808
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
139809
+ 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]]
139810
+  (0.1ms) rollback transaction
139811
+  (0.0ms) begin transaction
139812
+ -----------------------------------------------------------------------------------------------
139813
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
139814
+ -----------------------------------------------------------------------------------------------
139815
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
139816
+  (0.0ms) SAVEPOINT active_record_1
139817
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "8161062d26ede50a14d3de999082e504"]]
139818
+ 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", "8161062d26ede50a14d3de999082e504"], ["created_at", "2016-07-15 09:40:46.195852"], ["updated_at", "2016-07-15 09:40:46.195852"]]
139819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139820
+  (0.0ms) SAVEPOINT active_record_1
139821
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-07-15 09:40:46.202120"], ["updated_at", "2016-07-15 09:40:46.202120"]]
139822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139823
+ Processing by Fogged::ResourcesController#index as HTML
139824
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
139825
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
139826
+ 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]]
139827
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
139828
+  (0.8ms) rollback transaction
139829
+  (0.0ms) begin transaction
139830
+ --------------------------------------------------------------------
139831
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
139832
+ --------------------------------------------------------------------
139833
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
139834
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
139835
+ 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]]
139836
+ 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]]
139837
+ Processing by Fogged::ResourcesController#index as HTML
139838
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
139839
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
139840
+ 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]]
139841
+ 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]]
139842
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
139843
+  (0.0ms) rollback transaction
139844
+  (0.1ms) begin transaction
139845
+ -------------------------------------------------------------------------------
139846
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
139847
+ -------------------------------------------------------------------------------
139848
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
139849
+ Processing by Fogged::ResourcesController#index as HTML
139850
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
139851
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
139852
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
139853
+  (0.1ms) rollback transaction
139854
+  (0.1ms) begin transaction
139855
+ -------------------------------------------------------------
139856
+ MovieTest: test_should_not_save_movie_with_uploading_resource
139857
+ -------------------------------------------------------------
139858
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139859
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
139860
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
139861
+  (0.1ms) SAVEPOINT active_record_1
139862
+ SQL (0.3ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:40:46.228029"], ["id", 431685987]]
139863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139864
+  (0.1ms) SAVEPOINT active_record_1
139865
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139866
+  (0.4ms) rollback transaction
139867
+  (0.1ms) begin transaction
139868
+ ---------------------------------------------------
139869
+ MovieTest: test_should_save_movie_with_no_resources
139870
+ ---------------------------------------------------
139871
+  (0.0ms) SAVEPOINT active_record_1
139872
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:40:46.233469"], ["updated_at", "2016-07-15 09:40:46.233469"]]
139873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139874
+  (0.4ms) rollback transaction
139875
+  (0.0ms) begin transaction
139876
+ --------------------------------------------------------
139877
+ MovieTest: test_should_save_movie_with_several_resources
139878
+ --------------------------------------------------------
139879
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
139880
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
139881
+  (0.0ms) SAVEPOINT active_record_1
139882
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:40:46.238672"], ["updated_at", "2016-07-15 09:40:46.238672"]]
139883
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421228], ["created_at", "2016-07-15 09:40:46.239645"], ["updated_at", "2016-07-15 09:40:46.239645"]]
139884
+ SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 09:40:46.241013"], ["updated_at", "2016-07-15 09:40:46.241013"]]
139885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139886
+  (0.5ms) rollback transaction
139887
+  (0.0ms) begin transaction
139888
+ -------------------------------------------------------
139889
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
139890
+ -------------------------------------------------------
139891
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
139892
+  (0.0ms) rollback transaction
139893
+  (0.0ms) begin transaction
139894
+ --------------------------------------------
139895
+ FoggedTest: test_should_check_if_file_exists
139896
+ --------------------------------------------
139897
+  (0.0ms) rollback transaction
139898
+  (0.0ms) begin transaction
139899
+ ---------------------------------------------------
139900
+ FoggedTest: test_should_return_directory_public_url
139901
+ ---------------------------------------------------
139902
+  (0.0ms) rollback transaction
139903
+  (0.0ms) begin transaction
139904
+ ---------------------------------------------------
139905
+ FoggedTest: test_should_return_resources_public_url
139906
+ ---------------------------------------------------
139907
+  (0.0ms) rollback transaction
139908
+  (0.0ms) begin transaction
139909
+ ----------------------
139910
+ FoggedTest: test_truth
139911
+ ----------------------
139912
+  (0.0ms) rollback transaction
139913
+  (0.0ms) begin transaction
139914
+ ------------------------------------------------------------------------------------
139915
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
139916
+ ------------------------------------------------------------------------------------
139917
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
139918
+ spawn> parent PID = 85479
139919
+ spawn> child PID = 85492
139920
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [a7c86948-5f17-4830-a374-37dcd7cc1c50] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
139921
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [a7c86948-5f17-4830-a374-37dcd7cc1c50] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 3.97ms
139922
+ spawn> child[85492] took 0.034299 sec
139923
+  (0.5ms) begin transaction
139924
+ -----------------------------------------------------------------------
139925
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
139926
+ -----------------------------------------------------------------------
139927
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
139928
+ spawn> parent PID = 85479
139929
+ spawn> child PID = 85493
139930
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
139931
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (0.8ms) begin transaction
139932
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-07-15 09:40:51.914245"], ["id", 731805050]]
139933
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (0.6ms) commit transaction
139934
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (0.1ms) begin transaction
139935
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 09:40:57.388217"], ["id", 731805050]]
139936
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (2.5ms) commit transaction
139937
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (0.1ms) begin transaction
139938
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1]  (0.3ms) commit transaction
139939
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [f4b2e665-2a72-4c51-a114-811e362e63e1] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 11040.23ms
139940
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
139941
+ spawn> child[85493] took 11.077594 sec
139942
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
139943
+  (0.1ms) begin transaction
139944
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
139945
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 517391740)
139946
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 701625837)
139947
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 819504217)
139948
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 132093124)
139949
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 431685987)
139950
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 620280917)
139951
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 335514824)
139952
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 183950720)
139953
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 1039265257)
139954
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 596998220)
139955
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 433078596)
139956
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 785871319)
139957
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 937304175)
139958
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 14225656)
139959
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 515736925)
139960
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 538821867)
139961
+ 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-07-15 09:41:19', '2016-07-15 09:41:19', 731805050)
139962
+ Fixture Delete (0.1ms) DELETE FROM "images"
139963
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 579229346)
139964
+ Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 153115190)
139965
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
139966
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 419883833, 624739301, 701625837)
139967
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 849405871, 624739301, 819504217)
139968
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 98413728, 245026679, 784085492)
139969
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:19', '2016-07-15 09:41:19', 779853880, 245026679, 431685987)
139970
+ Fixture Delete (0.1ms) DELETE FROM "movies"
139971
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 624739301)
139972
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 245026679)
139973
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:19', '2016-07-15 09:41:19', 948421225)
139974
+  (5.2ms) commit transaction
139975
+  (0.1ms) begin transaction
139976
+ ------------------------------------------------------------------------------------
139977
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
139978
+ ------------------------------------------------------------------------------------
139979
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
139980
+ spawn> parent PID = 85517
139981
+ spawn> child PID = 85518
139982
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [dbc425c4-9d9c-4f84-aeb3-b84d37f1d2b6] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
139983
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [dbc425c4-9d9c-4f84-aeb3-b84d37f1d2b6] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 3.0ms
139984
+ spawn> child[85518] took 0.043823 sec
139985
+  (0.6ms) begin transaction
139986
+ -----------------------------------------------------------------------
139987
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
139988
+ -----------------------------------------------------------------------
139989
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
139990
+ spawn> parent PID = 85517
139991
+ spawn> child PID = 85519
139992
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
139993
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (0.1ms) begin transaction
139994
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-07-15 09:41:22.283829"], ["id", 731805050]]
139995
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (0.8ms) commit transaction
139996
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (0.2ms) begin transaction
139997
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 09:41:25.328748"], ["id", 731805050]]
139998
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (1.2ms) commit transaction
139999
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (0.1ms) begin transaction
140000
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210]  (0.1ms) commit transaction
140001
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [231a559f-a20f-40dc-b0f7-202f7b4ed210] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 5390.57ms
140002
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
140003
+ spawn> child[85519] took 5.433342 sec
140004
+  (0.4ms) begin transaction
140005
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
140006
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 517391740)
140007
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 701625837)
140008
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 819504217)
140009
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 132093124)
140010
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 431685987)
140011
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 620280917)
140012
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 335514824)
140013
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 183950720)
140014
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 1039265257)
140015
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 596998220)
140016
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 433078596)
140017
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 785871319)
140018
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 937304175)
140019
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 14225656)
140020
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 515736925)
140021
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 538821867)
140022
+ 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-07-15 09:41:25', '2016-07-15 09:41:25', 731805050)
140023
+ Fixture Delete (0.1ms) DELETE FROM "images"
140024
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 579229346)
140025
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 153115190)
140026
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
140027
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 419883833, 624739301, 701625837)
140028
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 849405871, 624739301, 819504217)
140029
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 98413728, 245026679, 784085492)
140030
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:25', '2016-07-15 09:41:25', 779853880, 245026679, 431685987)
140031
+ Fixture Delete (0.1ms) DELETE FROM "movies"
140032
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 624739301)
140033
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 245026679)
140034
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:25', '2016-07-15 09:41:25', 948421225)
140035
+  (1.0ms) commit transaction
140036
+  (0.1ms) begin transaction
140037
+ -------------------------------------------------------
140038
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
140039
+ -------------------------------------------------------
140040
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140041
+  (0.1ms) rollback transaction
140042
+  (0.0ms) begin transaction
140043
+ ----------------------------------------------------------------------------------------------
140044
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
140045
+ ----------------------------------------------------------------------------------------------
140046
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140047
+  (0.0ms) SAVEPOINT active_record_1
140048
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:41:25.381663"], ["id", 1039265257]]
140049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140050
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
140051
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
140052
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
140053
+  (0.1ms) SAVEPOINT active_record_1
140054
+ SQL (0.3ms) 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-07-15 09:41:25.399016"], ["id", 1039265257]]
140055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140056
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
140057
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140058
+  (0.7ms) rollback transaction
140059
+  (0.1ms) begin transaction
140060
+ --------------------------------------------------------------------------------------------------------------
140061
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
140062
+ --------------------------------------------------------------------------------------------------------------
140063
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140064
+  (0.0ms) SAVEPOINT active_record_1
140065
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:41:25.404168"], ["id", 1039265257]]
140066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140067
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
140068
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
140069
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
140070
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
140071
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140072
+  (0.5ms) rollback transaction
140073
+  (0.1ms) begin transaction
140074
+ --------------------------------------------------------------------------------------------------------------
140075
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
140076
+ --------------------------------------------------------------------------------------------------------------
140077
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140078
+  (0.1ms) SAVEPOINT active_record_1
140079
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:41:25.411563"], ["id", 1039265257]]
140080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140081
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
140082
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
140083
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
140084
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
140085
+  (0.4ms) rollback transaction
140086
+  (0.1ms) begin transaction
140087
+ -------------------------------------------------------------------------------------------------------------------
140088
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
140089
+ -------------------------------------------------------------------------------------------------------------------
140090
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140091
+  (0.0ms) SAVEPOINT active_record_1
140092
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 09:41:25.417054"], ["id", 1039265257]]
140093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140094
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
140095
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
140096
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
140097
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
140098
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140099
+  (0.5ms) rollback transaction
140100
+  (0.1ms) begin transaction
140101
+ ------------------------------------------------------------------------
140102
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
140103
+ ------------------------------------------------------------------------
140104
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
140105
+ Processing by Fogged::ResourcesController#index as HTML
140106
+ Parameters: {"type"=>"movie"}
140107
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
140108
+ 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]]
140109
+ 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]]
140110
+ 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]]
140111
+ Completed 200 OK in 26ms (Views: 1.3ms | ActiveRecord: 0.4ms)
140112
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
140113
+ 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]]
140114
+ 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]]
140115
+ 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]]
140116
+  (0.1ms) rollback transaction
140117
+  (0.0ms) begin transaction
140118
+ ---------------------------------------------------------------------
140119
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
140120
+ ---------------------------------------------------------------------
140121
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
140122
+ Processing by Fogged::ResourcesController#index as HTML
140123
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
140124
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
140125
+ 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]]
140126
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
140127
+ 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]]
140128
+  (0.1ms) rollback transaction
140129
+  (0.1ms) begin transaction
140130
+ -----------------------------------------------------------------------------------------------
140131
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
140132
+ -----------------------------------------------------------------------------------------------
140133
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
140134
+  (0.1ms) SAVEPOINT active_record_1
140135
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "65a168c4dfc76d77b6507f9044b2c8da"]]
140136
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "65a168c4dfc76d77b6507f9044b2c8da"], ["created_at", "2016-07-15 09:41:25.467636"], ["updated_at", "2016-07-15 09:41:25.467636"]]
140137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140138
+  (0.1ms) SAVEPOINT active_record_1
140139
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-07-15 09:41:25.478316"], ["updated_at", "2016-07-15 09:41:25.478316"]]
140140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140141
+ Processing by Fogged::ResourcesController#index as HTML
140142
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
140143
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
140144
+ 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]]
140145
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
140146
+  (0.7ms) rollback transaction
140147
+  (0.0ms) begin transaction
140148
+ --------------------------------------------------------------------
140149
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
140150
+ --------------------------------------------------------------------
140151
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
140152
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
140153
+ 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]]
140154
+ 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]]
140155
+ Processing by Fogged::ResourcesController#index as HTML
140156
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
140157
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
140158
+ 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]]
140159
+ 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]]
140160
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
140161
+  (0.1ms) rollback transaction
140162
+  (0.0ms) begin transaction
140163
+ -------------------------------------------------------------------------------
140164
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
140165
+ -------------------------------------------------------------------------------
140166
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
140167
+ Processing by Fogged::ResourcesController#index as HTML
140168
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
140169
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
140170
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
140171
+  (0.1ms) rollback transaction
140172
+  (0.0ms) begin transaction
140173
+ ----------------------------------------------------------------------------------
140174
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
140175
+ ----------------------------------------------------------------------------------
140176
+ Processing by Fogged::ResourcesController#show as HTML
140177
+ Parameters: {"id"=>"1234567890"}
140178
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
140179
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
140180
+  (0.1ms) rollback transaction
140181
+  (0.1ms) begin transaction
140182
+ --------------------------------------------------------------------
140183
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
140184
+ --------------------------------------------------------------------
140185
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140186
+ Processing by Fogged::ResourcesController#show as HTML
140187
+ Parameters: {"id"=>"785871319"}
140188
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140189
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
140190
+  (0.0ms) rollback transaction
140191
+  (0.1ms) begin transaction
140192
+ --------------------------------------------------------------
140193
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
140194
+ --------------------------------------------------------------
140195
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140196
+ Processing by Fogged::ResourcesController#show as HTML
140197
+ Parameters: {"id"=>"701625837"}
140198
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140199
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
140200
+  (0.0ms) rollback transaction
140201
+  (0.0ms) begin transaction
140202
+ --------------------------------------------------------------------
140203
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
140204
+ --------------------------------------------------------------------
140205
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140206
+ Processing by Fogged::ResourcesController#show as HTML
140207
+ Parameters: {"id"=>"335514824"}
140208
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140209
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
140210
+  (0.1ms) rollback transaction
140211
+  (0.1ms) begin transaction
140212
+ ----------------------------------------------------------------
140213
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
140214
+ ----------------------------------------------------------------
140215
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
140216
+ spawn> parent PID = 85517
140217
+ spawn> child PID = 85525
140218
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
140219
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 8bb90758-e01e-4ce8-9292-cf27d29f32d6) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
140220
+  (0.1ms) begin transaction
140221
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-07-15 09:41:25.611919"], ["id", 14225656]]
140222
+  (0.8ms) commit transaction
140223
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
140224
+ spawn> child[85525] took 0.089494 sec
140225
+  (0.5ms) begin transaction
140226
+ -----------------------------------------------------------------------
140227
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
140228
+ -----------------------------------------------------------------------
140229
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
140230
+ spawn> parent PID = 85517
140231
+ spawn> child PID = 85526
140232
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
140233
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [8cca20cc-b21d-42e3-8da4-83aaf5f71977] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
140234
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [8cca20cc-b21d-42e3-8da4-83aaf5f71977] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1199.32ms
140235
+ spawn> Exception in child[85526] - OpenURI::HTTPError: 403 Forbidden
140236
+ spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
140237
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
140238
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
140239
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
140240
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
140241
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
140242
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
140243
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
140244
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
140245
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
140246
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
140247
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
140248
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
140249
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
140250
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
140251
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
140252
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
140253
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
140254
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
140255
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
140256
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
140257
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
140258
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
140259
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
140260
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
140261
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
140262
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
140263
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
140264
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
140265
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
140266
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
140267
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
140268
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
140269
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
140270
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
140271
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
140272
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
140273
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
140274
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
140275
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
140276
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
140277
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
140278
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
140279
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
140280
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
140281
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
140282
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
140283
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
140284
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
140285
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
140286
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
140287
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
140288
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
140289
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
140290
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
140291
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
140292
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
140293
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
140294
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
140295
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
140296
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
140297
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
140298
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
140299
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
140300
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
140301
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
140302
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
140303
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
140304
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
140305
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
140306
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
140307
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
140308
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
140309
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
140310
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
140311
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
140312
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
140313
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
140314
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
140315
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
140316
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
140317
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
140318
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
140319
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
140320
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
140321
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
140322
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
140323
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
140324
+ spawn> child[85526] took 1.282735 sec
140325
+  (0.6ms) begin transaction
140326
+ ----------------------------------------------------------------
140327
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
140328
+ ----------------------------------------------------------------
140329
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140330
+ spawn> parent PID = 85517
140331
+ spawn> child PID = 85528
140332
+  (0.4ms) begin transaction
140333
+ SQL (0.8ms) 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-07-15 09:41:27.021555"], ["id", 1039265257]]
140334
+  (4.8ms) commit transaction
140335
+ spawn> child[85528] took 0.079813 sec
140336
+  (0.7ms) begin transaction
140337
+ -----------------------------------------------------------------------------------
140338
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
140339
+ -----------------------------------------------------------------------------------
140340
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140341
+ spawn> parent PID = 85517
140342
+ spawn> child PID = 85529
140343
+  (0.4ms) begin transaction
140344
+  (0.1ms) commit transaction
140345
+ spawn> child[85529] took 0.064076 sec
140346
+  (0.4ms) begin transaction
140347
+ ------------------------------------------------------------------------------------------
140348
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
140349
+ ------------------------------------------------------------------------------------------
140350
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140351
+ spawn> parent PID = 85517
140352
+ spawn> child PID = 85530
140353
+  (0.5ms) begin transaction
140354
+  (0.0ms) commit transaction
140355
+ spawn> child[85530] took 0.071919 sec
140356
+  (0.5ms) begin transaction
140357
+ ----------------------------------------------------------------------------------------
140358
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
140359
+ ----------------------------------------------------------------------------------------
140360
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140361
+ spawn> parent PID = 85517
140362
+ spawn> child PID = 85531
140363
+ spawn> child[85531] took 0.005954 sec
140364
+  (0.5ms) begin transaction
140365
+ ---------------------------------------------------------------------------------------
140366
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
140367
+ ---------------------------------------------------------------------------------------
140368
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
140369
+ spawn> parent PID = 85517
140370
+ spawn> child PID = 85532
140371
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
140372
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
140373
+ spawn> child[85532] took 0.062292 sec
140374
+  (0.6ms) begin transaction
140375
+ ----------------------------------------------------------------------------------------
140376
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
140377
+ ----------------------------------------------------------------------------------------
140378
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140379
+ spawn> parent PID = 85517
140380
+ spawn> child PID = 85533
140381
+ spawn> child[85533] took 0.004489 sec
140382
+  (0.5ms) begin transaction
140383
+ -------------------------------------------------------------------------------------
140384
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
140385
+ -------------------------------------------------------------------------------------
140386
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
140387
+ spawn> parent PID = 85517
140388
+ spawn> child PID = 85534
140389
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
140390
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
140391
+ spawn> child[85534] took 0.052856 sec
140392
+  (0.4ms) begin transaction
140393
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
140394
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)
140395
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)
140396
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)
140397
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)
140398
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)
140399
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)
140400
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)
140401
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)
140402
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)
140403
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)
140404
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)
140405
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)
140406
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)
140407
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)
140408
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)
140409
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)
140410
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)
140411
+ Fixture Delete (0.1ms) DELETE FROM "images"
140412
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)
140413
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)
140414
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
140415
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)
140416
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)
140417
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)
140418
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)
140419
+ Fixture Delete (0.1ms) DELETE FROM "movies"
140420
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)
140421
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)
140422
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)
140423
+  (5.1ms) commit transaction
140424
+  (0.1ms) begin transaction
140425
+ --------------------------------------------------------------------------------------
140426
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
140427
+ --------------------------------------------------------------------------------------
140428
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140429
+ Processing by Fogged::ResourcesController#update as HTML
140430
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
140431
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
140432
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
140433
+  (0.1ms) rollback transaction
140434
+  (0.0ms) begin transaction
140435
+ ------------------------------------------------------------------
140436
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
140437
+ ------------------------------------------------------------------
140438
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140439
+ Processing by Fogged::ResourcesController#update as HTML
140440
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
140441
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140442
+  (0.0ms) SAVEPOINT active_record_1
140443
+ SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-07-15 09:41:27.478091"], ["id", 785871319]]
140444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140445
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
140446
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140447
+  (0.4ms) rollback transaction
140448
+  (0.1ms) begin transaction
140449
+ --------------------------------------------------------------------
140450
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
140451
+ --------------------------------------------------------------------
140452
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140453
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140454
+ Processing by Fogged::ResourcesController#destroy as HTML
140455
+ Parameters: {"id"=>"785871319"}
140456
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140457
+  (0.0ms) SAVEPOINT active_record_1
140458
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
140459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140460
+ Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)
140461
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140462
+  (0.4ms) rollback transaction
140463
+  (0.1ms) begin transaction
140464
+ ----------------------------------------------------------------------------------------
140465
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
140466
+ ----------------------------------------------------------------------------------------
140467
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140468
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140469
+ Processing by Fogged::ResourcesController#destroy as HTML
140470
+ Parameters: {"id"=>"123456"}
140471
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
140472
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
140473
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140474
+  (0.1ms) rollback transaction
140475
+  (0.0ms) begin transaction
140476
+ ---------------------------------------------------
140477
+ ImageTest: test_image_url_changing_the_storage_name
140478
+ ---------------------------------------------------
140479
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140480
+  (0.1ms) SAVEPOINT active_record_1
140481
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-07-15 09:41:27.500429"], ["updated_at", "2016-07-15 09:41:27.500429"]]
140482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140483
+  (0.4ms) rollback transaction
140484
+  (0.1ms) begin transaction
140485
+ -------------------------------------------------------------
140486
+ ImageTest: test_should_not_save_image_with_uploading_resource
140487
+ -------------------------------------------------------------
140488
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140489
+  (0.1ms) SAVEPOINT active_record_1
140490
+ SQL (0.4ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:41:27.505022"], ["id", 701625837]]
140491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140492
+  (0.0ms) SAVEPOINT active_record_1
140493
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140494
+  (0.4ms) rollback transaction
140495
+  (0.1ms) begin transaction
140496
+ --------------------------------------------------------
140497
+ ImageTest: test_should_save_image_with_uploaded_resource
140498
+ --------------------------------------------------------
140499
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140500
+  (0.1ms) SAVEPOINT active_record_1
140501
+ SQL (0.2ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 09:41:27.522666"], ["updated_at", "2016-07-15 09:41:27.522666"]]
140502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140503
+  (0.4ms) rollback transaction
140504
+  (0.1ms) begin transaction
140505
+ --------------------------------------------------
140506
+ ImageTest: test_should_save_image_without_resource
140507
+ --------------------------------------------------
140508
+  (0.0ms) SAVEPOINT active_record_1
140509
+ SQL (0.2ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:41:27.525348"], ["updated_at", "2016-07-15 09:41:27.525348"]]
140510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140511
+  (0.3ms) rollback transaction
140512
+  (0.1ms) begin transaction
140513
+ --------------------------------------------
140514
+ FoggedTest: test_should_check_if_file_exists
140515
+ --------------------------------------------
140516
+  (0.1ms) rollback transaction
140517
+  (0.0ms) begin transaction
140518
+ ---------------------------------------------------
140519
+ FoggedTest: test_should_return_directory_public_url
140520
+ ---------------------------------------------------
140521
+  (0.0ms) rollback transaction
140522
+  (0.0ms) begin transaction
140523
+ ---------------------------------------------------
140524
+ FoggedTest: test_should_return_resources_public_url
140525
+ ---------------------------------------------------
140526
+  (0.0ms) rollback transaction
140527
+  (0.0ms) begin transaction
140528
+ ----------------------
140529
+ FoggedTest: test_truth
140530
+ ----------------------
140531
+  (0.0ms) rollback transaction
140532
+  (0.0ms) begin transaction
140533
+ -------------------------------------------------------------
140534
+ MovieTest: test_should_not_save_movie_with_uploading_resource
140535
+ -------------------------------------------------------------
140536
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140537
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
140538
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
140539
+  (0.1ms) SAVEPOINT active_record_1
140540
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 09:41:27.538076"], ["id", 431685987]]
140541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140542
+  (0.0ms) SAVEPOINT active_record_1
140543
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
140544
+  (0.4ms) rollback transaction
140545
+  (0.0ms) begin transaction
140546
+ ---------------------------------------------------
140547
+ MovieTest: test_should_save_movie_with_no_resources
140548
+ ---------------------------------------------------
140549
+  (0.0ms) SAVEPOINT active_record_1
140550
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:41:27.542821"], ["updated_at", "2016-07-15 09:41:27.542821"]]
140551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140552
+  (0.3ms) rollback transaction
140553
+  (0.0ms) begin transaction
140554
+ --------------------------------------------------------
140555
+ MovieTest: test_should_save_movie_with_several_resources
140556
+ --------------------------------------------------------
140557
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
140558
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
140559
+  (0.1ms) SAVEPOINT active_record_1
140560
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 09:41:27.547970"], ["updated_at", "2016-07-15 09:41:27.547970"]]
140561
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421228], ["created_at", "2016-07-15 09:41:27.549028"], ["updated_at", "2016-07-15 09:41:27.549028"]]
140562
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 09:41:27.550189"], ["updated_at", "2016-07-15 09:41:27.550189"]]
140563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140564
+  (0.4ms) rollback transaction
140565
+  (0.0ms) begin transaction
140566
+ ---------------------------------------------------
140567
+ Fogged::ResourceTest: test_resource_should_be_valid
140568
+ ---------------------------------------------------
140569
+  (0.0ms) SAVEPOINT active_record_1
140570
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e92e937ae13c5f6fd4dd46361047b41f"]]
140571
+ 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", "e92e937ae13c5f6fd4dd46361047b41f"], ["created_at", "2016-07-15 09:41:27.554958"], ["updated_at", "2016-07-15 09:41:27.554958"]]
140572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140573
+  (0.4ms) rollback transaction
140574
+  (0.0ms) begin transaction
140575
+ ----------------------------------------------------------------------------
140576
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
140577
+ ----------------------------------------------------------------------------
140578
+  (0.1ms) SAVEPOINT active_record_1
140579
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e3a0b5e2c953281f1730f61b11e682f4"]]
140580
+ 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", "e3a0b5e2c953281f1730f61b11e682f4"], ["created_at", "2016-07-15 09:41:27.557609"], ["updated_at", "2016-07-15 09:41:27.557609"]]
140581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140582
+  (0.0ms) SAVEPOINT active_record_1
140583
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
140584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140585
+  (0.5ms) rollback transaction
140586
+  (0.1ms) begin transaction
140587
+ -------------------------------------------------------------------------
140588
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
140589
+ -------------------------------------------------------------------------
140590
+  (0.0ms) SAVEPOINT active_record_1
140591
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "c4eae763724c0bdd0f6b9af5909a780f"]]
140592
+ 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", "c4eae763724c0bdd0f6b9af5909a780f"], ["created_at", "2016-07-15 09:41:27.562323"], ["updated_at", "2016-07-15 09:41:27.562323"]]
140593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140594
+  (0.3ms) rollback transaction
140595
+  (0.0ms) begin transaction
140596
+ -------------------------------------------------------------
140597
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
140598
+ -------------------------------------------------------------
140599
+  (0.0ms) SAVEPOINT active_record_1
140600
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "dcfceadc9bdd64055452c910ff5d49b4"]]
140601
+ 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", "dcfceadc9bdd64055452c910ff5d49b4"], ["created_at", "2016-07-15 09:41:27.565017"], ["updated_at", "2016-07-15 09:41:27.565017"]]
140602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140603
+  (0.3ms) rollback transaction
140604
+  (0.0ms) begin transaction
140605
+ ------------------------------------------------------
140606
+ Fogged::ResourceTest: test_resource_should_have_an_url
140607
+ ------------------------------------------------------
140608
+  (0.0ms) SAVEPOINT active_record_1
140609
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e2b2833ef6dd03225f21d8869da58fb2"]]
140610
+ 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", "e2b2833ef6dd03225f21d8869da58fb2"], ["created_at", "2016-07-15 09:41:27.568591"], ["updated_at", "2016-07-15 09:41:27.568591"]]
140611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140612
+  (0.3ms) rollback transaction
140613
+  (0.0ms) begin transaction
140614
+ ----------------------------------------------------------------------------
140615
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
140616
+ ----------------------------------------------------------------------------
140617
+  (0.0ms) SAVEPOINT active_record_1
140618
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140619
+  (0.0ms) rollback transaction
140620
+  (0.0ms) begin transaction
140621
+ -------------------------------------------------------------------------
140622
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
140623
+ -------------------------------------------------------------------------
140624
+  (0.0ms) SAVEPOINT active_record_1
140625
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140626
+  (0.0ms) rollback transaction
140627
+  (0.0ms) begin transaction
140628
+ --------------------------------------------------------
140629
+ Fogged::ResourceTest: test_should_process_resource_image
140630
+ --------------------------------------------------------
140631
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140632
+  (0.0ms) SAVEPOINT active_record_1
140633
+ SQL (0.2ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:41:27.575818"], ["id", 785871319]]
140634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140635
+  (0.3ms) rollback transaction
140636
+  (0.0ms) begin transaction
140637
+ --------------------------------------------------------
140638
+ Fogged::ResourceTest: test_should_process_resource_video
140639
+ --------------------------------------------------------
140640
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140641
+  (0.1ms) rollback transaction
140642
+  (0.0ms) begin transaction
140643
+ ------------------------------------------------------------------------------
140644
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
140645
+ ------------------------------------------------------------------------------
140646
+ spawn> parent PID = 85517
140647
+ spawn> child PID = 85535
140648
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140649
+  (0.1ms) begin transaction
140650
+ 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-07-15 09:41:27.661688"], ["id", 335514824]]
140651
+  (0.9ms) commit transaction
140652
+ spawn> child[85535] took 0.070537 sec
140653
+  (0.4ms) begin transaction
140654
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
140655
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)
140656
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)
140657
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)
140658
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)
140659
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)
140660
+ Fixture Insert (0.2ms) 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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)
140661
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)
140662
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)
140663
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)
140664
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)
140665
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)
140666
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)
140667
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)
140668
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)
140669
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)
140670
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)
140671
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)
140672
+ Fixture Delete (0.1ms) DELETE FROM "images"
140673
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)
140674
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)
140675
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
140676
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)
140677
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)
140678
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)
140679
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)
140680
+ Fixture Delete (0.1ms) DELETE FROM "movies"
140681
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)
140682
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)
140683
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)
140684
+  (0.9ms) commit transaction
140685
+  (0.1ms) begin transaction
140686
+ --------------------------------------------------------------------
140687
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
140688
+ --------------------------------------------------------------------
140689
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140690
+ Processing by Fogged::ResourcesController#confirm as HTML
140691
+ Parameters: {"id"=>"785871319"}
140692
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140693
+  (0.1ms) SAVEPOINT active_record_1
140694
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 09:41:27.697922"], ["id", 785871319]]
140695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140696
+  (0.0ms) SAVEPOINT active_record_1
140697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140698
+ Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)
140699
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140700
+  (0.5ms) rollback transaction
140701
+  (0.1ms) begin transaction
140702
+ ------------------------------------------------------------------------------------------------
140703
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
140704
+ ------------------------------------------------------------------------------------------------
140705
+ spawn> parent PID = 85517
140706
+ spawn> child PID = 85536
140707
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140708
+ Processing by Fogged::ResourcesController#confirm as HTML
140709
+ Parameters: {"id"=>"335514824"}
140710
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140711
+  (0.1ms) begin transaction
140712
+ 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-07-15 09:41:27.754222"], ["id", 335514824]]
140713
+  (0.9ms) commit transaction
140714
+  (0.1ms) begin transaction
140715
+  (0.0ms) commit transaction
140716
+ Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.6ms)
140717
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140718
+ spawn> child[85536] took 0.039762 sec
140719
+  (0.6ms) begin transaction
140720
+ ----------------------------------------------------------------------------------------
140721
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
140722
+ ----------------------------------------------------------------------------------------
140723
+ Processing by Fogged::ResourcesController#confirm as HTML
140724
+ Parameters: {"id"=>"123456"}
140725
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
140726
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
140727
+  (0.1ms) rollback transaction
140728
+  (0.1ms) begin transaction
140729
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
140730
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 517391740)
140731
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 701625837)
140732
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 819504217)
140733
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 132093124)
140734
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 431685987)
140735
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 620280917)
140736
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 335514824)
140737
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 183950720)
140738
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 1039265257)
140739
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 596998220)
140740
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 433078596)
140741
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 785871319)
140742
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 937304175)
140743
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 14225656)
140744
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 515736925)
140745
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 538821867)
140746
+ 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-07-15 09:41:27', '2016-07-15 09:41:27', 731805050)
140747
+ Fixture Delete (0.1ms) DELETE FROM "images"
140748
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 579229346)
140749
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 153115190)
140750
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
140751
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 419883833, 624739301, 701625837)
140752
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 849405871, 624739301, 819504217)
140753
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 98413728, 245026679, 784085492)
140754
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 09:41:27', '2016-07-15 09:41:27', 779853880, 245026679, 431685987)
140755
+ Fixture Delete (0.1ms) DELETE FROM "movies"
140756
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 624739301)
140757
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 245026679)
140758
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 09:41:27', '2016-07-15 09:41:27', 948421225)
140759
+  (1.2ms) commit transaction
140760
+  (0.1ms) begin transaction
140761
+ ------------------------------------------------------------------
140762
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
140763
+ ------------------------------------------------------------------
140764
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140765
+ Processing by Fogged::ResourcesController#create as HTML
140766
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
140767
+  (0.1ms) SAVEPOINT active_record_1
140768
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "08d251ce46c7cf82ed80e02062b8e2d3"]]
140769
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "08d251ce46c7cf82ed80e02062b8e2d3"], ["created_at", "2016-07-15 09:41:27.794966"], ["updated_at", "2016-07-15 09:41:27.794966"]]
140770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140771
+ Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.7ms)
140772
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140773
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
140774
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
140775
+  (0.4ms) rollback transaction
140776
+  (0.1ms) begin transaction
140777
+ --------------------------------------------------------------------------------------------
140778
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
140779
+ --------------------------------------------------------------------------------------------
140780
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140781
+ Processing by Fogged::ResourcesController#create as HTML
140782
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
140783
+  (0.1ms) SAVEPOINT active_record_1
140784
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140785
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.2ms)
140786
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140787
+  (0.1ms) rollback transaction
140788
+  (0.0ms) begin transaction
140789
+ -------------------------------------------------------------------------------------------
140790
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
140791
+ -------------------------------------------------------------------------------------------
140792
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140793
+ Processing by Fogged::ResourcesController#create as HTML
140794
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
140795
+  (0.1ms) SAVEPOINT active_record_1
140796
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
140797
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
140798
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140799
+  (0.1ms) rollback transaction
140800
+  (0.0ms) begin transaction
140801
+ ---------------------------------------------------------------------------------------
140802
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
140803
+ ---------------------------------------------------------------------------------------
140804
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140805
+ Processing by Fogged::ResourcesController#create as HTML
140806
+ Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
140807
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
140808
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140809
+  (0.0ms) rollback transaction
140810
+  (0.0ms) begin transaction
140811
+ -----------------------------------------------------------------------------------
140812
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
140813
+ -----------------------------------------------------------------------------------
140814
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140815
+ Processing by Fogged::ResourcesController#create as HTML
140816
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
140817
+  (0.0ms) SAVEPOINT active_record_1
140818
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
140819
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
140820
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140821
+  (0.0ms) rollback transaction
140822
+  (0.0ms) begin transaction
140823
+ -------------------------------------------------------------------------------------------------
140824
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
140825
+ -------------------------------------------------------------------------------------------------
140826
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140827
+ Processing by Fogged::ResourcesController#create as HTML
140828
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
140829
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
140830
+  (0.0ms) rollback transaction
140831
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
140832
+  (0.2ms) begin transaction
140833
+ Fixture Delete (0.9ms) DELETE FROM "fogged_resources"
140834
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 517391740)
140835
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 701625837)
140836
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 819504217)
140837
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 132093124)
140838
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 431685987)
140839
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 620280917)
140840
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 335514824)
140841
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 183950720)
140842
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 1039265257)
140843
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 596998220)
140844
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 433078596)
140845
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 785871319)
140846
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 937304175)
140847
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 14225656)
140848
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 515736925)
140849
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 538821867)
140850
+ 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-07-15 12:06:00', '2016-07-15 12:06:00', 731805050)
140851
+ Fixture Delete (0.4ms) DELETE FROM "images"
140852
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 579229346)
140853
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 153115190)
140854
+ Fixture Delete (0.8ms) DELETE FROM "movie_fogged_resources"
140855
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 419883833, 624739301, 701625837)
140856
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 849405871, 624739301, 819504217)
140857
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 98413728, 245026679, 784085492)
140858
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:00', '2016-07-15 12:06:00', 779853880, 245026679, 431685987)
140859
+ Fixture Delete (0.3ms) DELETE FROM "movies"
140860
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 624739301)
140861
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 245026679)
140862
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:00', '2016-07-15 12:06:00', 948421225)
140863
+  (0.8ms) commit transaction
140864
+  (0.1ms) begin transaction
140865
+ ---------------------------------------------------
140866
+ Fogged::ResourceTest: test_resource_should_be_valid
140867
+ ---------------------------------------------------
140868
+  (0.1ms) SAVEPOINT active_record_1
140869
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "50945140980698a71909788a9d035d0c"]]
140870
+ 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", "50945140980698a71909788a9d035d0c"], ["created_at", "2016-07-15 12:06:00.895887"], ["updated_at", "2016-07-15 12:06:00.895887"]]
140871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140872
+  (0.5ms) rollback transaction
140873
+  (0.1ms) begin transaction
140874
+ ----------------------------------------------------------------------------
140875
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
140876
+ ----------------------------------------------------------------------------
140877
+  (0.1ms) SAVEPOINT active_record_1
140878
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "e8341119235f51dae4523949a80090f1"]]
140879
+ 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", "e8341119235f51dae4523949a80090f1"], ["created_at", "2016-07-15 12:06:00.900135"], ["updated_at", "2016-07-15 12:06:00.900135"]]
140880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140881
+  (0.1ms) SAVEPOINT active_record_1
140882
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
140883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140884
+  (0.6ms) rollback transaction
140885
+  (0.1ms) begin transaction
140886
+ -------------------------------------------------------------------------
140887
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
140888
+ -------------------------------------------------------------------------
140889
+  (0.1ms) SAVEPOINT active_record_1
140890
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "1067e95bd1b9beb28d1278a7c2d3a827"]]
140891
+ 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", "1067e95bd1b9beb28d1278a7c2d3a827"], ["created_at", "2016-07-15 12:06:00.906095"], ["updated_at", "2016-07-15 12:06:00.906095"]]
140892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140893
+  (0.4ms) rollback transaction
140894
+  (0.1ms) begin transaction
140895
+ -------------------------------------------------------------
140896
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
140897
+ -------------------------------------------------------------
140898
+  (0.1ms) SAVEPOINT active_record_1
140899
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "9b7a0455c412fd2f0fb1205b6c21fb22"]]
140900
+ 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", "9b7a0455c412fd2f0fb1205b6c21fb22"], ["created_at", "2016-07-15 12:06:00.909346"], ["updated_at", "2016-07-15 12:06:00.909346"]]
140901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140902
+  (0.5ms) rollback transaction
140903
+  (0.1ms) begin transaction
140904
+ ------------------------------------------------------
140905
+ Fogged::ResourceTest: test_resource_should_have_an_url
140906
+ ------------------------------------------------------
140907
+  (0.0ms) SAVEPOINT active_record_1
140908
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "f48b85461d52a7cb255a35873a7dbe53"]]
140909
+ 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", "f48b85461d52a7cb255a35873a7dbe53"], ["created_at", "2016-07-15 12:06:00.914438"], ["updated_at", "2016-07-15 12:06:00.914438"]]
140910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140911
+  (0.3ms) rollback transaction
140912
+  (0.0ms) begin transaction
140913
+ ----------------------------------------------------------------------------
140914
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
140915
+ ----------------------------------------------------------------------------
140916
+  (0.1ms) SAVEPOINT active_record_1
140917
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140918
+  (0.1ms) rollback transaction
140919
+  (0.1ms) begin transaction
140920
+ -------------------------------------------------------------------------
140921
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
140922
+ -------------------------------------------------------------------------
140923
+  (0.0ms) SAVEPOINT active_record_1
140924
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
140925
+  (0.0ms) rollback transaction
140926
+  (0.1ms) begin transaction
140927
+ --------------------------------------------------------
140928
+ Fogged::ResourceTest: test_should_process_resource_image
140929
+ --------------------------------------------------------
140930
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
140931
+  (0.1ms) SAVEPOINT active_record_1
140932
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 12:06:00.936083"], ["id", 785871319]]
140933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140934
+  (0.4ms) rollback transaction
140935
+  (0.0ms) begin transaction
140936
+ --------------------------------------------------------
140937
+ Fogged::ResourceTest: test_should_process_resource_video
140938
+ --------------------------------------------------------
140939
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140940
+  (0.1ms) rollback transaction
140941
+  (0.1ms) begin transaction
140942
+ ------------------------------------------------------------------------------
140943
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
140944
+ ------------------------------------------------------------------------------
140945
+ spawn> parent PID = 87344
140946
+ spawn> child PID = 87345
140947
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
140948
+  (0.2ms) begin transaction
140949
+ SQL (0.6ms) 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-07-15 12:06:01.049690"], ["id", 335514824]]
140950
+  (0.8ms) commit transaction
140951
+ spawn> child[87345] took 0.094664 sec
140952
+  (0.5ms) begin transaction
140953
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
140954
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 517391740)
140955
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 701625837)
140956
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 819504217)
140957
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 132093124)
140958
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 431685987)
140959
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 620280917)
140960
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 335514824)
140961
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 183950720)
140962
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 1039265257)
140963
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 596998220)
140964
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 433078596)
140965
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 785871319)
140966
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 937304175)
140967
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 14225656)
140968
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 515736925)
140969
+ 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-07-15 12:06:01', '2016-07-15 12:06:01', 538821867)
140970
+ Fixture Insert (0.2ms) 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-07-15 12:06:01', '2016-07-15 12:06:01', 731805050)
140971
+ Fixture Delete (0.1ms) DELETE FROM "images"
140972
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 579229346)
140973
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 153115190)
140974
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
140975
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 419883833, 624739301, 701625837)
140976
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 849405871, 624739301, 819504217)
140977
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 98413728, 245026679, 784085492)
140978
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:01', '2016-07-15 12:06:01', 779853880, 245026679, 431685987)
140979
+ Fixture Delete (0.1ms) DELETE FROM "movies"
140980
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 624739301)
140981
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 245026679)
140982
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:01', '2016-07-15 12:06:01', 948421225)
140983
+  (1.0ms) commit transaction
140984
+  (0.1ms) begin transaction
140985
+ ----------------------------------------------------------------------------------------------
140986
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
140987
+ ----------------------------------------------------------------------------------------------
140988
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
140989
+  (0.0ms) SAVEPOINT active_record_1
140990
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 12:06:01.082534"], ["id", 1039265257]]
140991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140992
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
140993
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
140994
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
140995
+  (0.1ms) SAVEPOINT active_record_1
140996
+ SQL (0.3ms) 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-07-15 12:06:01.090356"], ["id", 1039265257]]
140997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140998
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
140999
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141000
+  (0.7ms) rollback transaction
141001
+  (0.1ms) begin transaction
141002
+ --------------------------------------------------------------------------------------------------------------
141003
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
141004
+ --------------------------------------------------------------------------------------------------------------
141005
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141006
+  (0.0ms) SAVEPOINT active_record_1
141007
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 12:06:01.095356"], ["id", 1039265257]]
141008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141009
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
141010
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
141011
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
141012
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
141013
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141014
+  (0.4ms) rollback transaction
141015
+  (0.0ms) begin transaction
141016
+ --------------------------------------------------------------------------------------------------------------
141017
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
141018
+ --------------------------------------------------------------------------------------------------------------
141019
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141020
+  (0.0ms) SAVEPOINT active_record_1
141021
+ SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 12:06:01.100941"], ["id", 1039265257]]
141022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141023
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
141024
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
141025
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
141026
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
141027
+  (0.3ms) rollback transaction
141028
+  (0.1ms) begin transaction
141029
+ -------------------------------------------------------------------------------------------------------------------
141030
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
141031
+ -------------------------------------------------------------------------------------------------------------------
141032
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141033
+  (0.0ms) SAVEPOINT active_record_1
141034
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-07-15 12:06:01.105322"], ["id", 1039265257]]
141035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141036
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
141037
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
141038
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
141039
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
141040
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141041
+  (0.5ms) rollback transaction
141042
+  (0.1ms) begin transaction
141043
+ --------------------------------------------------------------------
141044
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
141045
+ --------------------------------------------------------------------
141046
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141047
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141048
+ Processing by Fogged::ResourcesController#destroy as HTML
141049
+ Parameters: {"id"=>"785871319"}
141050
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141051
+  (0.0ms) SAVEPOINT active_record_1
141052
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
141053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141054
+ Completed 204 No Content in 3ms (ActiveRecord: 0.4ms)
141055
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141056
+  (0.5ms) rollback transaction
141057
+  (0.1ms) begin transaction
141058
+ ----------------------------------------------------------------------------------------
141059
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
141060
+ ----------------------------------------------------------------------------------------
141061
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141062
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141063
+ Processing by Fogged::ResourcesController#destroy as HTML
141064
+ Parameters: {"id"=>"123456"}
141065
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
141066
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
141067
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141068
+  (0.1ms) rollback transaction
141069
+  (0.0ms) begin transaction
141070
+ --------------------------------------------
141071
+ FoggedTest: test_should_check_if_file_exists
141072
+ --------------------------------------------
141073
+  (0.1ms) rollback transaction
141074
+  (0.0ms) begin transaction
141075
+ ---------------------------------------------------
141076
+ FoggedTest: test_should_return_directory_public_url
141077
+ ---------------------------------------------------
141078
+  (0.1ms) rollback transaction
141079
+  (0.0ms) begin transaction
141080
+ ---------------------------------------------------
141081
+ FoggedTest: test_should_return_resources_public_url
141082
+ ---------------------------------------------------
141083
+  (0.0ms) rollback transaction
141084
+  (0.0ms) begin transaction
141085
+ ----------------------
141086
+ FoggedTest: test_truth
141087
+ ----------------------
141088
+  (0.0ms) rollback transaction
141089
+  (0.0ms) begin transaction
141090
+ ------------------------------------------------------------------------
141091
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
141092
+ ------------------------------------------------------------------------
141093
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141094
+ Processing by Fogged::ResourcesController#index as HTML
141095
+ Parameters: {"type"=>"movie"}
141096
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
141097
+ Fogged::Resource Load (0.3ms) 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]]
141098
+ 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]]
141099
+ 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]]
141100
+ Completed 200 OK in 31ms (Views: 1.2ms | ActiveRecord: 0.6ms)
141101
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
141102
+ 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]]
141103
+ 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]]
141104
+ 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]]
141105
+  (0.1ms) rollback transaction
141106
+  (0.0ms) begin transaction
141107
+ ---------------------------------------------------------------------
141108
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
141109
+ ---------------------------------------------------------------------
141110
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141111
+ Processing by Fogged::ResourcesController#index as HTML
141112
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
141113
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
141114
+ 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]]
141115
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
141116
+ 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]]
141117
+  (0.1ms) rollback transaction
141118
+  (0.0ms) begin transaction
141119
+ -----------------------------------------------------------------------------------------------
141120
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
141121
+ -----------------------------------------------------------------------------------------------
141122
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141123
+  (0.1ms) SAVEPOINT active_record_1
141124
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "2eda55ca01fc0a163c618104e351f874"]]
141125
+ 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", "2eda55ca01fc0a163c618104e351f874"], ["created_at", "2016-07-15 12:06:01.174341"], ["updated_at", "2016-07-15 12:06:01.174341"]]
141126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141127
+  (0.0ms) SAVEPOINT active_record_1
141128
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-07-15 12:06:01.184807"], ["updated_at", "2016-07-15 12:06:01.184807"]]
141129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141130
+ Processing by Fogged::ResourcesController#index as HTML
141131
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
141132
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
141133
+ 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]]
141134
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
141135
+  (0.7ms) rollback transaction
141136
+  (0.1ms) begin transaction
141137
+ --------------------------------------------------------------------
141138
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
141139
+ --------------------------------------------------------------------
141140
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141141
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
141142
+ 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]]
141143
+ 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]]
141144
+ Processing by Fogged::ResourcesController#index as HTML
141145
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
141146
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
141147
+ 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]]
141148
+ 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]]
141149
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
141150
+  (0.1ms) rollback transaction
141151
+  (0.0ms) begin transaction
141152
+ -------------------------------------------------------------------------------
141153
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
141154
+ -------------------------------------------------------------------------------
141155
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141156
+ Processing by Fogged::ResourcesController#index as HTML
141157
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
141158
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
141159
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
141160
+  (0.1ms) rollback transaction
141161
+  (0.1ms) begin transaction
141162
+ ------------------------------------------------------------------
141163
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
141164
+ ------------------------------------------------------------------
141165
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141166
+ Processing by Fogged::ResourcesController#create as HTML
141167
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
141168
+  (0.1ms) SAVEPOINT active_record_1
141169
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "614e974e4ea2db07ba24de6b247273ed"]]
141170
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "614e974e4ea2db07ba24de6b247273ed"], ["created_at", "2016-07-15 12:06:01.208715"], ["updated_at", "2016-07-15 12:06:01.208715"]]
141171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141172
+ Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.6ms)
141173
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141174
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
141175
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
141176
+  (0.5ms) rollback transaction
141177
+  (0.1ms) begin transaction
141178
+ --------------------------------------------------------------------------------------------
141179
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
141180
+ --------------------------------------------------------------------------------------------
141181
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141182
+ Processing by Fogged::ResourcesController#create as HTML
141183
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
141184
+  (0.0ms) SAVEPOINT active_record_1
141185
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
141186
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
141187
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141188
+  (0.1ms) rollback transaction
141189
+  (0.0ms) begin transaction
141190
+ -------------------------------------------------------------------------------------------
141191
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
141192
+ -------------------------------------------------------------------------------------------
141193
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141194
+ Processing by Fogged::ResourcesController#create as HTML
141195
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
141196
+  (0.0ms) SAVEPOINT active_record_1
141197
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
141198
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
141199
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141200
+  (0.0ms) rollback transaction
141201
+  (0.0ms) begin transaction
141202
+ ---------------------------------------------------------------------------------------
141203
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
141204
+ ---------------------------------------------------------------------------------------
141205
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141206
+ Processing by Fogged::ResourcesController#create as HTML
141207
+ Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
141208
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
141209
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141210
+  (0.1ms) rollback transaction
141211
+  (0.0ms) begin transaction
141212
+ -----------------------------------------------------------------------------------
141213
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
141214
+ -----------------------------------------------------------------------------------
141215
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141216
+ Processing by Fogged::ResourcesController#create as HTML
141217
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
141218
+  (0.0ms) SAVEPOINT active_record_1
141219
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
141220
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
141221
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141222
+  (0.0ms) rollback transaction
141223
+  (0.1ms) begin transaction
141224
+ -------------------------------------------------------------------------------------------------
141225
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
141226
+ -------------------------------------------------------------------------------------------------
141227
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141228
+ Processing by Fogged::ResourcesController#create as HTML
141229
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
141230
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
141231
+  (0.0ms) rollback transaction
141232
+  (0.0ms) begin transaction
141233
+ ------------------------------------------------------------------------------------
141234
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
141235
+ ------------------------------------------------------------------------------------
141236
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
141237
+ spawn> parent PID = 87344
141238
+ spawn> child PID = 87346
141239
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [9f059b5b-7a83-4ce9-ab74-bed18d7781b5] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
141240
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [9f059b5b-7a83-4ce9-ab74-bed18d7781b5] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 6.96ms
141241
+ spawn> child[87346] took 0.046142 sec
141242
+  (0.5ms) begin transaction
141243
+ -----------------------------------------------------------------------
141244
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
141245
+ -----------------------------------------------------------------------
141246
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
141247
+ spawn> parent PID = 87344
141248
+ spawn> child PID = 87347
141249
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
141250
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.7ms) begin transaction
141251
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-07-15 12:06:01.976235"], ["id", 731805050]]
141252
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.9ms) commit transaction
141253
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.1ms) begin transaction
141254
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-07-15 12:06:02.419899"], ["id", 731805050]]
141255
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.8ms) commit transaction
141256
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.0ms) begin transaction
141257
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60]  (0.0ms) commit transaction
141258
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [d377650b-cbe1-48bb-9342-5412ea6b4c60] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1072.3ms
141259
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
141260
+ spawn> child[87347] took 1.111037 sec
141261
+  (0.4ms) begin transaction
141262
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
141263
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 517391740)
141264
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 701625837)
141265
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 819504217)
141266
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 132093124)
141267
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 431685987)
141268
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 620280917)
141269
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 335514824)
141270
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 183950720)
141271
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 1039265257)
141272
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 596998220)
141273
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 433078596)
141274
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 785871319)
141275
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 937304175)
141276
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 14225656)
141277
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 515736925)
141278
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 538821867)
141279
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 731805050)
141280
+ Fixture Delete (0.1ms) DELETE FROM "images"
141281
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 579229346)
141282
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 153115190)
141283
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
141284
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 419883833, 624739301, 701625837)
141285
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 849405871, 624739301, 819504217)
141286
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 98413728, 245026679, 784085492)
141287
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 779853880, 245026679, 431685987)
141288
+ Fixture Delete (0.1ms) DELETE FROM "movies"
141289
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 624739301)
141290
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 245026679)
141291
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 948421225)
141292
+  (1.1ms) commit transaction
141293
+  (0.1ms) begin transaction
141294
+ -------------------------------------------------------
141295
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
141296
+ -------------------------------------------------------
141297
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141298
+  (0.1ms) rollback transaction
141299
+  (0.0ms) begin transaction
141300
+ -------------------------------------------------------------
141301
+ MovieTest: test_should_not_save_movie_with_uploading_resource
141302
+ -------------------------------------------------------------
141303
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141304
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
141305
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
141306
+  (0.1ms) SAVEPOINT active_record_1
141307
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 12:06:02.461276"], ["id", 431685987]]
141308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141309
+  (0.0ms) SAVEPOINT active_record_1
141310
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
141311
+  (0.4ms) rollback transaction
141312
+  (0.1ms) begin transaction
141313
+ ---------------------------------------------------
141314
+ MovieTest: test_should_save_movie_with_no_resources
141315
+ ---------------------------------------------------
141316
+  (0.1ms) SAVEPOINT active_record_1
141317
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 12:06:02.466889"], ["updated_at", "2016-07-15 12:06:02.466889"]]
141318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141319
+  (0.8ms) rollback transaction
141320
+  (0.1ms) begin transaction
141321
+ --------------------------------------------------------
141322
+ MovieTest: test_should_save_movie_with_several_resources
141323
+ --------------------------------------------------------
141324
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141325
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
141326
+  (0.1ms) SAVEPOINT active_record_1
141327
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 12:06:02.473753"], ["updated_at", "2016-07-15 12:06:02.473753"]]
141328
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421228], ["created_at", "2016-07-15 12:06:02.474933"], ["updated_at", "2016-07-15 12:06:02.474933"]]
141329
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-07-15 12:06:02.475975"], ["updated_at", "2016-07-15 12:06:02.475975"]]
141330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141331
+  (0.5ms) rollback transaction
141332
+  (0.0ms) begin transaction
141333
+ --------------------------------------------------------------------------------------
141334
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
141335
+ --------------------------------------------------------------------------------------
141336
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141337
+ Processing by Fogged::ResourcesController#update as HTML
141338
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
141339
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
141340
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
141341
+  (0.1ms) rollback transaction
141342
+  (0.1ms) begin transaction
141343
+ ------------------------------------------------------------------
141344
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
141345
+ ------------------------------------------------------------------
141346
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141347
+ Processing by Fogged::ResourcesController#update as HTML
141348
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
141349
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141350
+  (0.0ms) SAVEPOINT active_record_1
141351
+ SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-07-15 12:06:02.487069"], ["id", 785871319]]
141352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141353
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
141354
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141355
+  (0.3ms) rollback transaction
141356
+  (0.1ms) begin transaction
141357
+ ---------------------------------------------------
141358
+ ImageTest: test_image_url_changing_the_storage_name
141359
+ ---------------------------------------------------
141360
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141361
+  (0.1ms) SAVEPOINT active_record_1
141362
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-07-15 12:06:02.496917"], ["updated_at", "2016-07-15 12:06:02.496917"]]
141363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141364
+  (0.4ms) rollback transaction
141365
+  (0.1ms) begin transaction
141366
+ -------------------------------------------------------------
141367
+ ImageTest: test_should_not_save_image_with_uploading_resource
141368
+ -------------------------------------------------------------
141369
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141370
+  (0.1ms) SAVEPOINT active_record_1
141371
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-07-15 12:06:02.500865"], ["id", 701625837]]
141372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141373
+  (0.0ms) SAVEPOINT active_record_1
141374
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
141375
+  (0.4ms) rollback transaction
141376
+  (0.1ms) begin transaction
141377
+ --------------------------------------------------------
141378
+ ImageTest: test_should_save_image_with_uploaded_resource
141379
+ --------------------------------------------------------
141380
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141381
+  (0.1ms) SAVEPOINT active_record_1
141382
+ SQL (0.2ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-07-15 12:06:02.504973"], ["updated_at", "2016-07-15 12:06:02.504973"]]
141383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141384
+  (0.3ms) rollback transaction
141385
+  (0.0ms) begin transaction
141386
+ --------------------------------------------------
141387
+ ImageTest: test_should_save_image_without_resource
141388
+ --------------------------------------------------
141389
+  (0.0ms) SAVEPOINT active_record_1
141390
+ SQL (0.2ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-07-15 12:06:02.507457"], ["updated_at", "2016-07-15 12:06:02.507457"]]
141391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141392
+  (0.3ms) rollback transaction
141393
+  (0.1ms) begin transaction
141394
+ --------------------------------------------------------------------
141395
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
141396
+ --------------------------------------------------------------------
141397
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141398
+ Processing by Fogged::ResourcesController#confirm as HTML
141399
+ Parameters: {"id"=>"785871319"}
141400
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141401
+  (0.0ms) SAVEPOINT active_record_1
141402
+ SQL (0.2ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-07-15 12:06:02.513679"], ["id", 785871319]]
141403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141404
+  (0.0ms) SAVEPOINT active_record_1
141405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141406
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
141407
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141408
+  (0.4ms) rollback transaction
141409
+  (0.0ms) begin transaction
141410
+ ------------------------------------------------------------------------------------------------
141411
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
141412
+ ------------------------------------------------------------------------------------------------
141413
+ spawn> parent PID = 87344
141414
+ spawn> child PID = 87352
141415
+ Fogged::Resource Load (1.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141416
+ Processing by Fogged::ResourcesController#confirm as HTML
141417
+ Parameters: {"id"=>"335514824"}
141418
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141419
+  (0.1ms) begin transaction
141420
+ 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-07-15 12:06:02.565607"], ["id", 335514824]]
141421
+  (0.8ms) commit transaction
141422
+  (0.1ms) begin transaction
141423
+  (0.0ms) commit transaction
141424
+ Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 1.6ms)
141425
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141426
+ spawn> child[87352] took 0.041121 sec
141427
+  (0.4ms) begin transaction
141428
+ ----------------------------------------------------------------------------------------
141429
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
141430
+ ----------------------------------------------------------------------------------------
141431
+ Processing by Fogged::ResourcesController#confirm as HTML
141432
+ Parameters: {"id"=>"123456"}
141433
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
141434
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
141435
+  (0.1ms) rollback transaction
141436
+  (0.1ms) begin transaction
141437
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
141438
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 517391740)
141439
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 701625837)
141440
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 819504217)
141441
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 132093124)
141442
+ 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 4', 'qwertzuiop4', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 431685987)
141443
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 620280917)
141444
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 335514824)
141445
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 183950720)
141446
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 1039265257)
141447
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 596998220)
141448
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 433078596)
141449
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 785871319)
141450
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 937304175)
141451
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 14225656)
141452
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 515736925)
141453
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 538821867)
141454
+ 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-07-15 12:06:02', '2016-07-15 12:06:02', 731805050)
141455
+ Fixture Delete (0.1ms) DELETE FROM "images"
141456
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 579229346)
141457
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 153115190)
141458
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
141459
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 419883833, 624739301, 701625837)
141460
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 849405871, 624739301, 819504217)
141461
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 98413728, 245026679, 784085492)
141462
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-07-15 12:06:02', '2016-07-15 12:06:02', 779853880, 245026679, 431685987)
141463
+ Fixture Delete (0.1ms) DELETE FROM "movies"
141464
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 624739301)
141465
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 245026679)
141466
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-07-15 12:06:02', '2016-07-15 12:06:02', 948421225)
141467
+  (1.0ms) commit transaction
141468
+  (0.1ms) begin transaction
141469
+ ----------------------------------------------------------------------------------
141470
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
141471
+ ----------------------------------------------------------------------------------
141472
+ Processing by Fogged::ResourcesController#show as HTML
141473
+ Parameters: {"id"=>"1234567890"}
141474
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
141475
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
141476
+  (0.1ms) rollback transaction
141477
+  (0.0ms) begin transaction
141478
+ --------------------------------------------------------------------
141479
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
141480
+ --------------------------------------------------------------------
141481
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141482
+ Processing by Fogged::ResourcesController#show as HTML
141483
+ Parameters: {"id"=>"785871319"}
141484
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141485
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
141486
+  (0.1ms) rollback transaction
141487
+  (0.0ms) begin transaction
141488
+ --------------------------------------------------------------
141489
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
141490
+ --------------------------------------------------------------
141491
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141492
+ Processing by Fogged::ResourcesController#show as HTML
141493
+ Parameters: {"id"=>"701625837"}
141494
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141495
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
141496
+  (0.1ms) rollback transaction
141497
+  (0.0ms) begin transaction
141498
+ --------------------------------------------------------------------
141499
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
141500
+ --------------------------------------------------------------------
141501
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141502
+ Processing by Fogged::ResourcesController#show as HTML
141503
+ Parameters: {"id"=>"335514824"}
141504
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141505
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
141506
+  (0.1ms) rollback transaction
141507
+  (0.0ms) begin transaction
141508
+ ----------------------------------------------------------------
141509
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
141510
+ ----------------------------------------------------------------
141511
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
141512
+ spawn> parent PID = 87344
141513
+ spawn> child PID = 87353
141514
+  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs"
141515
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: ce466a2f-67df-4fde-b9de-7b9b0724c006) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
141516
+  (0.2ms) begin transaction
141517
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-07-15 12:06:02.700244"], ["id", 14225656]]
141518
+  (0.8ms) commit transaction
141519
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141520
+ spawn> child[87353] took 0.079335 sec
141521
+  (0.4ms) begin transaction
141522
+ -----------------------------------------------------------------------
141523
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
141524
+ -----------------------------------------------------------------------
141525
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
141526
+ spawn> parent PID = 87344
141527
+ spawn> child PID = 87354
141528
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141529
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2b3aa3d7-1adb-4012-a421-54a34b2f324e] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
141530
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [2b3aa3d7-1adb-4012-a421-54a34b2f324e] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1278.45ms
141531
+ spawn> Exception in child[87354] - OpenURI::HTTPError: 403 Forbidden
141532
+ spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
141533
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
141534
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
141535
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
141536
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
141537
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
141538
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
141539
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
141540
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
141541
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
141542
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
141543
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
141544
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
141545
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
141546
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
141547
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
141548
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
141549
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
141550
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
141551
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
141552
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
141553
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
141554
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
141555
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
141556
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
141557
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
141558
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
141559
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
141560
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
141561
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
141562
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
141563
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
141564
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
141565
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
141566
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
141567
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
141568
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
141569
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
141570
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
141571
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
141572
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
141573
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
141574
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
141575
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
141576
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
141577
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
141578
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
141579
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
141580
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
141581
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
141582
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
141583
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
141584
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
141585
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
141586
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
141587
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
141588
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
141589
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
141590
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
141591
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
141592
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
141593
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
141594
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
141595
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
141596
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
141597
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
141598
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
141599
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
141600
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
141601
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
141602
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
141603
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
141604
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
141605
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
141606
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
141607
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
141608
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
141609
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
141610
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
141611
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
141612
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
141613
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
141614
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
141615
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
141616
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
141617
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
141618
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
141619
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
141620
+ spawn> child[87354] took 1.345818 sec
141621
+  (0.6ms) begin transaction
141622
+ ----------------------------------------------------------------
141623
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
141624
+ ----------------------------------------------------------------
141625
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141626
+ spawn> parent PID = 87344
141627
+ spawn> child PID = 87355
141628
+  (0.5ms) begin transaction
141629
+ 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-07-15 12:06:04.157557"], ["id", 1039265257]]
141630
+  (0.9ms) commit transaction
141631
+ spawn> child[87355] took 0.062766 sec
141632
+  (0.4ms) begin transaction
141633
+ -----------------------------------------------------------------------------------
141634
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
141635
+ -----------------------------------------------------------------------------------
141636
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141637
+ spawn> parent PID = 87344
141638
+ spawn> child PID = 87356
141639
+  (0.6ms) begin transaction
141640
+  (0.1ms) commit transaction
141641
+ spawn> child[87356] took 0.061746 sec
141642
+  (0.4ms) begin transaction
141643
+ ------------------------------------------------------------------------------------------
141644
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
141645
+ ------------------------------------------------------------------------------------------
141646
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
141647
+ spawn> parent PID = 87344
141648
+ spawn> child PID = 87357
141649
+  (0.6ms) begin transaction
141650
+  (0.1ms) commit transaction
141651
+ spawn> child[87357] took 0.062462 sec
141652
+  (0.6ms) begin transaction
141653
+ ----------------------------------------------------------------------------------------
141654
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
141655
+ ----------------------------------------------------------------------------------------
141656
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141657
+ spawn> parent PID = 87344
141658
+ spawn> child PID = 87358
141659
+ spawn> child[87358] took 0.004612 sec
141660
+  (0.5ms) begin transaction
141661
+ ---------------------------------------------------------------------------------------
141662
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
141663
+ ---------------------------------------------------------------------------------------
141664
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
141665
+ spawn> parent PID = 87344
141666
+ spawn> child PID = 87359
141667
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141668
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141669
+ spawn> child[87359] took 0.050966 sec
141670
+  (0.6ms) begin transaction
141671
+ ----------------------------------------------------------------------------------------
141672
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
141673
+ ----------------------------------------------------------------------------------------
141674
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141675
+ spawn> parent PID = 87344
141676
+ spawn> child PID = 87360
141677
+ spawn> child[87360] took 0.003574 sec
141678
+  (0.4ms) begin transaction
141679
+ -------------------------------------------------------------------------------------
141680
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
141681
+ -------------------------------------------------------------------------------------
141682
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
141683
+ spawn> parent PID = 87344
141684
+ spawn> child PID = 87361
141685
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141686
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141687
+ spawn> child[87361] took 0.05548 sec