fogged 0.0.3 → 0.0.4

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: b7c3321f45a12c8abb4bdae08424f1bc57082f32
4
- data.tar.gz: c0335d5a93b1850ca60ed9a83d96c9ef3e4094bf
3
+ metadata.gz: 265b396d59da61488ba11b7d9ab9ab944f0258a4
4
+ data.tar.gz: 736569ff7e8fd7627c3a93c04065a9e315447e4b
5
5
  SHA512:
6
- metadata.gz: 329460b7a1aadd93837606457469cbe2641437dfc46d89170ad250c2efc50212cdca51d314ba6e974665a6c5b1d42210203af28a1b4b9552dcfe67dd3ec17da5
7
- data.tar.gz: b73659a9fe3b06e42d8de3da23da0efcc7f8072e533da2e8363e1234b28265bb4f04965f1ef9d55151a1fac58780b66bd2ee20661a25630738611c0da776f144
6
+ metadata.gz: cef14588abf7d1cac4215e19e412e1da03855b06c04014d3a3fdb70949c6fe912abc3738cb6d2bac92f0f3e15f6c2f4d1c35b2f3ca71cee6a84c8cc0ee53c450
7
+ data.tar.gz: 64daa48361e73b98826a7916bf40c2d7c6a265db4e041e979634f4ba0313c50eec93d1aee2661368b8bc8e96c20b1f7f66a5b6939b479ac81f7083dc7494d04f
@@ -62,11 +62,11 @@ module Fogged
62
62
  Fog.mock!
63
63
  storage = Fog::Storage.new(
64
64
  :provider => "AWS",
65
- :aws_access_key_id => "1234567890",
66
- :aws_secret_access_key => "1234567890"
65
+ :aws_access_key_id => "XXX",
66
+ :aws_secret_access_key => "XXX"
67
67
  )
68
- @@aws_key = "1234567890"
69
- @@aws_secret_access_key = "1234567890"
68
+ @@aws_key = "XXX"
69
+ @@aws_secret = "XXX"
70
70
  @@aws_bucket = "test"
71
71
  storage.directories.create(:key => "test")
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module Fogged
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
@@ -31490,3 +31490,3072 @@ Processing by Fogged::ResourcesController#destroy as HTML
31490
31490
  Completed 404 Not Found in 1ms
31491
31491
   (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31492
31492
   (0.1ms) rollback transaction
31493
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
31494
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31495
+  (0.1ms) begin transaction
31496
+ Fixture Delete (1.0ms) DELETE FROM "fogged_resources"
31497
+ Fixture Insert (0.5ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 517391740)
31498
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 701625837)
31499
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 819504217)
31500
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 132093124)
31501
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 431685987)
31502
+ 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', '1234567890mov', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 68463692)
31503
+ 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', '1234567890png', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 591498715)
31504
+ 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, '2014-12-22 08:03:45', '2014-12-22 08:03:45', 538821867)
31505
+ Fixture Delete (0.1ms) DELETE FROM "images"
31506
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 579229346)
31507
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 153115190)
31508
+ Fixture Delete (0.6ms) DELETE FROM "movie_fogged_resources"
31509
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 419883833, 624739301, 701625837)
31510
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 849405871, 624739301, 819504217)
31511
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 98413728, 245026679, 784085492)
31512
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 779853880, 245026679, 431685987)
31513
+ Fixture Delete (0.4ms) DELETE FROM "movies"
31514
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 624739301)
31515
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 245026679)
31516
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 948421225)
31517
+  (0.9ms) commit transaction
31518
+  (0.0ms) begin transaction
31519
+ --------------------------------------------------------------------------------------
31520
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
31521
+ --------------------------------------------------------------------------------------
31522
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31523
+ Processing by Fogged::ResourcesController#update as HTML
31524
+ Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
31525
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
31526
+ Completed 404 Not Found in 1ms
31527
+  (0.1ms) rollback transaction
31528
+  (0.1ms) begin transaction
31529
+ ------------------------------------------------------------------
31530
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
31531
+ ------------------------------------------------------------------
31532
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31533
+ Processing by Fogged::ResourcesController#update as HTML
31534
+ Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
31535
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31536
+  (0.1ms) SAVEPOINT active_record_1
31537
+ SQL (0.4ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:03:45.366957"]]
31538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31539
+ Completed 200 OK in 118ms (Views: 75.1ms | ActiveRecord: 0.6ms)
31540
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31541
+  (0.4ms) rollback transaction
31542
+  (0.0ms) begin transaction
31543
+ -------------------------------------------------------------
31544
+ ImageTest: test_should_not_save_image_with_uploading_resource
31545
+ -------------------------------------------------------------
31546
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
31547
+  (0.0ms) SAVEPOINT active_record_1
31548
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:03:45.486444"], ["uploading", "t"]]
31549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31550
+  (0.0ms) SAVEPOINT active_record_1
31551
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31552
+  (0.3ms) rollback transaction
31553
+  (0.0ms) begin transaction
31554
+ --------------------------------------------------------
31555
+ ImageTest: test_should_save_image_with_uploaded_resource
31556
+ --------------------------------------------------------
31557
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
31558
+  (0.0ms) SAVEPOINT active_record_1
31559
+ SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.502956"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:03:45.502956"]]
31560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31561
+  (0.4ms) rollback transaction
31562
+  (0.1ms) begin transaction
31563
+ --------------------------------------------------
31564
+ ImageTest: test_should_save_image_without_resource
31565
+ --------------------------------------------------
31566
+  (0.0ms) SAVEPOINT active_record_1
31567
+ SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:03:45.505402"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.505402"]]
31568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31569
+  (0.4ms) rollback transaction
31570
+  (0.0ms) begin transaction
31571
+ ---------------------------------------------------
31572
+ Fogged::ResourceTest: test_resource_should_be_valid
31573
+ ---------------------------------------------------
31574
+  (0.0ms) SAVEPOINT active_record_1
31575
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aae9805f4a911ca63dd72088139f35f7' LIMIT 1
31576
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.512538"], ["extension", "txt"], ["name", "Test"], ["token", "aae9805f4a911ca63dd72088139f35f7"], ["updated_at", "2014-12-22 08:03:45.512538"], ["uploading", "f"]]
31577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31578
+  (0.4ms) rollback transaction
31579
+  (0.0ms) begin transaction
31580
+ ----------------------------------------------------------------------------
31581
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
31582
+ ----------------------------------------------------------------------------
31583
+  (0.0ms) SAVEPOINT active_record_1
31584
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e1cb9e10cb2df7aa122fae9fbd364bd3' LIMIT 1
31585
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.515510"], ["extension", "txt"], ["name", "Test"], ["token", "e1cb9e10cb2df7aa122fae9fbd364bd3"], ["updated_at", "2014-12-22 08:03:45.515510"], ["uploading", "f"]]
31586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31587
+  (0.0ms) SAVEPOINT active_record_1
31588
+ SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
31589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31590
+  (0.5ms) rollback transaction
31591
+  (0.0ms) begin transaction
31592
+ -------------------------------------------------------------------------
31593
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
31594
+ -------------------------------------------------------------------------
31595
+  (0.0ms) SAVEPOINT active_record_1
31596
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1e550738e3afdd3df43966e77db5eda3' LIMIT 1
31597
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.520891"], ["extension", "txt"], ["name", "Test"], ["token", "1e550738e3afdd3df43966e77db5eda3"], ["updated_at", "2014-12-22 08:03:45.520891"], ["uploading", "f"]]
31598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31599
+  (0.4ms) rollback transaction
31600
+  (0.0ms) begin transaction
31601
+ -------------------------------------------------------------
31602
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
31603
+ -------------------------------------------------------------
31604
+  (0.1ms) SAVEPOINT active_record_1
31605
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c92c998e89ac1d035472c8d02ff6e826' LIMIT 1
31606
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.523387"], ["extension", "txt"], ["name", "Test"], ["token", "c92c998e89ac1d035472c8d02ff6e826"], ["updated_at", "2014-12-22 08:03:45.523387"], ["uploading", "f"]]
31607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31608
+  (0.4ms) rollback transaction
31609
+  (0.0ms) begin transaction
31610
+ ------------------------------------------------------
31611
+ Fogged::ResourceTest: test_resource_should_have_an_url
31612
+ ------------------------------------------------------
31613
+  (0.0ms) SAVEPOINT active_record_1
31614
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '62f6f5bb0bc85593611859136f9a5d46' LIMIT 1
31615
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.526597"], ["extension", "txt"], ["name", "Test"], ["token", "62f6f5bb0bc85593611859136f9a5d46"], ["updated_at", "2014-12-22 08:03:45.526597"], ["uploading", "f"]]
31616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31617
+  (0.3ms) rollback transaction
31618
+  (0.0ms) begin transaction
31619
+ ----------------------------------------------------------------------------
31620
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
31621
+ ----------------------------------------------------------------------------
31622
+  (0.0ms) SAVEPOINT active_record_1
31623
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31624
+  (0.0ms) rollback transaction
31625
+  (0.0ms) begin transaction
31626
+ -------------------------------------------------------------------------
31627
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
31628
+ -------------------------------------------------------------------------
31629
+  (0.0ms) SAVEPOINT active_record_1
31630
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31631
+  (0.0ms) rollback transaction
31632
+  (0.0ms) begin transaction
31633
+ --------------------------------------------------------
31634
+ Fogged::ResourceTest: test_should_process_resource_image
31635
+ --------------------------------------------------------
31636
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31637
+  (0.0ms) SAVEPOINT active_record_1
31638
+ SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:03:45.533525"], ["width", 800]]
31639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31640
+  (0.4ms) rollback transaction
31641
+  (0.0ms) begin transaction
31642
+ --------------------------------------------------------
31643
+ Fogged::ResourceTest: test_should_process_resource_video
31644
+ --------------------------------------------------------
31645
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
31646
+  (0.0ms) rollback transaction
31647
+  (0.1ms) begin transaction
31648
+ ------------------------------------------------------------------------------
31649
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
31650
+ ------------------------------------------------------------------------------
31651
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
31652
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"
31653
+  (0.1ms) begin transaction
31654
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:45.647901"]]
31655
+  (0.7ms) commit transaction
31656
+  (0.1ms) begin transaction
31657
+ SQL (1.0ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.668485"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:45.667766"], ["updated_at", "2014-12-22 08:03:45.668485"]]
31658
+  (1.0ms) commit transaction
31659
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
31660
+  (0.4ms) begin transaction
31661
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
31662
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 517391740)
31663
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 701625837)
31664
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 819504217)
31665
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 132093124)
31666
+ 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', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 431685987)
31667
+ 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', '1234567890mov', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 68463692)
31668
+ 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', '1234567890png', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 591498715)
31669
+ 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, '2014-12-22 08:03:45', '2014-12-22 08:03:45', 538821867)
31670
+ Fixture Delete (0.1ms) DELETE FROM "images"
31671
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 579229346)
31672
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 153115190)
31673
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
31674
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 419883833, 624739301, 701625837)
31675
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 849405871, 624739301, 819504217)
31676
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 98413728, 245026679, 784085492)
31677
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:45', '2014-12-22 08:03:45', 779853880, 245026679, 431685987)
31678
+ Fixture Delete (0.1ms) DELETE FROM "movies"
31679
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 624739301)
31680
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 245026679)
31681
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:45', '2014-12-22 08:03:45', 948421225)
31682
+  (0.9ms) commit transaction
31683
+  (0.1ms) begin transaction
31684
+ -------------------------------------------------------
31685
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
31686
+ -------------------------------------------------------
31687
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
31688
+  (0.1ms) rollback transaction
31689
+  (0.1ms) begin transaction
31690
+ -------------------------------------------------------------
31691
+ MovieTest: test_should_not_save_movie_with_uploading_resource
31692
+ -------------------------------------------------------------
31693
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
31694
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
31695
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
31696
+  (0.1ms) SAVEPOINT active_record_1
31697
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:03:45.856109"], ["uploading", "t"]]
31698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31699
+  (0.0ms) SAVEPOINT active_record_1
31700
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31701
+  (0.4ms) rollback transaction
31702
+  (0.1ms) begin transaction
31703
+ ---------------------------------------------------
31704
+ MovieTest: test_should_save_movie_with_no_resources
31705
+ ---------------------------------------------------
31706
+  (0.0ms) SAVEPOINT active_record_1
31707
+ SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:03:45.861440"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.861440"]]
31708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31709
+  (0.4ms) rollback transaction
31710
+  (0.1ms) begin transaction
31711
+ --------------------------------------------------------
31712
+ MovieTest: test_should_save_movie_with_several_resources
31713
+ --------------------------------------------------------
31714
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
31715
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
31716
+  (0.0ms) SAVEPOINT active_record_1
31717
+ SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:03:45.866341"], ["name", "test"], ["updated_at", "2014-12-22 08:03:45.866341"]]
31718
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.867287"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:03:45.867287"]]
31719
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.868296"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:03:45.868296"]]
31720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31721
+  (0.5ms) rollback transaction
31722
+  (0.0ms) begin transaction
31723
+ ----------------------
31724
+ FoggedTest: test_truth
31725
+ ----------------------
31726
+  (0.0ms) rollback transaction
31727
+  (0.0ms) begin transaction
31728
+ ------------------------------------------------------------------------
31729
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
31730
+ ------------------------------------------------------------------------
31731
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
31732
+ Processing by Fogged::ResourcesController#index as HTML
31733
+ Parameters: {"type"=>"movie"}
31734
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
31735
+ 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]]
31736
+ 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]]
31737
+ 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]]
31738
+ Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 0.4ms)
31739
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
31740
+ 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]]
31741
+ 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]]
31742
+ 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]]
31743
+  (0.1ms) rollback transaction
31744
+  (0.1ms) begin transaction
31745
+ ---------------------------------------------------------------------
31746
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
31747
+ ---------------------------------------------------------------------
31748
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
31749
+ Processing by Fogged::ResourcesController#index as HTML
31750
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
31751
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
31752
+ 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]]
31753
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
31754
+ 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]]
31755
+  (0.1ms) rollback transaction
31756
+  (0.0ms) begin transaction
31757
+ -----------------------------------------------------------------------------------------------
31758
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
31759
+ -----------------------------------------------------------------------------------------------
31760
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
31761
+  (0.0ms) SAVEPOINT active_record_1
31762
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a79f2026dda9a84b59d689e112ba5c5e' LIMIT 1
31763
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:03:45.903082"], ["extension", "txt"], ["name", "footest barish"], ["token", "a79f2026dda9a84b59d689e112ba5c5e"], ["updated_at", "2014-12-22 08:03:45.903082"]]
31764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31765
+  (0.0ms) SAVEPOINT active_record_1
31766
+ SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:45.905313"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:03:45.905313"]]
31767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31768
+ Processing by Fogged::ResourcesController#index as HTML
31769
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
31770
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
31771
+ 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]]
31772
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
31773
+  (0.7ms) rollback transaction
31774
+  (0.0ms) begin transaction
31775
+ --------------------------------------------------------------------
31776
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
31777
+ --------------------------------------------------------------------
31778
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
31779
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
31780
+ 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]]
31781
+ 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]]
31782
+ Processing by Fogged::ResourcesController#index as HTML
31783
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
31784
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
31785
+ 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]]
31786
+ 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]]
31787
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
31788
+  (0.1ms) rollback transaction
31789
+  (0.0ms) begin transaction
31790
+ -------------------------------------------------------------------------------
31791
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
31792
+ -------------------------------------------------------------------------------
31793
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
31794
+ Processing by Fogged::ResourcesController#index as HTML
31795
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
31796
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
31797
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
31798
+  (0.0ms) rollback transaction
31799
+  (0.0ms) begin transaction
31800
+ -----------------------------------------------------------------------------------
31801
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
31802
+ -----------------------------------------------------------------------------------
31803
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31804
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31805
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31806
+  (0.1ms) begin transaction
31807
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:03:46.004068"]]
31808
+  (0.8ms) commit transaction
31809
+  (0.1ms) begin transaction
31810
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:46.022635"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:03:45.000000000 Z\n updated_at: 2014-12-22 08:03:46.004068000 Z\n"], ["run_at", "2014-12-22 08:03:56.007451"], ["updated_at", "2014-12-22 08:03:46.022635"]]
31811
+  (0.9ms) commit transaction
31812
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31813
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31814
+  (0.4ms) begin transaction
31815
+ --------------------------------------------------------------------------------
31816
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
31817
+ --------------------------------------------------------------------------------
31818
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31819
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31820
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31821
+  (0.1ms) begin transaction
31822
+ SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:03:46.257981"], ["width", 800]]
31823
+  (0.8ms) commit transaction
31824
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
31825
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31826
+  (0.5ms) begin transaction
31827
+ --------------------------------------------------------------------------------
31828
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
31829
+ --------------------------------------------------------------------------------
31830
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31831
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31832
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31833
+  (0.7ms) begin transaction
31834
+ --------------------------------------------------------------------------------
31835
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
31836
+ --------------------------------------------------------------------------------
31837
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31838
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31839
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31840
+  (0.1ms) begin transaction
31841
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:03:46.736767"]]
31842
+  (5.3ms) commit transaction
31843
+  (0.1ms) begin transaction
31844
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:46.763270"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:03:45.000000000 Z\n updated_at: 2014-12-22 08:03:46.736767000 Z\n"], ["run_at", "2014-12-22 08:03:56.744964"], ["updated_at", "2014-12-22 08:03:46.763270"]]
31845
+  (0.9ms) commit transaction
31846
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
31847
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
31848
+  (0.5ms) begin transaction
31849
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
31850
+ 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', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 517391740)
31851
+ 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', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 701625837)
31852
+ 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', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 819504217)
31853
+ 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', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 132093124)
31854
+ 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', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 431685987)
31855
+ 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', '1234567890mov', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 68463692)
31856
+ 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', '1234567890png', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 591498715)
31857
+ 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, '2014-12-22 08:03:46', '2014-12-22 08:03:46', 538821867)
31858
+ Fixture Delete (0.1ms) DELETE FROM "images"
31859
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 579229346)
31860
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 153115190)
31861
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
31862
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 419883833, 624739301, 701625837)
31863
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 849405871, 624739301, 819504217)
31864
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 98413728, 245026679, 784085492)
31865
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:46', '2014-12-22 08:03:46', 779853880, 245026679, 431685987)
31866
+ Fixture Delete (0.1ms) DELETE FROM "movies"
31867
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 624739301)
31868
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 245026679)
31869
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:46', '2014-12-22 08:03:46', 948421225)
31870
+  (1.0ms) commit transaction
31871
+  (0.1ms) begin transaction
31872
+ --------------------------------------------------------------------
31873
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
31874
+ --------------------------------------------------------------------
31875
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31876
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31877
+ Processing by Fogged::ResourcesController#destroy as HTML
31878
+ Parameters: {"id"=>"591498715"}
31879
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31880
+  (0.1ms) SAVEPOINT active_record_1
31881
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
31882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31883
+ Completed 204 No Content in 3ms (ActiveRecord: 0.4ms)
31884
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31885
+  (0.4ms) rollback transaction
31886
+  (0.1ms) begin transaction
31887
+ ----------------------------------------------------------------------------------------
31888
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
31889
+ ----------------------------------------------------------------------------------------
31890
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31891
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31892
+ Processing by Fogged::ResourcesController#destroy as HTML
31893
+ Parameters: {"id"=>"123456"}
31894
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
31895
+ Completed 404 Not Found in 1ms
31896
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31897
+  (0.1ms) rollback transaction
31898
+  (0.0ms) begin transaction
31899
+ ------------------------------------------------------------------
31900
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
31901
+ ------------------------------------------------------------------
31902
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31903
+ Processing by Fogged::ResourcesController#create as HTML
31904
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
31905
+  (0.0ms) SAVEPOINT active_record_1
31906
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '341973d2c70a26952089f48d5bbc1d7f' LIMIT 1
31907
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:03:46.947685"], ["extension", "png"], ["name", "Dummy"], ["token", "341973d2c70a26952089f48d5bbc1d7f"], ["updated_at", "2014-12-22 08:03:46.947685"], ["uploading", "t"]]
31908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31909
+ Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.6ms)
31910
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31911
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
31912
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
31913
+  (0.4ms) rollback transaction
31914
+  (0.1ms) begin transaction
31915
+ --------------------------------------------------------------------------------------------
31916
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
31917
+ --------------------------------------------------------------------------------------------
31918
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31919
+ Processing by Fogged::ResourcesController#create as HTML
31920
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
31921
+  (0.0ms) SAVEPOINT active_record_1
31922
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31923
+ Completed 422 Unprocessable Entity in 2ms
31924
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31925
+  (0.1ms) rollback transaction
31926
+  (0.0ms) begin transaction
31927
+ -------------------------------------------------------------------------------------------
31928
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
31929
+ -------------------------------------------------------------------------------------------
31930
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31931
+ Processing by Fogged::ResourcesController#create as HTML
31932
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
31933
+ Completed 400 Bad Request in 0ms
31934
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31935
+  (0.0ms) rollback transaction
31936
+  (0.0ms) begin transaction
31937
+ ---------------------------------------------------------------------------------------
31938
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
31939
+ ---------------------------------------------------------------------------------------
31940
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31941
+ Processing by Fogged::ResourcesController#create as HTML
31942
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
31943
+ Completed 400 Bad Request in 0ms
31944
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31945
+  (0.1ms) rollback transaction
31946
+  (0.0ms) begin transaction
31947
+ -----------------------------------------------------------------------------------
31948
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
31949
+ -----------------------------------------------------------------------------------
31950
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31951
+ Processing by Fogged::ResourcesController#create as HTML
31952
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
31953
+ Completed 400 Bad Request in 0ms
31954
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31955
+  (0.1ms) rollback transaction
31956
+  (0.0ms) begin transaction
31957
+ -------------------------------------------------------------------------------------------------
31958
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
31959
+ -------------------------------------------------------------------------------------------------
31960
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31961
+ Processing by Fogged::ResourcesController#create as HTML
31962
+ Completed 400 Bad Request in 0ms
31963
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
31964
+  (0.3ms) rollback transaction
31965
+  (0.0ms) begin transaction
31966
+ ----------------------------------------------------------------
31967
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
31968
+ ----------------------------------------------------------------
31969
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
31970
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31971
+  (0.1ms) begin transaction
31972
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:47.050753"]]
31973
+  (0.8ms) commit transaction
31974
+  (0.1ms) begin transaction
31975
+ SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:47.068158"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:47.067821"], ["updated_at", "2014-12-22 08:03:47.068158"]]
31976
+  (0.9ms) commit transaction
31977
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31978
+  (0.6ms) begin transaction
31979
+ --------------------------------------------------------------------
31980
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
31981
+ --------------------------------------------------------------------
31982
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
31983
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
31984
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31985
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
31986
+  (0.4ms) begin transaction
31987
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
31988
+ 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', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 517391740)
31989
+ 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', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 701625837)
31990
+ 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', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 819504217)
31991
+ 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', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 132093124)
31992
+ 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', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 431685987)
31993
+ 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', '1234567890mov', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 68463692)
31994
+ 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', '1234567890png', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 591498715)
31995
+ 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, '2014-12-22 08:03:47', '2014-12-22 08:03:47', 538821867)
31996
+ Fixture Delete (0.1ms) DELETE FROM "images"
31997
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 579229346)
31998
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 153115190)
31999
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32000
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 419883833, 624739301, 701625837)
32001
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 849405871, 624739301, 819504217)
32002
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 98413728, 245026679, 784085492)
32003
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:03:47', '2014-12-22 08:03:47', 779853880, 245026679, 431685987)
32004
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32005
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 624739301)
32006
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 245026679)
32007
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:03:47', '2014-12-22 08:03:47', 948421225)
32008
+  (5.4ms) commit transaction
32009
+  (0.2ms) begin transaction
32010
+ ----------------------------------------------------------------------------------
32011
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
32012
+ ----------------------------------------------------------------------------------
32013
+ Processing by Fogged::ResourcesController#show as HTML
32014
+ Parameters: {"id"=>"1234567890"}
32015
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
32016
+ Completed 404 Not Found in 1ms
32017
+  (0.1ms) rollback transaction
32018
+  (0.1ms) begin transaction
32019
+ --------------------------------------------------------------------
32020
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
32021
+ --------------------------------------------------------------------
32022
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32023
+ Processing by Fogged::ResourcesController#show as HTML
32024
+ Parameters: {"id"=>"591498715"}
32025
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32026
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
32027
+  (0.1ms) rollback transaction
32028
+  (0.1ms) begin transaction
32029
+ --------------------------------------------------------------
32030
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
32031
+ --------------------------------------------------------------
32032
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32033
+ Processing by Fogged::ResourcesController#show as HTML
32034
+ Parameters: {"id"=>"701625837"}
32035
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32036
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
32037
+  (0.1ms) rollback transaction
32038
+  (0.0ms) begin transaction
32039
+ --------------------------------------------------------------------
32040
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
32041
+ --------------------------------------------------------------------
32042
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32043
+ Processing by Fogged::ResourcesController#show as HTML
32044
+ Parameters: {"id"=>"68463692"}
32045
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32046
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
32047
+  (0.1ms) rollback transaction
32048
+  (0.1ms) begin transaction
32049
+ --------------------------------------------------------------------
32050
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
32051
+ --------------------------------------------------------------------
32052
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32053
+ Processing by Fogged::ResourcesController#confirm as HTML
32054
+ Parameters: {"id"=>"591498715"}
32055
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32056
+  (0.1ms) SAVEPOINT active_record_1
32057
+ SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:03:47.486569"], ["width", 800]]
32058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32059
+  (0.0ms) SAVEPOINT active_record_1
32060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32061
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
32062
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32063
+  (0.5ms) rollback transaction
32064
+  (0.1ms) begin transaction
32065
+ ------------------------------------------------------------------------------------------------
32066
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
32067
+ ------------------------------------------------------------------------------------------------
32068
+ Fogged::Resource Load (1.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32069
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32070
+ Processing by Fogged::ResourcesController#confirm as HTML
32071
+ Parameters: {"id"=>"68463692"}
32072
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32073
+  (0.1ms) begin transaction
32074
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:03:47.573956"]]
32075
+  (0.9ms) commit transaction
32076
+  (0.1ms) begin transaction
32077
+ SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:03:47.589776"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:03:47.589343"], ["updated_at", "2014-12-22 08:03:47.589776"]]
32078
+  (1.0ms) commit transaction
32079
+  (0.1ms) begin transaction
32080
+  (0.1ms) commit transaction
32081
+ Completed 200 OK in 27ms (Views: 2.5ms | ActiveRecord: 3.6ms)
32082
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32083
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32084
+  (0.4ms) begin transaction
32085
+ ----------------------------------------------------------------------------------------
32086
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
32087
+ ----------------------------------------------------------------------------------------
32088
+ Processing by Fogged::ResourcesController#confirm as HTML
32089
+ Parameters: {"id"=>"123456"}
32090
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
32091
+ Completed 404 Not Found in 1ms
32092
+  (0.1ms) rollback transaction
32093
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
32094
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32095
+  (0.1ms) begin transaction
32096
+ Fixture Delete (1.1ms) DELETE FROM "fogged_resources"
32097
+ Fixture Insert (0.5ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 517391740)
32098
+ 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', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 701625837)
32099
+ 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', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 819504217)
32100
+ 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', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 132093124)
32101
+ 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', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 431685987)
32102
+ 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', '1234567890mov', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 68463692)
32103
+ 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', '1234567890png', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 591498715)
32104
+ 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, '2014-12-22 08:16:22', '2014-12-22 08:16:22', 538821867)
32105
+ Fixture Delete (0.1ms) DELETE FROM "images"
32106
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 579229346)
32107
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 153115190)
32108
+ Fixture Delete (0.6ms) DELETE FROM "movie_fogged_resources"
32109
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 419883833, 624739301, 701625837)
32110
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 849405871, 624739301, 819504217)
32111
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 98413728, 245026679, 784085492)
32112
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:22', '2014-12-22 08:16:22', 779853880, 245026679, 431685987)
32113
+ Fixture Delete (0.3ms) DELETE FROM "movies"
32114
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 624739301)
32115
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 245026679)
32116
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:22', '2014-12-22 08:16:22', 948421225)
32117
+  (1.0ms) commit transaction
32118
+  (0.1ms) begin transaction
32119
+ --------------------------------------------------------------------
32120
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
32121
+ --------------------------------------------------------------------
32122
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32123
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32124
+ Processing by Fogged::ResourcesController#destroy as HTML
32125
+ Parameters: {"id"=>"591498715"}
32126
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32127
+  (0.4ms) SAVEPOINT active_record_1
32128
+ SQL (0.6ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
32129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32130
+ Completed 204 No Content in 136ms (ActiveRecord: 1.2ms)
32131
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32132
+  (0.5ms) rollback transaction
32133
+  (0.0ms) begin transaction
32134
+ ----------------------------------------------------------------------------------------
32135
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
32136
+ ----------------------------------------------------------------------------------------
32137
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32138
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32139
+ Processing by Fogged::ResourcesController#destroy as HTML
32140
+ Parameters: {"id"=>"123456"}
32141
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
32142
+ Completed 404 Not Found in 0ms
32143
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32144
+  (0.1ms) rollback transaction
32145
+  (0.1ms) begin transaction
32146
+ ----------------------------------------------------------------
32147
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
32148
+ ----------------------------------------------------------------
32149
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32150
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"
32151
+  (0.1ms) begin transaction
32152
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:22.607277"]]
32153
+  (0.7ms) commit transaction
32154
+  (0.3ms) begin transaction
32155
+ SQL (1.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:22.638186"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:22.636962"], ["updated_at", "2014-12-22 08:16:22.638186"]]
32156
+  (0.9ms) commit transaction
32157
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32158
+  (0.6ms) begin transaction
32159
+ --------------------------------------------------------------------
32160
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
32161
+ --------------------------------------------------------------------
32162
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32163
+ Fogged::Resource Load (1.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32164
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32165
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32166
+  (0.4ms) begin transaction
32167
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
32168
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 517391740)
32169
+ 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', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 701625837)
32170
+ 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', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 819504217)
32171
+ 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', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 132093124)
32172
+ 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', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 431685987)
32173
+ 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', '1234567890mov', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 68463692)
32174
+ 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', '1234567890png', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 591498715)
32175
+ 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, '2014-12-22 08:16:23', '2014-12-22 08:16:23', 538821867)
32176
+ Fixture Delete (0.1ms) DELETE FROM "images"
32177
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 579229346)
32178
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 153115190)
32179
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32180
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 419883833, 624739301, 701625837)
32181
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 849405871, 624739301, 819504217)
32182
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 98413728, 245026679, 784085492)
32183
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:23', '2014-12-22 08:16:23', 779853880, 245026679, 431685987)
32184
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32185
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 624739301)
32186
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 245026679)
32187
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:23', '2014-12-22 08:16:23', 948421225)
32188
+  (5.0ms) commit transaction
32189
+  (0.2ms) begin transaction
32190
+ -------------------------------------------------------------
32191
+ MovieTest: test_should_not_save_movie_with_uploading_resource
32192
+ -------------------------------------------------------------
32193
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32194
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
32195
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
32196
+  (0.2ms) SAVEPOINT active_record_1
32197
+ SQL (0.7ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:16:23.127300"], ["uploading", "t"]]
32198
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32199
+  (0.2ms) SAVEPOINT active_record_1
32200
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32201
+  (0.5ms) rollback transaction
32202
+  (0.1ms) begin transaction
32203
+ ---------------------------------------------------
32204
+ MovieTest: test_should_save_movie_with_no_resources
32205
+ ---------------------------------------------------
32206
+  (0.0ms) SAVEPOINT active_record_1
32207
+ SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:16:23.150742"], ["name", "test"], ["updated_at", "2014-12-22 08:16:23.150742"]]
32208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32209
+  (0.3ms) rollback transaction
32210
+  (0.1ms) begin transaction
32211
+ --------------------------------------------------------
32212
+ MovieTest: test_should_save_movie_with_several_resources
32213
+ --------------------------------------------------------
32214
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32215
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
32216
+  (0.2ms) SAVEPOINT active_record_1
32217
+ SQL (0.7ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:16:23.158521"], ["name", "test"], ["updated_at", "2014-12-22 08:16:23.158521"]]
32218
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:23.161345"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:16:23.161345"]]
32219
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:23.162844"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:16:23.162844"]]
32220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32221
+  (0.4ms) rollback transaction
32222
+  (0.1ms) begin transaction
32223
+ -----------------------------------------------------------------------------------
32224
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
32225
+ -----------------------------------------------------------------------------------
32226
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32227
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32228
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32229
+  (0.1ms) begin transaction
32230
+ SQL (1.1ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:16:23.301125"]]
32231
+  (1.0ms) commit transaction
32232
+  (0.2ms) begin transaction
32233
+ SQL (1.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:23.336762"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:16:23.000000000 Z\n updated_at: 2014-12-22 08:16:23.301125000 Z\n"], ["run_at", "2014-12-22 08:16:33.310246"], ["updated_at", "2014-12-22 08:16:23.336762"]]
32234
+  (2.1ms) commit transaction
32235
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32236
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32237
+  (0.7ms) begin transaction
32238
+ --------------------------------------------------------------------------------
32239
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
32240
+ --------------------------------------------------------------------------------
32241
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32242
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32243
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32244
+  (0.1ms) begin transaction
32245
+ SQL (0.5ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:16:23.605294"], ["width", 800]]
32246
+  (0.8ms) commit transaction
32247
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32248
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32249
+  (0.4ms) begin transaction
32250
+ --------------------------------------------------------------------------------
32251
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
32252
+ --------------------------------------------------------------------------------
32253
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32254
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32255
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32256
+  (0.5ms) begin transaction
32257
+ --------------------------------------------------------------------------------
32258
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
32259
+ --------------------------------------------------------------------------------
32260
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32261
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32262
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32263
+  (0.1ms) begin transaction
32264
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:16:24.125993"]]
32265
+  (5.1ms) commit transaction
32266
+  (0.1ms) begin transaction
32267
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:24.149591"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:16:23.000000000 Z\n updated_at: 2014-12-22 08:16:24.125993000 Z\n"], ["run_at", "2014-12-22 08:16:34.134519"], ["updated_at", "2014-12-22 08:16:24.149591"]]
32268
+  (1.0ms) commit transaction
32269
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32270
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32271
+  (0.4ms) begin transaction
32272
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
32273
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 517391740)
32274
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 701625837)
32275
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 819504217)
32276
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 132093124)
32277
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 431685987)
32278
+ 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', '1234567890mov', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 68463692)
32279
+ 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', '1234567890png', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 591498715)
32280
+ 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, '2014-12-22 08:16:24', '2014-12-22 08:16:24', 538821867)
32281
+ Fixture Delete (0.1ms) DELETE FROM "images"
32282
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 579229346)
32283
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 153115190)
32284
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32285
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 419883833, 624739301, 701625837)
32286
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 849405871, 624739301, 819504217)
32287
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 98413728, 245026679, 784085492)
32288
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 779853880, 245026679, 431685987)
32289
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32290
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 624739301)
32291
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 245026679)
32292
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 948421225)
32293
+  (0.9ms) commit transaction
32294
+  (0.0ms) begin transaction
32295
+ --------------------------------------------------------------------
32296
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
32297
+ --------------------------------------------------------------------
32298
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32299
+ Processing by Fogged::ResourcesController#confirm as HTML
32300
+ Parameters: {"id"=>"591498715"}
32301
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32302
+  (0.1ms) SAVEPOINT active_record_1
32303
+ SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:16:24.320254"], ["width", 800]]
32304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32305
+  (0.1ms) SAVEPOINT active_record_1
32306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32307
+ Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 0.8ms)
32308
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32309
+  (1.0ms) rollback transaction
32310
+  (0.1ms) begin transaction
32311
+ ------------------------------------------------------------------------------------------------
32312
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
32313
+ ------------------------------------------------------------------------------------------------
32314
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32315
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32316
+ Processing by Fogged::ResourcesController#confirm as HTML
32317
+ Parameters: {"id"=>"68463692"}
32318
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32319
+  (0.2ms) begin transaction
32320
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:24.461861"]]
32321
+  (0.8ms) commit transaction
32322
+  (0.2ms) begin transaction
32323
+ SQL (0.7ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:24.483528"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:24.482731"], ["updated_at", "2014-12-22 08:16:24.483528"]]
32324
+  (0.8ms) commit transaction
32325
+  (0.0ms) begin transaction
32326
+  (0.0ms) commit transaction
32327
+ Completed 200 OK in 36ms (Views: 1.6ms | ActiveRecord: 3.7ms)
32328
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32329
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32330
+  (0.5ms) begin transaction
32331
+ ----------------------------------------------------------------------------------------
32332
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
32333
+ ----------------------------------------------------------------------------------------
32334
+ Processing by Fogged::ResourcesController#confirm as HTML
32335
+ Parameters: {"id"=>"123456"}
32336
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
32337
+ Completed 404 Not Found in 1ms
32338
+  (0.1ms) rollback transaction
32339
+  (0.1ms) begin transaction
32340
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
32341
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 517391740)
32342
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 701625837)
32343
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 819504217)
32344
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 132093124)
32345
+ 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', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 431685987)
32346
+ 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', '1234567890mov', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 68463692)
32347
+ 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', '1234567890png', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 591498715)
32348
+ 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, '2014-12-22 08:16:24', '2014-12-22 08:16:24', 538821867)
32349
+ Fixture Delete (0.1ms) DELETE FROM "images"
32350
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 579229346)
32351
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 153115190)
32352
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32353
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 419883833, 624739301, 701625837)
32354
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 849405871, 624739301, 819504217)
32355
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 98413728, 245026679, 784085492)
32356
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:24', '2014-12-22 08:16:24', 779853880, 245026679, 431685987)
32357
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32358
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 624739301)
32359
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 245026679)
32360
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:24', '2014-12-22 08:16:24', 948421225)
32361
+  (1.0ms) commit transaction
32362
+  (0.1ms) begin transaction
32363
+ ----------------------------------------------------------------------------------
32364
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
32365
+ ----------------------------------------------------------------------------------
32366
+ Processing by Fogged::ResourcesController#show as HTML
32367
+ Parameters: {"id"=>"1234567890"}
32368
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
32369
+ Completed 404 Not Found in 1ms
32370
+  (0.1ms) rollback transaction
32371
+  (0.1ms) begin transaction
32372
+ --------------------------------------------------------------------
32373
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
32374
+ --------------------------------------------------------------------
32375
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32376
+ Processing by Fogged::ResourcesController#show as HTML
32377
+ Parameters: {"id"=>"591498715"}
32378
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32379
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
32380
+  (0.2ms) rollback transaction
32381
+  (0.2ms) begin transaction
32382
+ --------------------------------------------------------------
32383
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
32384
+ --------------------------------------------------------------
32385
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32386
+ Processing by Fogged::ResourcesController#show as HTML
32387
+ Parameters: {"id"=>"701625837"}
32388
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32389
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)
32390
+  (0.1ms) rollback transaction
32391
+  (0.0ms) begin transaction
32392
+ --------------------------------------------------------------------
32393
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
32394
+ --------------------------------------------------------------------
32395
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32396
+ Processing by Fogged::ResourcesController#show as HTML
32397
+ Parameters: {"id"=>"68463692"}
32398
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32399
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
32400
+  (0.2ms) rollback transaction
32401
+  (0.1ms) begin transaction
32402
+ ---------------------------------------------------
32403
+ Fogged::ResourceTest: test_resource_should_be_valid
32404
+ ---------------------------------------------------
32405
+  (0.1ms) SAVEPOINT active_record_1
32406
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c098d80903dc76b135b72ff8a5d79e3b' LIMIT 1
32407
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.691941"], ["extension", "txt"], ["name", "Test"], ["token", "c098d80903dc76b135b72ff8a5d79e3b"], ["updated_at", "2014-12-22 08:16:24.691941"], ["uploading", "f"]]
32408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32409
+  (0.9ms) rollback transaction
32410
+  (0.2ms) begin transaction
32411
+ ----------------------------------------------------------------------------
32412
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
32413
+ ----------------------------------------------------------------------------
32414
+  (0.1ms) SAVEPOINT active_record_1
32415
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aa59babe49709db27156aab2ead02e6b' LIMIT 1
32416
+ SQL (0.7ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.699110"], ["extension", "txt"], ["name", "Test"], ["token", "aa59babe49709db27156aab2ead02e6b"], ["updated_at", "2014-12-22 08:16:24.699110"], ["uploading", "f"]]
32417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32418
+  (0.1ms) SAVEPOINT active_record_1
32419
+ SQL (1.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
32420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32421
+  (0.6ms) rollback transaction
32422
+  (0.2ms) begin transaction
32423
+ -------------------------------------------------------------------------
32424
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
32425
+ -------------------------------------------------------------------------
32426
+  (0.2ms) SAVEPOINT active_record_1
32427
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fa973dfb936ce6dbdc76c9a83084f681' LIMIT 1
32428
+ SQL (0.6ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.710825"], ["extension", "txt"], ["name", "Test"], ["token", "fa973dfb936ce6dbdc76c9a83084f681"], ["updated_at", "2014-12-22 08:16:24.710825"], ["uploading", "f"]]
32429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32430
+  (1.0ms) rollback transaction
32431
+  (0.1ms) begin transaction
32432
+ -------------------------------------------------------------
32433
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
32434
+ -------------------------------------------------------------
32435
+  (0.1ms) SAVEPOINT active_record_1
32436
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e26a2dbc7efb953441fe136cb7c02f97' LIMIT 1
32437
+ SQL (0.7ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.718249"], ["extension", "txt"], ["name", "Test"], ["token", "e26a2dbc7efb953441fe136cb7c02f97"], ["updated_at", "2014-12-22 08:16:24.718249"], ["uploading", "f"]]
32438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32439
+  (0.4ms) rollback transaction
32440
+  (0.1ms) begin transaction
32441
+ ------------------------------------------------------
32442
+ Fogged::ResourceTest: test_resource_should_have_an_url
32443
+ ------------------------------------------------------
32444
+  (0.0ms) SAVEPOINT active_record_1
32445
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c6eef367bbc073c40ea0d5be18c69242' LIMIT 1
32446
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:24.723386"], ["extension", "txt"], ["name", "Test"], ["token", "c6eef367bbc073c40ea0d5be18c69242"], ["updated_at", "2014-12-22 08:16:24.723386"], ["uploading", "f"]]
32447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32448
+  (0.4ms) rollback transaction
32449
+  (0.1ms) begin transaction
32450
+ ----------------------------------------------------------------------------
32451
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
32452
+ ----------------------------------------------------------------------------
32453
+  (0.0ms) SAVEPOINT active_record_1
32454
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32455
+  (0.0ms) rollback transaction
32456
+  (0.0ms) begin transaction
32457
+ -------------------------------------------------------------------------
32458
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
32459
+ -------------------------------------------------------------------------
32460
+  (0.0ms) SAVEPOINT active_record_1
32461
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32462
+  (0.2ms) rollback transaction
32463
+  (0.2ms) begin transaction
32464
+ --------------------------------------------------------
32465
+ Fogged::ResourceTest: test_should_process_resource_image
32466
+ --------------------------------------------------------
32467
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32468
+  (0.1ms) SAVEPOINT active_record_1
32469
+ SQL (0.6ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:16:24.734604"], ["width", 800]]
32470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32471
+  (0.5ms) rollback transaction
32472
+  (0.1ms) begin transaction
32473
+ --------------------------------------------------------
32474
+ Fogged::ResourceTest: test_should_process_resource_video
32475
+ --------------------------------------------------------
32476
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32477
+  (0.2ms) rollback transaction
32478
+  (0.1ms) begin transaction
32479
+ ------------------------------------------------------------------------------
32480
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
32481
+ ------------------------------------------------------------------------------
32482
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32483
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32484
+  (0.1ms) begin transaction
32485
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:16:24.842853"]]
32486
+  (0.6ms) commit transaction
32487
+  (0.1ms) begin transaction
32488
+ SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:24.859242"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:16:24.858845"], ["updated_at", "2014-12-22 08:16:24.859242"]]
32489
+  (0.7ms) commit transaction
32490
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32491
+  (0.4ms) begin transaction
32492
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
32493
+ 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', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 517391740)
32494
+ 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', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 701625837)
32495
+ 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', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 819504217)
32496
+ 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', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 132093124)
32497
+ 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', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 431685987)
32498
+ 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', '1234567890mov', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 68463692)
32499
+ 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', '1234567890png', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 591498715)
32500
+ 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, '2014-12-22 08:16:25', '2014-12-22 08:16:25', 538821867)
32501
+ Fixture Delete (0.1ms) DELETE FROM "images"
32502
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 579229346)
32503
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 153115190)
32504
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32505
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 419883833, 624739301, 701625837)
32506
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 849405871, 624739301, 819504217)
32507
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 98413728, 245026679, 784085492)
32508
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:16:25', '2014-12-22 08:16:25', 779853880, 245026679, 431685987)
32509
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32510
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 624739301)
32511
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 245026679)
32512
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:16:25', '2014-12-22 08:16:25', 948421225)
32513
+  (0.9ms) commit transaction
32514
+  (0.1ms) begin transaction
32515
+ ----------------------
32516
+ FoggedTest: test_truth
32517
+ ----------------------
32518
+  (0.0ms) rollback transaction
32519
+  (0.0ms) begin transaction
32520
+ -------------------------------------------------------------
32521
+ ImageTest: test_should_not_save_image_with_uploading_resource
32522
+ -------------------------------------------------------------
32523
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32524
+  (0.1ms) SAVEPOINT active_record_1
32525
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:16:25.061803"], ["uploading", "t"]]
32526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32527
+  (0.0ms) SAVEPOINT active_record_1
32528
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32529
+  (0.7ms) rollback transaction
32530
+  (0.2ms) begin transaction
32531
+ --------------------------------------------------------
32532
+ ImageTest: test_should_save_image_with_uploaded_resource
32533
+ --------------------------------------------------------
32534
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
32535
+  (0.1ms) SAVEPOINT active_record_1
32536
+ SQL (1.5ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:25.070919"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:16:25.070919"]]
32537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32538
+  (0.7ms) rollback transaction
32539
+  (0.2ms) begin transaction
32540
+ --------------------------------------------------
32541
+ ImageTest: test_should_save_image_without_resource
32542
+ --------------------------------------------------
32543
+  (0.1ms) SAVEPOINT active_record_1
32544
+ SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:16:25.077552"], ["name", "test"], ["updated_at", "2014-12-22 08:16:25.077552"]]
32545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32546
+  (0.4ms) rollback transaction
32547
+  (0.3ms) begin transaction
32548
+ ------------------------------------------------------------------------
32549
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
32550
+ ------------------------------------------------------------------------
32551
+ Movie Load (0.4ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32552
+ Processing by Fogged::ResourcesController#index as HTML
32553
+ Parameters: {"type"=>"movie"}
32554
+ Movie Load (0.7ms) SELECT "movies".* FROM "movies"
32555
+ Fogged::Resource Load (0.4ms) 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]]
32556
+ 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", 624739301]]
32557
+ 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]]
32558
+ Completed 200 OK in 27ms (Views: 1.6ms | ActiveRecord: 1.5ms)
32559
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies"
32560
+ 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]]
32561
+ 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]]
32562
+ 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]]
32563
+  (0.1ms) rollback transaction
32564
+  (0.0ms) begin transaction
32565
+ ---------------------------------------------------------------------
32566
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
32567
+ ---------------------------------------------------------------------
32568
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32569
+ Processing by Fogged::ResourcesController#index as HTML
32570
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
32571
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
32572
+ 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]]
32573
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
32574
+ 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]]
32575
+  (0.1ms) rollback transaction
32576
+  (0.0ms) begin transaction
32577
+ -----------------------------------------------------------------------------------------------
32578
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
32579
+ -----------------------------------------------------------------------------------------------
32580
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32581
+  (0.1ms) SAVEPOINT active_record_1
32582
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e7dd5fd7d5f5313051ad024cc285aa81' LIMIT 1
32583
+ SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:16:25.130168"], ["extension", "txt"], ["name", "footest barish"], ["token", "e7dd5fd7d5f5313051ad024cc285aa81"], ["updated_at", "2014-12-22 08:16:25.130168"]]
32584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32585
+  (0.2ms) SAVEPOINT active_record_1
32586
+ SQL (0.5ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:16:25.136642"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:16:25.136642"]]
32587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32588
+ Processing by Fogged::ResourcesController#index as HTML
32589
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
32590
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
32591
+ 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]]
32592
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
32593
+  (1.4ms) rollback transaction
32594
+  (0.2ms) begin transaction
32595
+ --------------------------------------------------------------------
32596
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
32597
+ --------------------------------------------------------------------
32598
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32599
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
32600
+ 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]]
32601
+ 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]]
32602
+ Processing by Fogged::ResourcesController#index as HTML
32603
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
32604
+ Movie Load (0.5ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
32605
+ 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]]
32606
+ 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]]
32607
+ Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 0.9ms)
32608
+  (0.4ms) rollback transaction
32609
+  (0.2ms) begin transaction
32610
+ -------------------------------------------------------------------------------
32611
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
32612
+ -------------------------------------------------------------------------------
32613
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32614
+ Processing by Fogged::ResourcesController#index as HTML
32615
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
32616
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
32617
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
32618
+  (0.1ms) rollback transaction
32619
+  (0.1ms) begin transaction
32620
+ --------------------------------------------------------------------------------------
32621
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
32622
+ --------------------------------------------------------------------------------------
32623
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32624
+ Processing by Fogged::ResourcesController#update as HTML
32625
+ Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
32626
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
32627
+ Completed 404 Not Found in 1ms
32628
+  (0.1ms) rollback transaction
32629
+  (0.1ms) begin transaction
32630
+ ------------------------------------------------------------------
32631
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
32632
+ ------------------------------------------------------------------
32633
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32634
+ Processing by Fogged::ResourcesController#update as HTML
32635
+ Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
32636
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32637
+  (0.1ms) SAVEPOINT active_record_1
32638
+ SQL (0.7ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:16:25.184297"]]
32639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32640
+ Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 1.0ms)
32641
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32642
+  (0.4ms) rollback transaction
32643
+  (0.1ms) begin transaction
32644
+ -------------------------------------------------------
32645
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
32646
+ -------------------------------------------------------
32647
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32648
+  (0.1ms) rollback transaction
32649
+  (0.1ms) begin transaction
32650
+ ------------------------------------------------------------------
32651
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
32652
+ ------------------------------------------------------------------
32653
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32654
+ Processing by Fogged::ResourcesController#create as HTML
32655
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
32656
+  (0.2ms) SAVEPOINT active_record_1
32657
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '92e359227fbc7ded0857e3268dbf9ef4' LIMIT 1
32658
+ SQL (0.6ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:16:25.202238"], ["extension", "png"], ["name", "Dummy"], ["token", "92e359227fbc7ded0857e3268dbf9ef4"], ["updated_at", "2014-12-22 08:16:25.202238"], ["uploading", "t"]]
32659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32660
+ Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.2ms)
32661
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32662
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
32663
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
32664
+  (1.1ms) rollback transaction
32665
+  (0.1ms) begin transaction
32666
+ --------------------------------------------------------------------------------------------
32667
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
32668
+ --------------------------------------------------------------------------------------------
32669
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32670
+ Processing by Fogged::ResourcesController#create as HTML
32671
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
32672
+  (0.2ms) SAVEPOINT active_record_1
32673
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32674
+ Completed 422 Unprocessable Entity in 5ms
32675
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32676
+  (0.1ms) rollback transaction
32677
+  (0.1ms) begin transaction
32678
+ -------------------------------------------------------------------------------------------
32679
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
32680
+ -------------------------------------------------------------------------------------------
32681
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
32682
+ Processing by Fogged::ResourcesController#create as HTML
32683
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
32684
+ Completed 400 Bad Request in 1ms
32685
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32686
+  (0.1ms) rollback transaction
32687
+  (0.0ms) begin transaction
32688
+ ---------------------------------------------------------------------------------------
32689
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
32690
+ ---------------------------------------------------------------------------------------
32691
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32692
+ Processing by Fogged::ResourcesController#create as HTML
32693
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
32694
+ Completed 400 Bad Request in 0ms
32695
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32696
+  (0.2ms) rollback transaction
32697
+  (0.2ms) begin transaction
32698
+ -----------------------------------------------------------------------------------
32699
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
32700
+ -----------------------------------------------------------------------------------
32701
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32702
+ Processing by Fogged::ResourcesController#create as HTML
32703
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
32704
+ Completed 400 Bad Request in 1ms
32705
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
32706
+  (0.1ms) rollback transaction
32707
+  (0.1ms) begin transaction
32708
+ -------------------------------------------------------------------------------------------------
32709
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
32710
+ -------------------------------------------------------------------------------------------------
32711
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
32712
+ Processing by Fogged::ResourcesController#create as HTML
32713
+ Completed 400 Bad Request in 0ms
32714
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
32715
+  (0.1ms) rollback transaction
32716
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32717
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32718
+  (0.1ms) begin transaction
32719
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
32720
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 517391740)
32721
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 701625837)
32722
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 819504217)
32723
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 132093124)
32724
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 431685987)
32725
+ 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', '1234567890mov', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 68463692)
32726
+ 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', '1234567890png', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 591498715)
32727
+ 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, '2014-12-22 08:18:25', '2014-12-22 08:18:25', 538821867)
32728
+ Fixture Delete (0.1ms) DELETE FROM "images"
32729
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 579229346)
32730
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 153115190)
32731
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32732
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 419883833, 624739301, 701625837)
32733
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 849405871, 624739301, 819504217)
32734
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 98413728, 245026679, 784085492)
32735
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 779853880, 245026679, 431685987)
32736
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32737
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 624739301)
32738
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 245026679)
32739
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 948421225)
32740
+  (5.3ms) commit transaction
32741
+  (0.1ms) begin transaction
32742
+ ---------------------------------------------------
32743
+ Fogged::ResourceTest: test_resource_should_be_valid
32744
+ ---------------------------------------------------
32745
+  (0.1ms) SAVEPOINT active_record_1
32746
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5e8f8f4ed993a379fb0ce332d38dfeef' LIMIT 1
32747
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.259474"], ["extension", "txt"], ["name", "Test"], ["token", "5e8f8f4ed993a379fb0ce332d38dfeef"], ["updated_at", "2014-12-22 08:18:25.259474"], ["uploading", "f"]]
32748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32749
+  (0.5ms) rollback transaction
32750
+  (0.1ms) begin transaction
32751
+ ----------------------------------------------------------------------------
32752
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
32753
+ ----------------------------------------------------------------------------
32754
+  (0.1ms) SAVEPOINT active_record_1
32755
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8af0db50ca23e1e543832092d13e2a8d' LIMIT 1
32756
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.264469"], ["extension", "txt"], ["name", "Test"], ["token", "8af0db50ca23e1e543832092d13e2a8d"], ["updated_at", "2014-12-22 08:18:25.264469"], ["uploading", "f"]]
32757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32758
+  (0.1ms) SAVEPOINT active_record_1
32759
+ SQL (1.4ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
32760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32761
+  (0.7ms) rollback transaction
32762
+  (0.1ms) begin transaction
32763
+ -------------------------------------------------------------------------
32764
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
32765
+ -------------------------------------------------------------------------
32766
+  (0.0ms) SAVEPOINT active_record_1
32767
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b74953472442e43feb2c405e7e36d18a' LIMIT 1
32768
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.313579"], ["extension", "txt"], ["name", "Test"], ["token", "b74953472442e43feb2c405e7e36d18a"], ["updated_at", "2014-12-22 08:18:25.313579"], ["uploading", "f"]]
32769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32770
+  (0.5ms) rollback transaction
32771
+  (0.1ms) begin transaction
32772
+ -------------------------------------------------------------
32773
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
32774
+ -------------------------------------------------------------
32775
+  (0.1ms) SAVEPOINT active_record_1
32776
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0d690706dafc58bfea84225d6458715a' LIMIT 1
32777
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.317533"], ["extension", "txt"], ["name", "Test"], ["token", "0d690706dafc58bfea84225d6458715a"], ["updated_at", "2014-12-22 08:18:25.317533"], ["uploading", "f"]]
32778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32779
+  (0.6ms) rollback transaction
32780
+  (0.1ms) begin transaction
32781
+ ------------------------------------------------------
32782
+ Fogged::ResourceTest: test_resource_should_have_an_url
32783
+ ------------------------------------------------------
32784
+  (0.1ms) SAVEPOINT active_record_1
32785
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c293d263f0ab3741f408849447553258' LIMIT 1
32786
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.385711"], ["extension", "txt"], ["name", "Test"], ["token", "c293d263f0ab3741f408849447553258"], ["updated_at", "2014-12-22 08:18:25.385711"], ["uploading", "f"]]
32787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32788
+  (0.5ms) rollback transaction
32789
+  (0.1ms) begin transaction
32790
+ ----------------------------------------------------------------------------
32791
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
32792
+ ----------------------------------------------------------------------------
32793
+  (0.0ms) SAVEPOINT active_record_1
32794
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32795
+  (0.1ms) rollback transaction
32796
+  (0.1ms) begin transaction
32797
+ -------------------------------------------------------------------------
32798
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
32799
+ -------------------------------------------------------------------------
32800
+  (0.1ms) SAVEPOINT active_record_1
32801
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32802
+  (0.1ms) rollback transaction
32803
+  (0.1ms) begin transaction
32804
+ --------------------------------------------------------
32805
+ Fogged::ResourceTest: test_should_process_resource_image
32806
+ --------------------------------------------------------
32807
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
32808
+  (0.1ms) SAVEPOINT active_record_1
32809
+ SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:18:25.404042"], ["width", 800]]
32810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32811
+  (0.4ms) rollback transaction
32812
+  (0.1ms) begin transaction
32813
+ --------------------------------------------------------
32814
+ Fogged::ResourceTest: test_should_process_resource_video
32815
+ --------------------------------------------------------
32816
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32817
+  (0.1ms) rollback transaction
32818
+  (0.0ms) begin transaction
32819
+ ------------------------------------------------------------------------------
32820
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
32821
+ ------------------------------------------------------------------------------
32822
+ Fogged::Resource Load (1.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
32823
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32824
+  (0.1ms) begin transaction
32825
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:25.545553"]]
32826
+  (1.0ms) commit transaction
32827
+  (0.2ms) begin transaction
32828
+ SQL (0.9ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:25.579827"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:25.579220"], ["updated_at", "2014-12-22 08:18:25.579827"]]
32829
+  (1.4ms) commit transaction
32830
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs"
32831
+  (0.5ms) begin transaction
32832
+ Fixture Delete (0.4ms) DELETE FROM "fogged_resources"
32833
+ Fixture Insert (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 517391740)
32834
+ 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 1', 'qwertzuiop1', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 701625837)
32835
+ Fixture Insert (0.8ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 819504217)
32836
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 132093124)
32837
+ 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', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 431685987)
32838
+ 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', '1234567890mov', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 68463692)
32839
+ 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', '1234567890png', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 591498715)
32840
+ 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, '2014-12-22 08:18:25', '2014-12-22 08:18:25', 538821867)
32841
+ Fixture Delete (0.1ms) DELETE FROM "images"
32842
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 579229346)
32843
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 153115190)
32844
+ Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources"
32845
+ Fixture Insert (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 419883833, 624739301, 701625837)
32846
+ Fixture Insert (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 849405871, 624739301, 819504217)
32847
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 98413728, 245026679, 784085492)
32848
+ Fixture Insert (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:25', '2014-12-22 08:18:25', 779853880, 245026679, 431685987)
32849
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32850
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 624739301)
32851
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 245026679)
32852
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:25', '2014-12-22 08:18:25', 948421225)
32853
+  (1.4ms) commit transaction
32854
+  (0.2ms) begin transaction
32855
+ ------------------------------------------------------------------------
32856
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
32857
+ ------------------------------------------------------------------------
32858
+ Movie Load (0.5ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32859
+ Processing by Fogged::ResourcesController#index as HTML
32860
+ Parameters: {"type"=>"movie"}
32861
+ Movie Load (0.4ms) SELECT "movies".* FROM "movies"
32862
+ Fogged::Resource Load (0.4ms) 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]]
32863
+ 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]]
32864
+ 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]]
32865
+ Completed 200 OK in 55ms (Views: 2.4ms | ActiveRecord: 0.9ms)
32866
+ Movie Load (0.4ms) SELECT "movies".* FROM "movies"
32867
+ 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]]
32868
+ 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", 624739301]]
32869
+ 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]]
32870
+  (0.1ms) rollback transaction
32871
+  (0.1ms) begin transaction
32872
+ ---------------------------------------------------------------------
32873
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
32874
+ ---------------------------------------------------------------------
32875
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32876
+ Processing by Fogged::ResourcesController#index as HTML
32877
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
32878
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
32879
+ 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]]
32880
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.3ms)
32881
+ 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", 624739301]]
32882
+  (0.1ms) rollback transaction
32883
+  (0.0ms) begin transaction
32884
+ -----------------------------------------------------------------------------------------------
32885
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
32886
+ -----------------------------------------------------------------------------------------------
32887
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32888
+  (0.0ms) SAVEPOINT active_record_1
32889
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5617162e72cfbe75fba53346eacba380' LIMIT 1
32890
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:18:25.891481"], ["extension", "txt"], ["name", "footest barish"], ["token", "5617162e72cfbe75fba53346eacba380"], ["updated_at", "2014-12-22 08:18:25.891481"]]
32891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32892
+  (0.1ms) SAVEPOINT active_record_1
32893
+ SQL (0.6ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:25.904779"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:18:25.904779"]]
32894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32895
+ Processing by Fogged::ResourcesController#index as HTML
32896
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
32897
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
32898
+ 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]]
32899
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)
32900
+  (1.1ms) rollback transaction
32901
+  (0.1ms) begin transaction
32902
+ --------------------------------------------------------------------
32903
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
32904
+ --------------------------------------------------------------------
32905
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32906
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
32907
+ 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]]
32908
+ 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]]
32909
+ Processing by Fogged::ResourcesController#index as HTML
32910
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
32911
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
32912
+ 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]]
32913
+ 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]]
32914
+ Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.4ms)
32915
+  (0.1ms) rollback transaction
32916
+  (0.1ms) begin transaction
32917
+ -------------------------------------------------------------------------------
32918
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
32919
+ -------------------------------------------------------------------------------
32920
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
32921
+ Processing by Fogged::ResourcesController#index as HTML
32922
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
32923
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
32924
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.3ms)
32925
+  (0.2ms) rollback transaction
32926
+  (0.1ms) begin transaction
32927
+ -----------------------------------------------------------------------------------
32928
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
32929
+ -----------------------------------------------------------------------------------
32930
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32931
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32932
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32933
+  (0.1ms) begin transaction
32934
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:18:26.112453"]]
32935
+  (1.2ms) commit transaction
32936
+  (0.1ms) begin transaction
32937
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:26.131612"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:18:25.000000000 Z\n updated_at: 2014-12-22 08:18:26.112453000 Z\n"], ["run_at", "2014-12-22 08:18:36.116918"], ["updated_at", "2014-12-22 08:18:26.131612"]]
32938
+  (1.3ms) commit transaction
32939
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"
32940
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32941
+  (0.6ms) begin transaction
32942
+ --------------------------------------------------------------------------------
32943
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
32944
+ --------------------------------------------------------------------------------
32945
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32946
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32947
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32948
+  (0.1ms) begin transaction
32949
+ SQL (0.5ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:18:26.397963"], ["width", 800]]
32950
+  (0.7ms) commit transaction
32951
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
32952
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32953
+  (0.3ms) begin transaction
32954
+ --------------------------------------------------------------------------------
32955
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
32956
+ --------------------------------------------------------------------------------
32957
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32958
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32959
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32960
+  (0.6ms) begin transaction
32961
+ --------------------------------------------------------------------------------
32962
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
32963
+ --------------------------------------------------------------------------------
32964
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32965
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
32966
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32967
+  (0.1ms) begin transaction
32968
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:18:26.924180"]]
32969
+  (4.8ms) commit transaction
32970
+  (0.2ms) begin transaction
32971
+ SQL (0.8ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:26.959818"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:18:25.000000000 Z\n updated_at: 2014-12-22 08:18:26.924180000 Z\n"], ["run_at", "2014-12-22 08:18:36.931730"], ["updated_at", "2014-12-22 08:18:26.959818"]]
32972
+  (1.8ms) commit transaction
32973
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"
32974
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
32975
+  (0.6ms) begin transaction
32976
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
32977
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 517391740)
32978
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 701625837)
32979
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 819504217)
32980
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 132093124)
32981
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 431685987)
32982
+ 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', '1234567890mov', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 68463692)
32983
+ 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', '1234567890png', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 591498715)
32984
+ 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, '2014-12-22 08:18:27', '2014-12-22 08:18:27', 538821867)
32985
+ Fixture Delete (0.1ms) DELETE FROM "images"
32986
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 579229346)
32987
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 153115190)
32988
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
32989
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 419883833, 624739301, 701625837)
32990
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 849405871, 624739301, 819504217)
32991
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 98413728, 245026679, 784085492)
32992
+ Fixture Insert (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 779853880, 245026679, 431685987)
32993
+ Fixture Delete (0.1ms) DELETE FROM "movies"
32994
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 624739301)
32995
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 245026679)
32996
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 948421225)
32997
+  (0.9ms) commit transaction
32998
+  (0.1ms) begin transaction
32999
+ -------------------------------------------------------------
33000
+ ImageTest: test_should_not_save_image_with_uploading_resource
33001
+ -------------------------------------------------------------
33002
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33003
+  (0.0ms) SAVEPOINT active_record_1
33004
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:18:27.169958"], ["uploading", "t"]]
33005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33006
+  (0.0ms) SAVEPOINT active_record_1
33007
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33008
+  (0.9ms) rollback transaction
33009
+  (0.2ms) begin transaction
33010
+ --------------------------------------------------------
33011
+ ImageTest: test_should_save_image_with_uploaded_resource
33012
+ --------------------------------------------------------
33013
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33014
+  (0.1ms) SAVEPOINT active_record_1
33015
+ SQL (0.7ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.180749"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:18:27.180749"]]
33016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33017
+  (1.0ms) rollback transaction
33018
+  (0.2ms) begin transaction
33019
+ --------------------------------------------------
33020
+ ImageTest: test_should_save_image_without_resource
33021
+ --------------------------------------------------
33022
+  (0.1ms) SAVEPOINT active_record_1
33023
+ SQL (0.6ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:18:27.187360"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.187360"]]
33024
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33025
+  (1.1ms) rollback transaction
33026
+  (0.2ms) begin transaction
33027
+ --------------------------------------------------------------------------------------
33028
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
33029
+ --------------------------------------------------------------------------------------
33030
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33031
+ Processing by Fogged::ResourcesController#update as HTML
33032
+ Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
33033
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
33034
+ Completed 404 Not Found in 2ms
33035
+  (0.3ms) rollback transaction
33036
+  (0.2ms) begin transaction
33037
+ ------------------------------------------------------------------
33038
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
33039
+ ------------------------------------------------------------------
33040
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33041
+ Processing by Fogged::ResourcesController#update as HTML
33042
+ Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
33043
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33044
+  (0.3ms) SAVEPOINT active_record_1
33045
+ SQL (0.5ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:18:27.216025"]]
33046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33047
+ Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.0ms)
33048
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33049
+  (0.8ms) rollback transaction
33050
+  (0.1ms) begin transaction
33051
+ --------------------------------------------------------------------
33052
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
33053
+ --------------------------------------------------------------------
33054
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33055
+  (0.5ms) SELECT COUNT(*) FROM "fogged_resources"
33056
+ Processing by Fogged::ResourcesController#destroy as HTML
33057
+ Parameters: {"id"=>"591498715"}
33058
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33059
+  (0.2ms) SAVEPOINT active_record_1
33060
+ SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
33061
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33062
+ Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)
33063
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33064
+  (0.7ms) rollback transaction
33065
+  (0.1ms) begin transaction
33066
+ ----------------------------------------------------------------------------------------
33067
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
33068
+ ----------------------------------------------------------------------------------------
33069
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33070
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33071
+ Processing by Fogged::ResourcesController#destroy as HTML
33072
+ Parameters: {"id"=>"123456"}
33073
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
33074
+ Completed 404 Not Found in 1ms
33075
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33076
+  (0.1ms) rollback transaction
33077
+  (0.0ms) begin transaction
33078
+ ------------------------------------------------------------------
33079
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
33080
+ ------------------------------------------------------------------
33081
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33082
+ Processing by Fogged::ResourcesController#create as HTML
33083
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
33084
+  (0.1ms) SAVEPOINT active_record_1
33085
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a6abfb9b36f00ab0182700faad04ab49' LIMIT 1
33086
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:18:27.250650"], ["extension", "png"], ["name", "Dummy"], ["token", "a6abfb9b36f00ab0182700faad04ab49"], ["updated_at", "2014-12-22 08:18:27.250650"], ["uploading", "t"]]
33087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33088
+ Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.6ms)
33089
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33090
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
33091
+ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
33092
+  (0.8ms) rollback transaction
33093
+  (0.2ms) begin transaction
33094
+ --------------------------------------------------------------------------------------------
33095
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
33096
+ --------------------------------------------------------------------------------------------
33097
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
33098
+ Processing by Fogged::ResourcesController#create as HTML
33099
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
33100
+  (0.2ms) SAVEPOINT active_record_1
33101
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33102
+ Completed 422 Unprocessable Entity in 6ms
33103
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
33104
+  (0.2ms) rollback transaction
33105
+  (0.1ms) begin transaction
33106
+ -------------------------------------------------------------------------------------------
33107
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
33108
+ -------------------------------------------------------------------------------------------
33109
+  (0.4ms) SELECT COUNT(*) FROM "fogged_resources"
33110
+ Processing by Fogged::ResourcesController#create as HTML
33111
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
33112
+ Completed 400 Bad Request in 1ms
33113
+  (0.6ms) SELECT COUNT(*) FROM "fogged_resources"
33114
+  (0.3ms) rollback transaction
33115
+  (0.3ms) begin transaction
33116
+ ---------------------------------------------------------------------------------------
33117
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
33118
+ ---------------------------------------------------------------------------------------
33119
+  (0.4ms) SELECT COUNT(*) FROM "fogged_resources"
33120
+ Processing by Fogged::ResourcesController#create as HTML
33121
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
33122
+ Completed 400 Bad Request in 1ms
33123
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
33124
+  (0.2ms) rollback transaction
33125
+  (0.1ms) begin transaction
33126
+ -----------------------------------------------------------------------------------
33127
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
33128
+ -----------------------------------------------------------------------------------
33129
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33130
+ Processing by Fogged::ResourcesController#create as HTML
33131
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
33132
+ Completed 400 Bad Request in 0ms
33133
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33134
+  (0.1ms) rollback transaction
33135
+  (0.1ms) begin transaction
33136
+ -------------------------------------------------------------------------------------------------
33137
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
33138
+ -------------------------------------------------------------------------------------------------
33139
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
33140
+ Processing by Fogged::ResourcesController#create as HTML
33141
+ Completed 400 Bad Request in 0ms
33142
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33143
+  (0.1ms) rollback transaction
33144
+  (0.1ms) begin transaction
33145
+ -------------------------------------------------------
33146
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
33147
+ -------------------------------------------------------
33148
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33149
+  (0.1ms) rollback transaction
33150
+  (0.1ms) begin transaction
33151
+ ----------------------------------------------------------------
33152
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
33153
+ ----------------------------------------------------------------
33154
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33155
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33156
+  (0.1ms) begin transaction
33157
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:27.411968"]]
33158
+  (0.8ms) commit transaction
33159
+  (0.1ms) begin transaction
33160
+ SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.429351"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:27.429071"], ["updated_at", "2014-12-22 08:18:27.429351"]]
33161
+  (0.7ms) commit transaction
33162
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33163
+  (0.7ms) begin transaction
33164
+ --------------------------------------------------------------------
33165
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
33166
+ --------------------------------------------------------------------
33167
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33168
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33169
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33170
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33171
+  (0.5ms) begin transaction
33172
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
33173
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 517391740)
33174
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 701625837)
33175
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 819504217)
33176
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 132093124)
33177
+ 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', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 431685987)
33178
+ 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', '1234567890mov', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 68463692)
33179
+ 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', '1234567890png', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 591498715)
33180
+ 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, '2014-12-22 08:18:27', '2014-12-22 08:18:27', 538821867)
33181
+ Fixture Delete (0.1ms) DELETE FROM "images"
33182
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 579229346)
33183
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 153115190)
33184
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33185
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 419883833, 624739301, 701625837)
33186
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 849405871, 624739301, 819504217)
33187
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 98413728, 245026679, 784085492)
33188
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:27', '2014-12-22 08:18:27', 779853880, 245026679, 431685987)
33189
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33190
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 624739301)
33191
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 245026679)
33192
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:27', '2014-12-22 08:18:27', 948421225)
33193
+  (5.1ms) commit transaction
33194
+  (0.1ms) begin transaction
33195
+ ----------------------
33196
+ FoggedTest: test_truth
33197
+ ----------------------
33198
+  (0.0ms) rollback transaction
33199
+  (0.1ms) begin transaction
33200
+ -------------------------------------------------------------
33201
+ MovieTest: test_should_not_save_movie_with_uploading_resource
33202
+ -------------------------------------------------------------
33203
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33204
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33205
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
33206
+  (0.3ms) SAVEPOINT active_record_1
33207
+ SQL (0.5ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:18:27.881881"], ["uploading", "t"]]
33208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33209
+  (0.1ms) SAVEPOINT active_record_1
33210
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33211
+  (0.7ms) rollback transaction
33212
+  (0.2ms) begin transaction
33213
+ ---------------------------------------------------
33214
+ MovieTest: test_should_save_movie_with_no_resources
33215
+ ---------------------------------------------------
33216
+  (0.2ms) SAVEPOINT active_record_1
33217
+ SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:18:27.891893"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.891893"]]
33218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33219
+  (1.1ms) rollback transaction
33220
+  (0.1ms) begin transaction
33221
+ --------------------------------------------------------
33222
+ MovieTest: test_should_save_movie_with_several_resources
33223
+ --------------------------------------------------------
33224
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33225
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33226
+  (0.2ms) SAVEPOINT active_record_1
33227
+ SQL (0.7ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:18:27.904623"], ["name", "test"], ["updated_at", "2014-12-22 08:18:27.904623"]]
33228
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.908399"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:18:27.908399"]]
33229
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:27.911349"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:18:27.911349"]]
33230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33231
+  (0.8ms) rollback transaction
33232
+  (0.2ms) begin transaction
33233
+ --------------------------------------------------------------------
33234
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
33235
+ --------------------------------------------------------------------
33236
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33237
+ Processing by Fogged::ResourcesController#confirm as HTML
33238
+ Parameters: {"id"=>"591498715"}
33239
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33240
+  (0.1ms) SAVEPOINT active_record_1
33241
+ SQL (1.1ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:18:27.926629"], ["width", 800]]
33242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33243
+  (0.1ms) SAVEPOINT active_record_1
33244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33245
+ Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.8ms)
33246
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33247
+  (0.6ms) rollback transaction
33248
+  (0.1ms) begin transaction
33249
+ ------------------------------------------------------------------------------------------------
33250
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
33251
+ ------------------------------------------------------------------------------------------------
33252
+ Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33253
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33254
+ Processing by Fogged::ResourcesController#confirm as HTML
33255
+ Parameters: {"id"=>"68463692"}
33256
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33257
+  (0.1ms) begin transaction
33258
+ SQL (1.0ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:18:28.058584"]]
33259
+  (1.3ms) commit transaction
33260
+  (0.1ms) begin transaction
33261
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:18:28.082635"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:18:28.082364"], ["updated_at", "2014-12-22 08:18:28.082635"]]
33262
+  (0.8ms) commit transaction
33263
+  (0.1ms) begin transaction
33264
+  (0.1ms) commit transaction
33265
+ Completed 200 OK in 34ms (Views: 2.8ms | ActiveRecord: 4.7ms)
33266
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs"
33267
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33268
+  (0.6ms) begin transaction
33269
+ ----------------------------------------------------------------------------------------
33270
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
33271
+ ----------------------------------------------------------------------------------------
33272
+ Processing by Fogged::ResourcesController#confirm as HTML
33273
+ Parameters: {"id"=>"123456"}
33274
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
33275
+ Completed 404 Not Found in 1ms
33276
+  (0.1ms) rollback transaction
33277
+  (0.1ms) begin transaction
33278
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
33279
+ 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', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 517391740)
33280
+ 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', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 701625837)
33281
+ 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', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 819504217)
33282
+ 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', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 132093124)
33283
+ 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', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 431685987)
33284
+ 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', '1234567890mov', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 68463692)
33285
+ 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', '1234567890png', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 591498715)
33286
+ 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, '2014-12-22 08:18:28', '2014-12-22 08:18:28', 538821867)
33287
+ Fixture Delete (0.1ms) DELETE FROM "images"
33288
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 579229346)
33289
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 153115190)
33290
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33291
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 419883833, 624739301, 701625837)
33292
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 849405871, 624739301, 819504217)
33293
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 98413728, 245026679, 784085492)
33294
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:18:28', '2014-12-22 08:18:28', 779853880, 245026679, 431685987)
33295
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33296
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 624739301)
33297
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 245026679)
33298
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:18:28', '2014-12-22 08:18:28', 948421225)
33299
+  (0.9ms) commit transaction
33300
+  (0.1ms) begin transaction
33301
+ ----------------------------------------------------------------------------------
33302
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
33303
+ ----------------------------------------------------------------------------------
33304
+ Processing by Fogged::ResourcesController#show as HTML
33305
+ Parameters: {"id"=>"1234567890"}
33306
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
33307
+ Completed 404 Not Found in 1ms
33308
+  (0.1ms) rollback transaction
33309
+  (0.1ms) begin transaction
33310
+ --------------------------------------------------------------------
33311
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
33312
+ --------------------------------------------------------------------
33313
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33314
+ Processing by Fogged::ResourcesController#show as HTML
33315
+ Parameters: {"id"=>"591498715"}
33316
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33317
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
33318
+  (0.1ms) rollback transaction
33319
+  (0.0ms) begin transaction
33320
+ --------------------------------------------------------------
33321
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
33322
+ --------------------------------------------------------------
33323
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33324
+ Processing by Fogged::ResourcesController#show as HTML
33325
+ Parameters: {"id"=>"701625837"}
33326
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33327
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
33328
+  (0.1ms) rollback transaction
33329
+  (0.0ms) begin transaction
33330
+ --------------------------------------------------------------------
33331
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
33332
+ --------------------------------------------------------------------
33333
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33334
+ Processing by Fogged::ResourcesController#show as HTML
33335
+ Parameters: {"id"=>"68463692"}
33336
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33337
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
33338
+  (0.1ms) rollback transaction
33339
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33340
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33341
+  (0.1ms) begin transaction
33342
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
33343
+ 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', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 517391740)
33344
+ 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', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 701625837)
33345
+ 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', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 819504217)
33346
+ 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', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 132093124)
33347
+ 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', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 431685987)
33348
+ 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', '1234567890mov', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 68463692)
33349
+ 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', '1234567890png', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 591498715)
33350
+ 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, '2014-12-22 08:49:38', '2014-12-22 08:49:38', 538821867)
33351
+ Fixture Delete (0.1ms) DELETE FROM "images"
33352
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 579229346)
33353
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 153115190)
33354
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33355
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 419883833, 624739301, 701625837)
33356
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 849405871, 624739301, 819504217)
33357
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 98413728, 245026679, 784085492)
33358
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:38', '2014-12-22 08:49:38', 779853880, 245026679, 431685987)
33359
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33360
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 624739301)
33361
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 245026679)
33362
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:38', '2014-12-22 08:49:38', 948421225)
33363
+  (5.1ms) commit transaction
33364
+  (0.1ms) begin transaction
33365
+ ----------------------
33366
+ FoggedTest: test_truth
33367
+ ----------------------
33368
+  (0.1ms) rollback transaction
33369
+  (0.1ms) begin transaction
33370
+ ----------------------------------------------------------------
33371
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
33372
+ ----------------------------------------------------------------
33373
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33374
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
33375
+  (0.1ms) begin transaction
33376
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:38.655695"]]
33377
+  (0.8ms) commit transaction
33378
+  (0.1ms) begin transaction
33379
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:38.672132"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:38.671776"], ["updated_at", "2014-12-22 08:49:38.672132"]]
33380
+  (0.8ms) commit transaction
33381
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
33382
+  (0.5ms) begin transaction
33383
+ --------------------------------------------------------------------
33384
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
33385
+ --------------------------------------------------------------------
33386
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33387
+ Fogged::Resource Load (1.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33388
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33389
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33390
+  (0.4ms) begin transaction
33391
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
33392
+ Fixture Insert (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 517391740)
33393
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 701625837)
33394
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 819504217)
33395
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 132093124)
33396
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 431685987)
33397
+ 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', '1234567890mov', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 68463692)
33398
+ 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', '1234567890png', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 591498715)
33399
+ 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, '2014-12-22 08:49:39', '2014-12-22 08:49:39', 538821867)
33400
+ Fixture Delete (0.1ms) DELETE FROM "images"
33401
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 579229346)
33402
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 153115190)
33403
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33404
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 419883833, 624739301, 701625837)
33405
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 849405871, 624739301, 819504217)
33406
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 98413728, 245026679, 784085492)
33407
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 779853880, 245026679, 431685987)
33408
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33409
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 624739301)
33410
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 245026679)
33411
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 948421225)
33412
+  (5.3ms) commit transaction
33413
+  (0.1ms) begin transaction
33414
+ ------------------------------------------------------------------------
33415
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
33416
+ ------------------------------------------------------------------------
33417
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
33418
+ Processing by Fogged::ResourcesController#index as HTML
33419
+ Parameters: {"type"=>"movie"}
33420
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies"
33421
+ 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]]
33422
+ 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]]
33423
+ 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]]
33424
+ Completed 200 OK in 106ms (Views: 71.8ms | ActiveRecord: 0.6ms)
33425
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies"
33426
+ 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]]
33427
+ 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]]
33428
+ 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]]
33429
+  (0.2ms) rollback transaction
33430
+  (0.1ms) begin transaction
33431
+ ---------------------------------------------------------------------
33432
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
33433
+ ---------------------------------------------------------------------
33434
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
33435
+ Processing by Fogged::ResourcesController#index as HTML
33436
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
33437
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
33438
+ 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]]
33439
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.3ms)
33440
+ 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]]
33441
+  (0.1ms) rollback transaction
33442
+  (0.0ms) begin transaction
33443
+ -----------------------------------------------------------------------------------------------
33444
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
33445
+ -----------------------------------------------------------------------------------------------
33446
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
33447
+  (0.0ms) SAVEPOINT active_record_1
33448
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '71d857c8f9fbffbbef60538ce041e892' LIMIT 1
33449
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:39.286066"], ["extension", "txt"], ["name", "footest barish"], ["token", "71d857c8f9fbffbbef60538ce041e892"], ["updated_at", "2014-12-22 08:49:39.286066"]]
33450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33451
+  (0.0ms) SAVEPOINT active_record_1
33452
+ SQL (2.4ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.294367"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:49:39.294367"]]
33453
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33454
+ Processing by Fogged::ResourcesController#index as HTML
33455
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
33456
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
33457
+ 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]]
33458
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
33459
+  (1.2ms) rollback transaction
33460
+  (0.1ms) begin transaction
33461
+ --------------------------------------------------------------------
33462
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
33463
+ --------------------------------------------------------------------
33464
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
33465
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
33466
+ 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", 624739301]]
33467
+ 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]]
33468
+ Processing by Fogged::ResourcesController#index as HTML
33469
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
33470
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
33471
+ 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]]
33472
+ 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", 624739301]]
33473
+ Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 0.7ms)
33474
+  (0.2ms) rollback transaction
33475
+  (0.1ms) begin transaction
33476
+ -------------------------------------------------------------------------------
33477
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
33478
+ -------------------------------------------------------------------------------
33479
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
33480
+ Processing by Fogged::ResourcesController#index as HTML
33481
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
33482
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
33483
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
33484
+  (0.1ms) rollback transaction
33485
+  (0.1ms) begin transaction
33486
+ ----------------------------------------------------------------------------------
33487
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
33488
+ ----------------------------------------------------------------------------------
33489
+ Processing by Fogged::ResourcesController#show as HTML
33490
+ Parameters: {"id"=>"1234567890"}
33491
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
33492
+ Completed 404 Not Found in 1ms
33493
+  (0.1ms) rollback transaction
33494
+  (0.1ms) begin transaction
33495
+ --------------------------------------------------------------------
33496
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
33497
+ --------------------------------------------------------------------
33498
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33499
+ Processing by Fogged::ResourcesController#show as HTML
33500
+ Parameters: {"id"=>"591498715"}
33501
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33502
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
33503
+  (0.1ms) rollback transaction
33504
+  (0.1ms) begin transaction
33505
+ --------------------------------------------------------------
33506
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
33507
+ --------------------------------------------------------------
33508
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33509
+ Processing by Fogged::ResourcesController#show as HTML
33510
+ Parameters: {"id"=>"701625837"}
33511
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33512
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
33513
+  (0.1ms) rollback transaction
33514
+  (0.1ms) begin transaction
33515
+ --------------------------------------------------------------------
33516
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
33517
+ --------------------------------------------------------------------
33518
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33519
+ Processing by Fogged::ResourcesController#show as HTML
33520
+ Parameters: {"id"=>"68463692"}
33521
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33522
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
33523
+  (0.2ms) rollback transaction
33524
+  (0.2ms) begin transaction
33525
+ -------------------------------------------------------------
33526
+ ImageTest: test_should_not_save_image_with_uploading_resource
33527
+ -------------------------------------------------------------
33528
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33529
+  (0.1ms) SAVEPOINT active_record_1
33530
+ SQL (0.8ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:49:39.369427"], ["uploading", "t"]]
33531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33532
+  (0.0ms) SAVEPOINT active_record_1
33533
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33534
+  (0.5ms) rollback transaction
33535
+  (0.1ms) begin transaction
33536
+ --------------------------------------------------------
33537
+ ImageTest: test_should_save_image_with_uploaded_resource
33538
+ --------------------------------------------------------
33539
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33540
+  (0.1ms) SAVEPOINT active_record_1
33541
+ SQL (0.7ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.387387"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:49:39.387387"]]
33542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33543
+  (0.9ms) rollback transaction
33544
+  (0.2ms) begin transaction
33545
+ --------------------------------------------------
33546
+ ImageTest: test_should_save_image_without_resource
33547
+ --------------------------------------------------
33548
+  (0.1ms) SAVEPOINT active_record_1
33549
+ SQL (0.6ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:49:39.394818"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.394818"]]
33550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33551
+  (0.7ms) rollback transaction
33552
+  (0.1ms) begin transaction
33553
+ --------------------------------------------------------------------
33554
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
33555
+ --------------------------------------------------------------------
33556
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33557
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33558
+ Processing by Fogged::ResourcesController#destroy as HTML
33559
+ Parameters: {"id"=>"591498715"}
33560
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33561
+  (0.1ms) SAVEPOINT active_record_1
33562
+ SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
33563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33564
+ Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)
33565
+  (0.3ms) SELECT COUNT(*) FROM "fogged_resources"
33566
+  (0.4ms) rollback transaction
33567
+  (0.0ms) begin transaction
33568
+ ----------------------------------------------------------------------------------------
33569
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
33570
+ ----------------------------------------------------------------------------------------
33571
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33572
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33573
+ Processing by Fogged::ResourcesController#destroy as HTML
33574
+ Parameters: {"id"=>"123456"}
33575
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
33576
+ Completed 404 Not Found in 1ms
33577
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33578
+  (0.1ms) rollback transaction
33579
+  (0.1ms) begin transaction
33580
+ --------------------------------------------------------------------
33581
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
33582
+ --------------------------------------------------------------------
33583
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33584
+ Processing by Fogged::ResourcesController#confirm as HTML
33585
+ Parameters: {"id"=>"591498715"}
33586
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33587
+  (0.1ms) SAVEPOINT active_record_1
33588
+ SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:49:39.418404"], ["width", 800]]
33589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33590
+  (0.0ms) SAVEPOINT active_record_1
33591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33592
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
33593
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33594
+  (1.1ms) rollback transaction
33595
+  (0.1ms) begin transaction
33596
+ ------------------------------------------------------------------------------------------------
33597
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
33598
+ ------------------------------------------------------------------------------------------------
33599
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33600
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33601
+ Processing by Fogged::ResourcesController#confirm as HTML
33602
+ Parameters: {"id"=>"68463692"}
33603
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33604
+  (0.1ms) begin transaction
33605
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:39.574533"]]
33606
+  (0.8ms) commit transaction
33607
+  (0.1ms) begin transaction
33608
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.595890"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:39.595592"], ["updated_at", "2014-12-22 08:49:39.595890"]]
33609
+  (0.7ms) commit transaction
33610
+  (0.4ms) begin transaction
33611
+  (0.0ms) commit transaction
33612
+ Completed 200 OK in 32ms (Views: 1.7ms | ActiveRecord: 3.3ms)
33613
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
33614
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33615
+  (0.7ms) begin transaction
33616
+ ----------------------------------------------------------------------------------------
33617
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
33618
+ ----------------------------------------------------------------------------------------
33619
+ Processing by Fogged::ResourcesController#confirm as HTML
33620
+ Parameters: {"id"=>"123456"}
33621
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
33622
+ Completed 404 Not Found in 2ms
33623
+  (0.1ms) rollback transaction
33624
+  (0.1ms) begin transaction
33625
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
33626
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 517391740)
33627
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 701625837)
33628
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 819504217)
33629
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 132093124)
33630
+ 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', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 431685987)
33631
+ 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', '1234567890mov', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 68463692)
33632
+ 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', '1234567890png', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 591498715)
33633
+ 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, '2014-12-22 08:49:39', '2014-12-22 08:49:39', 538821867)
33634
+ Fixture Delete (0.1ms) DELETE FROM "images"
33635
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 579229346)
33636
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 153115190)
33637
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33638
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 419883833, 624739301, 701625837)
33639
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 849405871, 624739301, 819504217)
33640
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 98413728, 245026679, 784085492)
33641
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:39', '2014-12-22 08:49:39', 779853880, 245026679, 431685987)
33642
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33643
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 624739301)
33644
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 245026679)
33645
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:39', '2014-12-22 08:49:39', 948421225)
33646
+  (1.0ms) commit transaction
33647
+  (0.0ms) begin transaction
33648
+ -------------------------------------------------------------
33649
+ MovieTest: test_should_not_save_movie_with_uploading_resource
33650
+ -------------------------------------------------------------
33651
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33652
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33653
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
33654
+  (0.1ms) SAVEPOINT active_record_1
33655
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:49:39.821979"], ["uploading", "t"]]
33656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33657
+  (0.1ms) SAVEPOINT active_record_1
33658
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33659
+  (1.1ms) rollback transaction
33660
+  (0.1ms) begin transaction
33661
+ ---------------------------------------------------
33662
+ MovieTest: test_should_save_movie_with_no_resources
33663
+ ---------------------------------------------------
33664
+  (0.3ms) SAVEPOINT active_record_1
33665
+ SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:49:39.834540"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.834540"]]
33666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33667
+  (1.3ms) rollback transaction
33668
+  (0.2ms) begin transaction
33669
+ --------------------------------------------------------
33670
+ MovieTest: test_should_save_movie_with_several_resources
33671
+ --------------------------------------------------------
33672
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33673
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33674
+  (0.1ms) SAVEPOINT active_record_1
33675
+ SQL (0.5ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:49:39.845791"], ["name", "test"], ["updated_at", "2014-12-22 08:49:39.845791"]]
33676
+ SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.848862"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:49:39.848862"]]
33677
+ SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:39.851525"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:49:39.851525"]]
33678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33679
+  (0.4ms) rollback transaction
33680
+  (0.1ms) begin transaction
33681
+ --------------------------------------------------------------------------------------
33682
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
33683
+ --------------------------------------------------------------------------------------
33684
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33685
+ Processing by Fogged::ResourcesController#update as HTML
33686
+ Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
33687
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
33688
+ Completed 404 Not Found in 1ms
33689
+  (0.1ms) rollback transaction
33690
+  (0.1ms) begin transaction
33691
+ ------------------------------------------------------------------
33692
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
33693
+ ------------------------------------------------------------------
33694
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33695
+ Processing by Fogged::ResourcesController#update as HTML
33696
+ Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
33697
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33698
+  (0.2ms) SAVEPOINT active_record_1
33699
+ SQL (0.6ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:49:39.872346"]]
33700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33701
+ Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 1.0ms)
33702
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33703
+  (0.7ms) rollback transaction
33704
+  (0.2ms) begin transaction
33705
+ ------------------------------------------------------------------
33706
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
33707
+ ------------------------------------------------------------------
33708
+  (0.4ms) SELECT COUNT(*) FROM "fogged_resources"
33709
+ Processing by Fogged::ResourcesController#create as HTML
33710
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
33711
+  (0.1ms) SAVEPOINT active_record_1
33712
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2d32de6e13efb96224c61ea2cf64d915' LIMIT 1
33713
+ SQL (0.7ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:49:39.891839"], ["extension", "png"], ["name", "Dummy"], ["token", "2d32de6e13efb96224c61ea2cf64d915"], ["updated_at", "2014-12-22 08:49:39.891839"], ["uploading", "t"]]
33714
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33715
+ Completed 200 OK in 9ms (Views: 2.4ms | ActiveRecord: 1.3ms)
33716
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33717
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
33718
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
33719
+  (0.4ms) rollback transaction
33720
+  (0.1ms) begin transaction
33721
+ --------------------------------------------------------------------------------------------
33722
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
33723
+ --------------------------------------------------------------------------------------------
33724
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33725
+ Processing by Fogged::ResourcesController#create as HTML
33726
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
33727
+  (0.1ms) SAVEPOINT active_record_1
33728
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33729
+ Completed 422 Unprocessable Entity in 5ms
33730
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33731
+  (0.1ms) rollback transaction
33732
+  (0.0ms) begin transaction
33733
+ -------------------------------------------------------------------------------------------
33734
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
33735
+ -------------------------------------------------------------------------------------------
33736
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33737
+ Processing by Fogged::ResourcesController#create as HTML
33738
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
33739
+ Completed 400 Bad Request in 1ms
33740
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33741
+  (0.1ms) rollback transaction
33742
+  (0.1ms) begin transaction
33743
+ ---------------------------------------------------------------------------------------
33744
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
33745
+ ---------------------------------------------------------------------------------------
33746
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33747
+ Processing by Fogged::ResourcesController#create as HTML
33748
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
33749
+ Completed 400 Bad Request in 0ms
33750
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33751
+  (0.1ms) rollback transaction
33752
+  (0.0ms) begin transaction
33753
+ -----------------------------------------------------------------------------------
33754
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
33755
+ -----------------------------------------------------------------------------------
33756
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33757
+ Processing by Fogged::ResourcesController#create as HTML
33758
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
33759
+ Completed 400 Bad Request in 1ms
33760
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
33761
+  (0.1ms) rollback transaction
33762
+  (0.1ms) begin transaction
33763
+ -------------------------------------------------------------------------------------------------
33764
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
33765
+ -------------------------------------------------------------------------------------------------
33766
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33767
+ Processing by Fogged::ResourcesController#create as HTML
33768
+ Completed 400 Bad Request in 0ms
33769
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
33770
+  (0.1ms) rollback transaction
33771
+  (0.1ms) begin transaction
33772
+ -------------------------------------------------------
33773
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
33774
+ -------------------------------------------------------
33775
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33776
+  (0.2ms) rollback transaction
33777
+  (0.1ms) begin transaction
33778
+ -----------------------------------------------------------------------------------
33779
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
33780
+ -----------------------------------------------------------------------------------
33781
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33782
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33783
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33784
+  (0.1ms) begin transaction
33785
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:49:40.041944"]]
33786
+  (0.7ms) commit transaction
33787
+  (0.1ms) begin transaction
33788
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:40.061142"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:49:39.000000000 Z\n updated_at: 2014-12-22 08:49:40.041944000 Z\n"], ["run_at", "2014-12-22 08:49:50.045142"], ["updated_at", "2014-12-22 08:49:40.061142"]]
33789
+  (0.7ms) commit transaction
33790
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33791
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33792
+  (0.5ms) begin transaction
33793
+ --------------------------------------------------------------------------------
33794
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
33795
+ --------------------------------------------------------------------------------
33796
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33797
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33798
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33799
+  (0.1ms) begin transaction
33800
+ SQL (0.4ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:49:40.313288"], ["width", 800]]
33801
+  (0.8ms) commit transaction
33802
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33803
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33804
+  (0.5ms) begin transaction
33805
+ --------------------------------------------------------------------------------
33806
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
33807
+ --------------------------------------------------------------------------------
33808
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33809
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33810
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33811
+  (0.5ms) begin transaction
33812
+ --------------------------------------------------------------------------------
33813
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
33814
+ --------------------------------------------------------------------------------
33815
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33816
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33817
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33818
+  (0.3ms) begin transaction
33819
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:49:40.836019"]]
33820
+  (4.9ms) commit transaction
33821
+  (0.2ms) begin transaction
33822
+ SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:40.873546"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:49:39.000000000 Z\n updated_at: 2014-12-22 08:49:40.836019000 Z\n"], ["run_at", "2014-12-22 08:49:50.845286"], ["updated_at", "2014-12-22 08:49:40.873546"]]
33823
+  (1.5ms) commit transaction
33824
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
33825
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
33826
+  (0.4ms) begin transaction
33827
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
33828
+ 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', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 517391740)
33829
+ 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', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 701625837)
33830
+ 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', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 819504217)
33831
+ 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', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 132093124)
33832
+ 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', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 431685987)
33833
+ 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', '1234567890mov', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 68463692)
33834
+ Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', '1234567890png', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 591498715)
33835
+ 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, '2014-12-22 08:49:41', '2014-12-22 08:49:41', 538821867)
33836
+ Fixture Delete (0.1ms) DELETE FROM "images"
33837
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 579229346)
33838
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 153115190)
33839
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33840
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 419883833, 624739301, 701625837)
33841
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 849405871, 624739301, 819504217)
33842
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 98413728, 245026679, 784085492)
33843
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:49:41', '2014-12-22 08:49:41', 779853880, 245026679, 431685987)
33844
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33845
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 624739301)
33846
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 245026679)
33847
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:49:41', '2014-12-22 08:49:41', 948421225)
33848
+  (1.0ms) commit transaction
33849
+  (0.1ms) begin transaction
33850
+ ---------------------------------------------------
33851
+ Fogged::ResourceTest: test_resource_should_be_valid
33852
+ ---------------------------------------------------
33853
+  (0.0ms) SAVEPOINT active_record_1
33854
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c7cf9b9948846e1871c5c770dc3a5ffb' LIMIT 1
33855
+ SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.074179"], ["extension", "txt"], ["name", "Test"], ["token", "c7cf9b9948846e1871c5c770dc3a5ffb"], ["updated_at", "2014-12-22 08:49:41.074179"], ["uploading", "f"]]
33856
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33857
+  (0.5ms) rollback transaction
33858
+  (0.2ms) begin transaction
33859
+ ----------------------------------------------------------------------------
33860
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
33861
+ ----------------------------------------------------------------------------
33862
+  (0.1ms) SAVEPOINT active_record_1
33863
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '93291f86f01f0f4dc67295c4cef8e614' LIMIT 1
33864
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.079381"], ["extension", "txt"], ["name", "Test"], ["token", "93291f86f01f0f4dc67295c4cef8e614"], ["updated_at", "2014-12-22 08:49:41.079381"], ["uploading", "f"]]
33865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33866
+  (0.2ms) SAVEPOINT active_record_1
33867
+ SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
33868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33869
+  (1.3ms) rollback transaction
33870
+  (0.1ms) begin transaction
33871
+ -------------------------------------------------------------------------
33872
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
33873
+ -------------------------------------------------------------------------
33874
+  (0.1ms) SAVEPOINT active_record_1
33875
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c70f7ef155dc2acd64a03dbcfa3536b3' LIMIT 1
33876
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.090129"], ["extension", "txt"], ["name", "Test"], ["token", "c70f7ef155dc2acd64a03dbcfa3536b3"], ["updated_at", "2014-12-22 08:49:41.090129"], ["uploading", "f"]]
33877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33878
+  (0.4ms) rollback transaction
33879
+  (0.2ms) begin transaction
33880
+ -------------------------------------------------------------
33881
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
33882
+ -------------------------------------------------------------
33883
+  (0.2ms) SAVEPOINT active_record_1
33884
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '96f144fff790341fea1b243cdee10b88' LIMIT 1
33885
+ SQL (0.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.095709"], ["extension", "txt"], ["name", "Test"], ["token", "96f144fff790341fea1b243cdee10b88"], ["updated_at", "2014-12-22 08:49:41.095709"], ["uploading", "f"]]
33886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33887
+  (0.6ms) rollback transaction
33888
+  (0.2ms) begin transaction
33889
+ ------------------------------------------------------
33890
+ Fogged::ResourceTest: test_resource_should_have_an_url
33891
+ ------------------------------------------------------
33892
+  (0.1ms) SAVEPOINT active_record_1
33893
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '652754bd40248d89439aa848559392b6' LIMIT 1
33894
+ SQL (0.6ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:49:41.102573"], ["extension", "txt"], ["name", "Test"], ["token", "652754bd40248d89439aa848559392b6"], ["updated_at", "2014-12-22 08:49:41.102573"], ["uploading", "f"]]
33895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33896
+  (0.4ms) rollback transaction
33897
+  (0.1ms) begin transaction
33898
+ ----------------------------------------------------------------------------
33899
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
33900
+ ----------------------------------------------------------------------------
33901
+  (0.1ms) SAVEPOINT active_record_1
33902
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33903
+  (0.2ms) rollback transaction
33904
+  (0.1ms) begin transaction
33905
+ -------------------------------------------------------------------------
33906
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
33907
+ -------------------------------------------------------------------------
33908
+  (0.1ms) SAVEPOINT active_record_1
33909
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33910
+  (0.2ms) rollback transaction
33911
+  (0.2ms) begin transaction
33912
+ --------------------------------------------------------
33913
+ Fogged::ResourceTest: test_should_process_resource_image
33914
+ --------------------------------------------------------
33915
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
33916
+  (0.3ms) SAVEPOINT active_record_1
33917
+ SQL (1.0ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:49:41.118416"], ["width", 800]]
33918
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33919
+  (0.7ms) rollback transaction
33920
+  (0.2ms) begin transaction
33921
+ --------------------------------------------------------
33922
+ Fogged::ResourceTest: test_should_process_resource_video
33923
+ --------------------------------------------------------
33924
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33925
+  (0.1ms) rollback transaction
33926
+  (0.1ms) begin transaction
33927
+ ------------------------------------------------------------------------------
33928
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
33929
+ ------------------------------------------------------------------------------
33930
+ Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
33931
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
33932
+  (0.1ms) begin transaction
33933
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:49:41.228607"]]
33934
+  (0.8ms) commit transaction
33935
+  (0.1ms) begin transaction
33936
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:49:41.248393"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:49:41.248099"], ["updated_at", "2014-12-22 08:49:41.248393"]]
33937
+  (0.9ms) commit transaction
33938
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
33939
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33940
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33941
+  (0.1ms) begin transaction
33942
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
33943
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 517391740)
33944
+ 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', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 701625837)
33945
+ 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', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 819504217)
33946
+ 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', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 132093124)
33947
+ 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', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 431685987)
33948
+ 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', '1234567890mov', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 68463692)
33949
+ 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', '1234567890png', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 591498715)
33950
+ 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, '2014-12-22 08:51:56', '2014-12-22 08:51:56', 538821867)
33951
+ Fixture Delete (0.1ms) DELETE FROM "images"
33952
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 579229346)
33953
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 153115190)
33954
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
33955
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 419883833, 624739301, 701625837)
33956
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 849405871, 624739301, 819504217)
33957
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 98413728, 245026679, 784085492)
33958
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:56', '2014-12-22 08:51:56', 779853880, 245026679, 431685987)
33959
+ Fixture Delete (0.1ms) DELETE FROM "movies"
33960
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 624739301)
33961
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 245026679)
33962
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:56', '2014-12-22 08:51:56', 948421225)
33963
+  (1.0ms) commit transaction
33964
+  (0.0ms) begin transaction
33965
+ -------------------------------------------------------------
33966
+ MovieTest: test_should_not_save_movie_with_uploading_resource
33967
+ -------------------------------------------------------------
33968
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33969
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33970
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
33971
+  (0.1ms) SAVEPOINT active_record_1
33972
+ SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-12-22 08:51:56.914927"], ["uploading", "t"]]
33973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33974
+  (0.0ms) SAVEPOINT active_record_1
33975
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33976
+  (0.3ms) rollback transaction
33977
+  (0.0ms) begin transaction
33978
+ ---------------------------------------------------
33979
+ MovieTest: test_should_save_movie_with_no_resources
33980
+ ---------------------------------------------------
33981
+  (0.0ms) SAVEPOINT active_record_1
33982
+ SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:51:56.926461"], ["name", "test"], ["updated_at", "2014-12-22 08:51:56.926461"]]
33983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33984
+  (0.3ms) rollback transaction
33985
+  (0.0ms) begin transaction
33986
+ --------------------------------------------------------
33987
+ MovieTest: test_should_save_movie_with_several_resources
33988
+ --------------------------------------------------------
33989
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
33990
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
33991
+  (0.0ms) SAVEPOINT active_record_1
33992
+ SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:51:56.931722"], ["name", "test"], ["updated_at", "2014-12-22 08:51:56.931722"]]
33993
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:56.932725"], ["movie_id", 948421226], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:51:56.932725"]]
33994
+ SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:56.933825"], ["movie_id", 948421226], ["resource_id", 819504217], ["updated_at", "2014-12-22 08:51:56.933825"]]
33995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33996
+  (0.6ms) rollback transaction
33997
+  (0.1ms) begin transaction
33998
+ ----------------------
33999
+ FoggedTest: test_truth
34000
+ ----------------------
34001
+  (0.0ms) rollback transaction
34002
+  (0.2ms) begin transaction
34003
+ --------------------------------------------------------------------
34004
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
34005
+ --------------------------------------------------------------------
34006
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34007
+ Processing by Fogged::ResourcesController#confirm as HTML
34008
+ Parameters: {"id"=>"591498715"}
34009
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34010
+  (0.1ms) SAVEPOINT active_record_1
34011
+ SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:51:56.951025"], ["width", 800]]
34012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34013
+  (0.0ms) SAVEPOINT active_record_1
34014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34015
+ Completed 200 OK in 67ms (Views: 62.7ms | ActiveRecord: 0.5ms)
34016
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34017
+  (0.7ms) rollback transaction
34018
+  (0.1ms) begin transaction
34019
+ ------------------------------------------------------------------------------------------------
34020
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
34021
+ ------------------------------------------------------------------------------------------------
34022
+ Fogged::Resource Load (1.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34023
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34024
+ Processing by Fogged::ResourcesController#confirm as HTML
34025
+ Parameters: {"id"=>"68463692"}
34026
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34027
+  (0.1ms) begin transaction
34028
+ SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:57.150027"]]
34029
+  (0.8ms) commit transaction
34030
+  (0.1ms) begin transaction
34031
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:57.178215"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:57.177917"], ["updated_at", "2014-12-22 08:51:57.178215"]]
34032
+  (0.8ms) commit transaction
34033
+  (0.1ms) begin transaction
34034
+  (0.1ms) commit transaction
34035
+ Completed 200 OK in 42ms (Views: 2.7ms | ActiveRecord: 3.5ms)
34036
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34037
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34038
+  (1.0ms) begin transaction
34039
+ ----------------------------------------------------------------------------------------
34040
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
34041
+ ----------------------------------------------------------------------------------------
34042
+ Processing by Fogged::ResourcesController#confirm as HTML
34043
+ Parameters: {"id"=>"123456"}
34044
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
34045
+ Completed 404 Not Found in 2ms
34046
+  (0.1ms) rollback transaction
34047
+  (0.1ms) begin transaction
34048
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
34049
+ 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', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 517391740)
34050
+ 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', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 701625837)
34051
+ 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', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 819504217)
34052
+ 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', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 132093124)
34053
+ 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', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 431685987)
34054
+ 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', '1234567890mov', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 68463692)
34055
+ 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', '1234567890png', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 591498715)
34056
+ 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, '2014-12-22 08:51:57', '2014-12-22 08:51:57', 538821867)
34057
+ Fixture Delete (0.1ms) DELETE FROM "images"
34058
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 579229346)
34059
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 153115190)
34060
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
34061
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 419883833, 624739301, 701625837)
34062
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 849405871, 624739301, 819504217)
34063
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 98413728, 245026679, 784085492)
34064
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:57', '2014-12-22 08:51:57', 779853880, 245026679, 431685987)
34065
+ Fixture Delete (0.1ms) DELETE FROM "movies"
34066
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 624739301)
34067
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 245026679)
34068
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:57', '2014-12-22 08:51:57', 948421225)
34069
+  (0.9ms) commit transaction
34070
+  (0.1ms) begin transaction
34071
+ -----------------------------------------------------------------------------------
34072
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing
34073
+ -----------------------------------------------------------------------------------
34074
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34075
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34076
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34077
+  (0.1ms) begin transaction
34078
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:51:57.486908"]]
34079
+  (0.8ms) commit transaction
34080
+  (0.1ms) begin transaction
34081
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:57.518675"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: \n height: \n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: \n created_at: 2014-12-22 08:51:57.000000000 Z\n updated_at: 2014-12-22 08:51:57.486908000 Z\n"], ["run_at", "2014-12-22 08:52:07.490621"], ["updated_at", "2014-12-22 08:51:57.518675"]]
34082
+  (0.7ms) commit transaction
34083
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34084
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34085
+  (0.7ms) begin transaction
34086
+ --------------------------------------------------------------------------------
34087
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success
34088
+ --------------------------------------------------------------------------------
34089
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34090
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34091
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34092
+  (0.1ms) begin transaction
34093
+ SQL (0.4ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 538821867 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-12-22 08:51:57.792198"], ["width", 800]]
34094
+  (0.7ms) commit transaction
34095
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34096
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34097
+  (1.0ms) begin transaction
34098
+ --------------------------------------------------------------------------------
34099
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown
34100
+ --------------------------------------------------------------------------------
34101
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34102
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34103
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34104
+  (0.4ms) begin transaction
34105
+ --------------------------------------------------------------------------------
34106
+ Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting
34107
+ --------------------------------------------------------------------------------
34108
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34109
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34110
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34111
+  (0.1ms) begin transaction
34112
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-12-22 08:51:58.294049"]]
34113
+  (4.8ms) commit transaction
34114
+  (0.1ms) begin transaction
34115
+ SQL (1.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:58.321287"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 538821867\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 538821867\n name: resource mov 1\n token: 1234567890mov\n width: 800\n height: 600\n extension: mov\n uploading: false\n content_type: video/quicktime\n encoding_progress: 55\n encoding_job_id: '1234567890'\n duration: 15\n created_at: 2014-12-22 08:51:57.000000000 Z\n updated_at: 2014-12-22 08:51:58.294049000 Z\n"], ["run_at", "2014-12-22 08:52:08.302277"], ["updated_at", "2014-12-22 08:51:58.321287"]]
34116
+  (1.3ms) commit transaction
34117
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34118
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]
34119
+  (0.3ms) begin transaction
34120
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
34121
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 517391740)
34122
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 701625837)
34123
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 819504217)
34124
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 132093124)
34125
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 431685987)
34126
+ 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', '1234567890mov', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 68463692)
34127
+ 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', '1234567890png', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 591498715)
34128
+ 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, '2014-12-22 08:51:58', '2014-12-22 08:51:58', 538821867)
34129
+ Fixture Delete (0.1ms) DELETE FROM "images"
34130
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 579229346)
34131
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 153115190)
34132
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
34133
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 419883833, 624739301, 701625837)
34134
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 849405871, 624739301, 819504217)
34135
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 98413728, 245026679, 784085492)
34136
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 779853880, 245026679, 431685987)
34137
+ Fixture Delete (0.1ms) DELETE FROM "movies"
34138
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 624739301)
34139
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 245026679)
34140
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 948421225)
34141
+  (1.0ms) commit transaction
34142
+  (0.0ms) begin transaction
34143
+ -------------------------------------------------------
34144
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
34145
+ -------------------------------------------------------
34146
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34147
+  (0.1ms) rollback transaction
34148
+  (0.1ms) begin transaction
34149
+ ----------------------------------------------------------------------------------
34150
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
34151
+ ----------------------------------------------------------------------------------
34152
+ Processing by Fogged::ResourcesController#show as HTML
34153
+ Parameters: {"id"=>"1234567890"}
34154
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
34155
+ Completed 404 Not Found in 1ms
34156
+  (0.1ms) rollback transaction
34157
+  (0.0ms) begin transaction
34158
+ --------------------------------------------------------------------
34159
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
34160
+ --------------------------------------------------------------------
34161
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34162
+ Processing by Fogged::ResourcesController#show as HTML
34163
+ Parameters: {"id"=>"591498715"}
34164
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34165
+ Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.4ms)
34166
+  (0.1ms) rollback transaction
34167
+  (0.1ms) begin transaction
34168
+ --------------------------------------------------------------
34169
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
34170
+ --------------------------------------------------------------
34171
+ Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
34172
+ Processing by Fogged::ResourcesController#show as HTML
34173
+ Parameters: {"id"=>"701625837"}
34174
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
34175
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.3ms)
34176
+  (0.1ms) rollback transaction
34177
+  (0.0ms) begin transaction
34178
+ --------------------------------------------------------------------
34179
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
34180
+ --------------------------------------------------------------------
34181
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34182
+ Processing by Fogged::ResourcesController#show as HTML
34183
+ Parameters: {"id"=>"68463692"}
34184
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34185
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
34186
+  (0.2ms) rollback transaction
34187
+  (0.2ms) begin transaction
34188
+ ---------------------------------------------------
34189
+ Fogged::ResourceTest: test_resource_should_be_valid
34190
+ ---------------------------------------------------
34191
+  (0.3ms) SAVEPOINT active_record_1
34192
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aa2249eb18591d68a802219c57b6b1b5' LIMIT 1
34193
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.564901"], ["extension", "txt"], ["name", "Test"], ["token", "aa2249eb18591d68a802219c57b6b1b5"], ["updated_at", "2014-12-22 08:51:58.564901"], ["uploading", "f"]]
34194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34195
+  (0.4ms) rollback transaction
34196
+  (0.1ms) begin transaction
34197
+ ----------------------------------------------------------------------------
34198
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
34199
+ ----------------------------------------------------------------------------
34200
+  (0.1ms) SAVEPOINT active_record_1
34201
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '08bf1efaad0e5622259fff0022f8c6e4' LIMIT 1
34202
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.569178"], ["extension", "txt"], ["name", "Test"], ["token", "08bf1efaad0e5622259fff0022f8c6e4"], ["updated_at", "2014-12-22 08:51:58.569178"], ["uploading", "f"]]
34203
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34204
+  (0.2ms) SAVEPOINT active_record_1
34205
+ SQL (1.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]
34206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34207
+  (0.7ms) rollback transaction
34208
+  (0.0ms) begin transaction
34209
+ -------------------------------------------------------------------------
34210
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
34211
+ -------------------------------------------------------------------------
34212
+  (0.0ms) SAVEPOINT active_record_1
34213
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2e95e4b25fc17fa5b6846c926f2c813d' LIMIT 1
34214
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.577657"], ["extension", "txt"], ["name", "Test"], ["token", "2e95e4b25fc17fa5b6846c926f2c813d"], ["updated_at", "2014-12-22 08:51:58.577657"], ["uploading", "f"]]
34215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34216
+  (0.4ms) rollback transaction
34217
+  (0.1ms) begin transaction
34218
+ -------------------------------------------------------------
34219
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
34220
+ -------------------------------------------------------------
34221
+  (0.0ms) SAVEPOINT active_record_1
34222
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a43983409218b772271b8a2490f783d7' LIMIT 1
34223
+ SQL (0.7ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.581000"], ["extension", "txt"], ["name", "Test"], ["token", "a43983409218b772271b8a2490f783d7"], ["updated_at", "2014-12-22 08:51:58.581000"], ["uploading", "f"]]
34224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34225
+  (0.8ms) rollback transaction
34226
+  (0.1ms) begin transaction
34227
+ ------------------------------------------------------
34228
+ Fogged::ResourceTest: test_resource_should_have_an_url
34229
+ ------------------------------------------------------
34230
+  (0.2ms) SAVEPOINT active_record_1
34231
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e0c6e1bc9638327fce1a86741383504b' LIMIT 1
34232
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:58.589267"], ["extension", "txt"], ["name", "Test"], ["token", "e0c6e1bc9638327fce1a86741383504b"], ["updated_at", "2014-12-22 08:51:58.589267"], ["uploading", "f"]]
34233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34234
+  (0.6ms) rollback transaction
34235
+  (0.1ms) begin transaction
34236
+ ----------------------------------------------------------------------------
34237
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
34238
+ ----------------------------------------------------------------------------
34239
+  (0.2ms) SAVEPOINT active_record_1
34240
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34241
+  (0.1ms) rollback transaction
34242
+  (0.1ms) begin transaction
34243
+ -------------------------------------------------------------------------
34244
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
34245
+ -------------------------------------------------------------------------
34246
+  (0.1ms) SAVEPOINT active_record_1
34247
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34248
+  (0.1ms) rollback transaction
34249
+  (0.0ms) begin transaction
34250
+ --------------------------------------------------------
34251
+ Fogged::ResourceTest: test_should_process_resource_image
34252
+ --------------------------------------------------------
34253
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34254
+  (0.1ms) SAVEPOINT active_record_1
34255
+ SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-12-22 08:51:58.602710"], ["width", 800]]
34256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34257
+  (0.6ms) rollback transaction
34258
+  (0.1ms) begin transaction
34259
+ --------------------------------------------------------
34260
+ Fogged::ResourceTest: test_should_process_resource_video
34261
+ --------------------------------------------------------
34262
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34263
+  (0.1ms) rollback transaction
34264
+  (0.1ms) begin transaction
34265
+ ------------------------------------------------------------------------------
34266
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
34267
+ ------------------------------------------------------------------------------
34268
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34269
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34270
+  (0.1ms) begin transaction
34271
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:58.708229"]]
34272
+  (0.7ms) commit transaction
34273
+  (0.1ms) begin transaction
34274
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:58.726036"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:58.725762"], ["updated_at", "2014-12-22 08:51:58.726036"]]
34275
+  (0.6ms) commit transaction
34276
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34277
+  (0.7ms) begin transaction
34278
+ Fixture Delete (0.5ms) DELETE FROM "fogged_resources"
34279
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 517391740)
34280
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 701625837)
34281
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 819504217)
34282
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 132093124)
34283
+ 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', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 431685987)
34284
+ 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', '1234567890mov', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 68463692)
34285
+ 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', '1234567890png', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 591498715)
34286
+ 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, '2014-12-22 08:51:58', '2014-12-22 08:51:58', 538821867)
34287
+ Fixture Delete (0.1ms) DELETE FROM "images"
34288
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 579229346)
34289
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 153115190)
34290
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
34291
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 419883833, 624739301, 701625837)
34292
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 849405871, 624739301, 819504217)
34293
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 98413728, 245026679, 784085492)
34294
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:58', '2014-12-22 08:51:58', 779853880, 245026679, 431685987)
34295
+ Fixture Delete (0.1ms) DELETE FROM "movies"
34296
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 624739301)
34297
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 245026679)
34298
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:58', '2014-12-22 08:51:58', 948421225)
34299
+  (0.9ms) commit transaction
34300
+  (0.1ms) begin transaction
34301
+ ------------------------------------------------------------------
34302
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
34303
+ ------------------------------------------------------------------
34304
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34305
+ Processing by Fogged::ResourcesController#create as HTML
34306
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
34307
+  (0.1ms) SAVEPOINT active_record_1
34308
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'efc84f3d6518195c454f6abdb43e12c6' LIMIT 1
34309
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-12-22 08:51:58.926025"], ["extension", "png"], ["name", "Dummy"], ["token", "efc84f3d6518195c454f6abdb43e12c6"], ["updated_at", "2014-12-22 08:51:58.926025"], ["uploading", "t"]]
34310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34311
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.6ms)
34312
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34313
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
34314
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
34315
+  (0.5ms) rollback transaction
34316
+  (0.1ms) begin transaction
34317
+ --------------------------------------------------------------------------------------------
34318
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
34319
+ --------------------------------------------------------------------------------------------
34320
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34321
+ Processing by Fogged::ResourcesController#create as HTML
34322
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
34323
+  (0.1ms) SAVEPOINT active_record_1
34324
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
34325
+ Completed 422 Unprocessable Entity in 5ms
34326
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34327
+  (0.1ms) rollback transaction
34328
+  (0.1ms) begin transaction
34329
+ -------------------------------------------------------------------------------------------
34330
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
34331
+ -------------------------------------------------------------------------------------------
34332
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34333
+ Processing by Fogged::ResourcesController#create as HTML
34334
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
34335
+ Completed 400 Bad Request in 1ms
34336
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34337
+  (0.1ms) rollback transaction
34338
+  (0.1ms) begin transaction
34339
+ ---------------------------------------------------------------------------------------
34340
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
34341
+ ---------------------------------------------------------------------------------------
34342
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34343
+ Processing by Fogged::ResourcesController#create as HTML
34344
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}}
34345
+ Completed 400 Bad Request in 1ms
34346
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34347
+  (0.1ms) rollback transaction
34348
+  (0.1ms) begin transaction
34349
+ -----------------------------------------------------------------------------------
34350
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
34351
+ -----------------------------------------------------------------------------------
34352
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34353
+ Processing by Fogged::ResourcesController#create as HTML
34354
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
34355
+ Completed 400 Bad Request in 1ms
34356
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34357
+  (0.1ms) rollback transaction
34358
+  (0.0ms) begin transaction
34359
+ -------------------------------------------------------------------------------------------------
34360
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
34361
+ -------------------------------------------------------------------------------------------------
34362
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34363
+ Processing by Fogged::ResourcesController#create as HTML
34364
+ Completed 400 Bad Request in 0ms
34365
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34366
+  (0.1ms) rollback transaction
34367
+  (0.1ms) begin transaction
34368
+ ----------------------------------------------------------------
34369
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
34370
+ ----------------------------------------------------------------
34371
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34372
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34373
+  (1.3ms) begin transaction
34374
+ SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2014-12-22 08:51:59.062908"]]
34375
+  (0.8ms) commit transaction
34376
+  (0.2ms) begin transaction
34377
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:59.081942"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-12-22 08:51:59.081384"], ["updated_at", "2014-12-22 08:51:59.081942"]]
34378
+  (0.8ms) commit transaction
34379
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
34380
+  (0.7ms) begin transaction
34381
+ --------------------------------------------------------------------
34382
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file
34383
+ --------------------------------------------------------------------
34384
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]
34385
+ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34386
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34387
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
34388
+  (0.7ms) begin transaction
34389
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
34390
+ 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', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 517391740)
34391
+ 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', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 701625837)
34392
+ 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', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 819504217)
34393
+ 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', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 132093124)
34394
+ 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', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 431685987)
34395
+ 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', '1234567890mov', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 68463692)
34396
+ 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', '1234567890png', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 591498715)
34397
+ 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, '2014-12-22 08:51:59', '2014-12-22 08:51:59', 538821867)
34398
+ Fixture Delete (0.1ms) DELETE FROM "images"
34399
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 579229346)
34400
+ Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 153115190)
34401
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
34402
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 419883833, 624739301, 701625837)
34403
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 849405871, 624739301, 819504217)
34404
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 98413728, 245026679, 784085492)
34405
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-12-22 08:51:59', '2014-12-22 08:51:59', 779853880, 245026679, 431685987)
34406
+ Fixture Delete (0.1ms) DELETE FROM "movies"
34407
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 624739301)
34408
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 245026679)
34409
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-12-22 08:51:59', '2014-12-22 08:51:59', 948421225)
34410
+  (1.0ms) commit transaction
34411
+  (0.1ms) begin transaction
34412
+ ------------------------------------------------------------------------
34413
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
34414
+ ------------------------------------------------------------------------
34415
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
34416
+ Processing by Fogged::ResourcesController#index as HTML
34417
+ Parameters: {"type"=>"movie"}
34418
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
34419
+ 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]]
34420
+ 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]]
34421
+ 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]]
34422
+ Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.4ms)
34423
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies"
34424
+ 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]]
34425
+ 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]]
34426
+ 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]]
34427
+  (0.3ms) rollback transaction
34428
+  (0.1ms) begin transaction
34429
+ ---------------------------------------------------------------------
34430
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
34431
+ ---------------------------------------------------------------------
34432
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
34433
+ Processing by Fogged::ResourcesController#index as HTML
34434
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
34435
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
34436
+ 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]]
34437
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)
34438
+ 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]]
34439
+  (0.1ms) rollback transaction
34440
+  (0.0ms) begin transaction
34441
+ -----------------------------------------------------------------------------------------------
34442
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
34443
+ -----------------------------------------------------------------------------------------------
34444
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
34445
+  (0.1ms) SAVEPOINT active_record_1
34446
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5f6956d8c169c122c8a1c626b80933ec' LIMIT 1
34447
+ SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-12-22 08:51:59.539957"], ["extension", "txt"], ["name", "footest barish"], ["token", "5f6956d8c169c122c8a1c626b80933ec"], ["updated_at", "2014-12-22 08:51:59.539957"]]
34448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34449
+  (0.2ms) SAVEPOINT active_record_1
34450
+ SQL (0.7ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:59.548672"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-12-22 08:51:59.548672"]]
34451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34452
+ Processing by Fogged::ResourcesController#index as HTML
34453
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
34454
+ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301)
34455
+ 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" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
34456
+ Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)
34457
+  (0.8ms) rollback transaction
34458
+  (0.1ms) begin transaction
34459
+ --------------------------------------------------------------------
34460
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
34461
+ --------------------------------------------------------------------
34462
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
34463
+ Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
34464
+ 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]]
34465
+ 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]]
34466
+ Processing by Fogged::ResourcesController#index as HTML
34467
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
34468
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
34469
+ 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]]
34470
+ 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]]
34471
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.4ms)
34472
+  (0.3ms) rollback transaction
34473
+  (0.3ms) begin transaction
34474
+ -------------------------------------------------------------------------------
34475
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
34476
+ -------------------------------------------------------------------------------
34477
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
34478
+ Processing by Fogged::ResourcesController#index as HTML
34479
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
34480
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890)
34481
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
34482
+  (0.1ms) rollback transaction
34483
+  (0.1ms) begin transaction
34484
+ -------------------------------------------------------------
34485
+ ImageTest: test_should_not_save_image_with_uploading_resource
34486
+ -------------------------------------------------------------
34487
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
34488
+  (0.1ms) SAVEPOINT active_record_1
34489
+ SQL (0.7ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-12-22 08:51:59.585274"], ["uploading", "t"]]
34490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34491
+  (0.0ms) SAVEPOINT active_record_1
34492
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
34493
+  (0.4ms) rollback transaction
34494
+  (0.1ms) begin transaction
34495
+ --------------------------------------------------------
34496
+ ImageTest: test_should_save_image_with_uploaded_resource
34497
+ --------------------------------------------------------
34498
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
34499
+  (0.1ms) SAVEPOINT active_record_1
34500
+ SQL (0.5ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-22 08:51:59.591623"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-12-22 08:51:59.591623"]]
34501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34502
+  (0.5ms) rollback transaction
34503
+  (0.1ms) begin transaction
34504
+ --------------------------------------------------
34505
+ ImageTest: test_should_save_image_without_resource
34506
+ --------------------------------------------------
34507
+  (0.1ms) SAVEPOINT active_record_1
34508
+ SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-22 08:51:59.596107"], ["name", "test"], ["updated_at", "2014-12-22 08:51:59.596107"]]
34509
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34510
+  (0.7ms) rollback transaction
34511
+  (0.1ms) begin transaction
34512
+ --------------------------------------------------------------------
34513
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
34514
+ --------------------------------------------------------------------
34515
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34516
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34517
+ Processing by Fogged::ResourcesController#destroy as HTML
34518
+ Parameters: {"id"=>"591498715"}
34519
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34520
+  (0.3ms) SAVEPOINT active_record_1
34521
+ SQL (0.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]
34522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34523
+ Completed 204 No Content in 7ms (ActiveRecord: 1.4ms)
34524
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34525
+  (0.9ms) rollback transaction
34526
+  (0.1ms) begin transaction
34527
+ ----------------------------------------------------------------------------------------
34528
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
34529
+ ----------------------------------------------------------------------------------------
34530
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34531
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
34532
+ Processing by Fogged::ResourcesController#destroy as HTML
34533
+ Parameters: {"id"=>"123456"}
34534
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
34535
+ Completed 404 Not Found in 1ms
34536
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
34537
+  (0.1ms) rollback transaction
34538
+  (0.2ms) begin transaction
34539
+ --------------------------------------------------------------------------------------
34540
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
34541
+ --------------------------------------------------------------------------------------
34542
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34543
+ Processing by Fogged::ResourcesController#update as HTML
34544
+ Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}}
34545
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
34546
+ Completed 404 Not Found in 1ms
34547
+  (0.2ms) rollback transaction
34548
+  (0.1ms) begin transaction
34549
+ ------------------------------------------------------------------
34550
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
34551
+ ------------------------------------------------------------------
34552
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34553
+ Processing by Fogged::ResourcesController#update as HTML
34554
+ Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}}
34555
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34556
+  (0.1ms) SAVEPOINT active_record_1
34557
+ SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-12-22 08:51:59.636192"]]
34558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34559
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)
34560
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]
34561
+  (0.4ms) rollback transaction