(1.2ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_fogged_resources_on_token" ON "fogged_resources" ("token")  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103143408') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0a572a7516606c4a72a92be006372a3c' LIMIT 1 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-11-03 15:47:40.638146"], ["extension", "txt"], ["name", "Test"], ["token", "0a572a7516606c4a72a92be006372a3c"], ["updated_at", "2014-11-03 15:47:40.638146"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '36c48213f9c880d8c5a44e3a7e7d3853' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:47:40.642369"], ["extension", "txt"], ["name", "Test"], ["token", "36c48213f9c880d8c5a44e3a7e7d3853"], ["updated_at", "2014-11-03 15:47:40.642369"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '62a78759bdf0fbe6889acd9186783c2b' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:47:40.644512"], ["extension", "txt"], ["name", "Test"], ["token", "62a78759bdf0fbe6889acd9186783c2b"], ["updated_at", "2014-11-03 15:47:40.644512"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a411c5dc633af96e7e7d452887d45852' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:47:40.646512"], ["extension", "txt"], ["name", "Test"], ["token", "a411c5dc633af96e7e7d452887d45852"], ["updated_at", "2014-11-03 15:47:40.646512"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3b40fb1220d16ef6f66d36ba91270099' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:47:40.648534"], ["extension", "txt"], ["name", "Test"], ["token", "3b40fb1220d16ef6f66d36ba91270099"], ["updated_at", "2014-11-03 15:47:40.648534"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ae891f029cc8132065237603294079e4' LIMIT 1 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-11-03 15:47:56.137238"], ["extension", "txt"], ["name", "Test"], ["token", "ae891f029cc8132065237603294079e4"], ["updated_at", "2014-11-03 15:47:56.137238"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a48782542b5af9960305ae2f31a68ebf' LIMIT 1 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-11-03 15:47:56.146560"], ["extension", "txt"], ["name", "Test"], ["token", "a48782542b5af9960305ae2f31a68ebf"], ["updated_at", "2014-11-03 15:47:56.146560"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ee62e2e8c98e0c7c91c8df0826eff800' LIMIT 1 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-11-03 15:47:56.149569"], ["extension", "txt"], ["name", "Test"], ["token", "ee62e2e8c98e0c7c91c8df0826eff800"], ["updated_at", "2014-11-03 15:47:56.149569"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b214cfbb3faa9c804468d3bd5d29b3ea' LIMIT 1 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-11-03 15:47:56.152255"], ["extension", "txt"], ["name", "Test"], ["token", "b214cfbb3faa9c804468d3bd5d29b3ea"], ["updated_at", "2014-11-03 15:47:56.152255"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f9768f7ef84e682a929e04740ae99c52' LIMIT 1 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-11-03 15:47:56.154839"], ["extension", "txt"], ["name", "Test"], ["token", "f9768f7ef84e682a929e04740ae99c52"], ["updated_at", "2014-11-03 15:47:56.154839"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'afde30df185217c517a33b692c7607b4' LIMIT 1 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-11-03 15:48:38.111295"], ["extension", "txt"], ["name", "Test"], ["token", "afde30df185217c517a33b692c7607b4"], ["updated_at", "2014-11-03 15:48:38.111295"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7329287d2397f48094e2d17ffa6276dd' LIMIT 1 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-11-03 15:48:38.120119"], ["extension", "txt"], ["name", "Test"], ["token", "7329287d2397f48094e2d17ffa6276dd"], ["updated_at", "2014-11-03 15:48:38.120119"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ac5089deab13e81d15da95d887c04a75' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:48:38.123697"], ["extension", "txt"], ["name", "Test"], ["token", "ac5089deab13e81d15da95d887c04a75"], ["updated_at", "2014-11-03 15:48:38.123697"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '75c9c2144be8d338fb607148268ffdd4' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:48:38.125677"], ["extension", "txt"], ["name", "Test"], ["token", "75c9c2144be8d338fb607148268ffdd4"], ["updated_at", "2014-11-03 15:48:38.125677"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9e0bbb7cade6fd367c4dda9a8c813c6c' LIMIT 1 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-11-03 15:48:38.129240"], ["extension", "txt"], ["name", "Test"], ["token", "9e0bbb7cade6fd367c4dda9a8c813c6c"], ["updated_at", "2014-11-03 15:48:38.129240"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0fa2fc002999539f179dd9c5fe75f0ef' LIMIT 1 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-11-03 15:51:52.361624"], ["extension", "txt"], ["name", "Test"], ["token", "0fa2fc002999539f179dd9c5fe75f0ef"], ["updated_at", "2014-11-03 15:51:52.361624"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fa5bd8bee1763afe54d9eae7e317ef90' LIMIT 1 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-11-03 15:51:52.371204"], ["extension", "txt"], ["name", "Test"], ["token", "fa5bd8bee1763afe54d9eae7e317ef90"], ["updated_at", "2014-11-03 15:51:52.371204"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '148ea8e3d641291cf387b82355a57be1' LIMIT 1 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-11-03 15:51:52.376125"], ["extension", "txt"], ["name", "Test"], ["token", "148ea8e3d641291cf387b82355a57be1"], ["updated_at", "2014-11-03 15:51:52.376125"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7d7553b3a21011e4c3c7fceaa454f58e' LIMIT 1 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-11-03 15:51:52.380645"], ["extension", "txt"], ["name", "Test"], ["token", "7d7553b3a21011e4c3c7fceaa454f58e"], ["updated_at", "2014-11-03 15:51:52.380645"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '41948ee27476d29fb05d53c3bc386d70' LIMIT 1 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-11-03 15:51:52.383779"], ["extension", "txt"], ["name", "Test"], ["token", "41948ee27476d29fb05d53c3bc386d70"], ["updated_at", "2014-11-03 15:51:52.383779"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '04221004199ec8d3a92d6657f1ee2305' LIMIT 1 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-11-03 15:52:32.542807"], ["extension", "txt"], ["name", "Test"], ["token", "04221004199ec8d3a92d6657f1ee2305"], ["updated_at", "2014-11-03 15:52:32.542807"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '98a20985541bb902f7f36865bb6fe90c' LIMIT 1 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-11-03 15:52:32.552309"], ["extension", "txt"], ["name", "Test"], ["token", "98a20985541bb902f7f36865bb6fe90c"], ["updated_at", "2014-11-03 15:52:32.552309"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '41ec670b7153e81597ae7d2df860c2ce' LIMIT 1 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-11-03 15:52:32.555283"], ["extension", "txt"], ["name", "Test"], ["token", "41ec670b7153e81597ae7d2df860c2ce"], ["updated_at", "2014-11-03 15:52:32.555283"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '825b65d33b5f14f236ea13f925a7e602' LIMIT 1 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-11-03 15:52:32.558108"], ["extension", "txt"], ["name", "Test"], ["token", "825b65d33b5f14f236ea13f925a7e602"], ["updated_at", "2014-11-03 15:52:32.558108"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2ec93658a4de4e76237ae0d3982fdb82' LIMIT 1 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-11-03 15:52:32.561330"], ["extension", "txt"], ["name", "Test"], ["token", "2ec93658a4de4e76237ae0d3982fdb82"], ["updated_at", "2014-11-03 15:52:32.561330"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fb9f23dbafdbf7972b25a056822e0318' LIMIT 1 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-11-03 15:55:07.150466"], ["extension", "txt"], ["name", "Test"], ["token", "fb9f23dbafdbf7972b25a056822e0318"], ["updated_at", "2014-11-03 15:55:07.150466"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8a1878d233fbce6490c34426d783d95b' LIMIT 1 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-11-03 15:55:07.159309"], ["extension", "txt"], ["name", "Test"], ["token", "8a1878d233fbce6490c34426d783d95b"], ["updated_at", "2014-11-03 15:55:07.159309"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '314614096adb4cd0e54c03c0f6020303' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:55:07.161655"], ["extension", "txt"], ["name", "Test"], ["token", "314614096adb4cd0e54c03c0f6020303"], ["updated_at", "2014-11-03 15:55:07.161655"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '608f5347597cab807e929219eebc03c3' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:55:07.163776"], ["extension", "txt"], ["name", "Test"], ["token", "608f5347597cab807e929219eebc03c3"], ["updated_at", "2014-11-03 15:55:07.163776"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '634ddd74d28cdb29e9f48426b63353dc' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:55:07.165818"], ["extension", "txt"], ["name", "Test"], ["token", "634ddd74d28cdb29e9f48426b63353dc"], ["updated_at", "2014-11-03 15:55:07.165818"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'cf81aeede99104cd3e5c95c19ca5c943' LIMIT 1 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-11-03 15:57:16.656209"], ["extension", "txt"], ["name", "Test"], ["token", "cf81aeede99104cd3e5c95c19ca5c943"], ["updated_at", "2014-11-03 15:57:16.656209"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4018ffb011c074869913b867ca6f3ec4' LIMIT 1 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-11-03 15:57:16.665314"], ["extension", "txt"], ["name", "Test"], ["token", "4018ffb011c074869913b867ca6f3ec4"], ["updated_at", "2014-11-03 15:57:16.665314"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b6995701b3bf53b0ccaf595998a55422' LIMIT 1 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-11-03 15:57:16.667666"], ["extension", "txt"], ["name", "Test"], ["token", "b6995701b3bf53b0ccaf595998a55422"], ["updated_at", "2014-11-03 15:57:16.667666"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd8ba1ba555ccb37b7e530f7933bae0ae' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:57:16.669756"], ["extension", "txt"], ["name", "Test"], ["token", "d8ba1ba555ccb37b7e530f7933bae0ae"], ["updated_at", "2014-11-03 15:57:16.669756"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1833cdc8c5bad4fadb083c7b3eedb400' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 15:57:16.671826"], ["extension", "txt"], ["name", "Test"], ["token", "1833cdc8c5bad4fadb083c7b3eedb400"], ["updated_at", "2014-11-03 15:57:16.671826"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ddf9fdf7ecdf988d4d09ce2c6128a200' LIMIT 1 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-11-03 15:58:28.264301"], ["extension", "txt"], ["name", "Test"], ["token", "ddf9fdf7ecdf988d4d09ce2c6128a200"], ["updated_at", "2014-11-03 15:58:28.264301"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '841f9a32f4f819b96a61dfd13ab24ec4' LIMIT 1 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-11-03 15:58:28.273721"], ["extension", "txt"], ["name", "Test"], ["token", "841f9a32f4f819b96a61dfd13ab24ec4"], ["updated_at", "2014-11-03 15:58:28.273721"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '96a70e2fd3d5a7bf673693f54e71fc4d' LIMIT 1 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-11-03 15:58:28.276671"], ["extension", "txt"], ["name", "Test"], ["token", "96a70e2fd3d5a7bf673693f54e71fc4d"], ["updated_at", "2014-11-03 15:58:28.276671"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '99f0e65ead368064035d2d6aef9563ae' LIMIT 1 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-11-03 15:58:28.279439"], ["extension", "txt"], ["name", "Test"], ["token", "99f0e65ead368064035d2d6aef9563ae"], ["updated_at", "2014-11-03 15:58:28.279439"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b489efe748ba67c0d6241b32a2a318f5' LIMIT 1 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-11-03 15:58:28.282040"], ["extension", "txt"], ["name", "Test"], ["token", "b489efe748ba67c0d6241b32a2a318f5"], ["updated_at", "2014-11-03 15:58:28.282040"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8237d4fd063ba7508036473378cc2582' LIMIT 1 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-11-03 16:00:03.882544"], ["extension", "txt"], ["name", "Test"], ["token", "8237d4fd063ba7508036473378cc2582"], ["updated_at", "2014-11-03 16:00:03.882544"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aa1d67a5b0a5663c8e637d8a8b4da13e' LIMIT 1 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-11-03 16:00:03.892029"], ["extension", "txt"], ["name", "Test"], ["token", "aa1d67a5b0a5663c8e637d8a8b4da13e"], ["updated_at", "2014-11-03 16:00:03.892029"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '889d0525f624f23c270a816dce5019dd' LIMIT 1 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-11-03 16:00:03.895112"], ["extension", "txt"], ["name", "Test"], ["token", "889d0525f624f23c270a816dce5019dd"], ["updated_at", "2014-11-03 16:00:03.895112"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '815398baefee4cdb5054756deb8d5d04' LIMIT 1 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-11-03 16:00:03.897833"], ["extension", "txt"], ["name", "Test"], ["token", "815398baefee4cdb5054756deb8d5d04"], ["updated_at", "2014-11-03 16:00:03.897833"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7c8416cbb604e043452983db2c75707e' LIMIT 1 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-11-03 16:00:03.900671"], ["extension", "txt"], ["name", "Test"], ["token", "7c8416cbb604e043452983db2c75707e"], ["updated_at", "2014-11-03 16:00:03.900671"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '735dee4265f72afb2bfc4b7142772e31' LIMIT 1 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-11-03 16:00:57.674999"], ["extension", "txt"], ["name", "Test"], ["token", "735dee4265f72afb2bfc4b7142772e31"], ["updated_at", "2014-11-03 16:00:57.674999"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '54e6334d505070496249f1c4b6d60db1' LIMIT 1 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-11-03 16:00:57.683070"], ["extension", "txt"], ["name", "Test"], ["token", "54e6334d505070496249f1c4b6d60db1"], ["updated_at", "2014-11-03 16:00:57.683070"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fa8e15848f47459f8f59467dce790534' LIMIT 1 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-11-03 16:00:57.687770"], ["extension", "txt"], ["name", "Test"], ["token", "fa8e15848f47459f8f59467dce790534"], ["updated_at", "2014-11-03 16:00:57.687770"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '828f34a30bf19992c9fe3426c9e9468f' LIMIT 1 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-11-03 16:00:57.691414"], ["extension", "txt"], ["name", "Test"], ["token", "828f34a30bf19992c9fe3426c9e9468f"], ["updated_at", "2014-11-03 16:00:57.691414"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.4ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '23599b88ad8a82df9b64b2ee4a337a23' LIMIT 1 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-11-03 16:00:57.694820"], ["extension", "txt"], ["name", "Test"], ["token", "23599b88ad8a82df9b64b2ee4a337a23"], ["updated_at", "2014-11-03 16:00:57.694820"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '961825a9cf4d84974492c9e4826896b7' LIMIT 1 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-11-03 16:01:07.693925"], ["extension", "txt"], ["name", "Test"], ["token", "961825a9cf4d84974492c9e4826896b7"], ["updated_at", "2014-11-03 16:01:07.693925"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '04695ce8cd5b19561052ac58c4c8c01a' LIMIT 1 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-11-03 16:01:07.704716"], ["extension", "txt"], ["name", "Test"], ["token", "04695ce8cd5b19561052ac58c4c8c01a"], ["updated_at", "2014-11-03 16:01:07.704716"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f3dd62bced838b2509b2e9aee9a5df16' LIMIT 1 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-11-03 16:01:07.707790"], ["extension", "txt"], ["name", "Test"], ["token", "f3dd62bced838b2509b2e9aee9a5df16"], ["updated_at", "2014-11-03 16:01:07.707790"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6426e6316a1367b3acf9c29a2b34d52a' LIMIT 1 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-11-03 16:01:07.710637"], ["extension", "txt"], ["name", "Test"], ["token", "6426e6316a1367b3acf9c29a2b34d52a"], ["updated_at", "2014-11-03 16:01:07.710637"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ce8dc66f7d127413065eb4fd5942594b' LIMIT 1 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-11-03 16:01:07.713302"], ["extension", "txt"], ["name", "Test"], ["token", "ce8dc66f7d127413065eb4fd5942594b"], ["updated_at", "2014-11-03 16:01:07.713302"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f9000d787ef896a54f4890f5c72fd403' LIMIT 1 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-11-03 16:01:32.909113"], ["extension", "txt"], ["name", "Test"], ["token", "f9000d787ef896a54f4890f5c72fd403"], ["updated_at", "2014-11-03 16:01:32.909113"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '337e73d8f3c5520918173043b755d5d8' LIMIT 1 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-11-03 16:01:32.918218"], ["extension", "txt"], ["name", "Test"], ["token", "337e73d8f3c5520918173043b755d5d8"], ["updated_at", "2014-11-03 16:01:32.918218"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'be081e142d4105c39683dbd81fa631d6' LIMIT 1 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-11-03 16:01:32.921373"], ["extension", "txt"], ["name", "Test"], ["token", "be081e142d4105c39683dbd81fa631d6"], ["updated_at", "2014-11-03 16:01:32.921373"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f389794027abf519eb8e1cf50522f9c2' LIMIT 1 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-11-03 16:01:32.924165"], ["extension", "txt"], ["name", "Test"], ["token", "f389794027abf519eb8e1cf50522f9c2"], ["updated_at", "2014-11-03 16:01:32.924165"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2b2f7171a4ca98d7d9f5bebae0cc94ee' LIMIT 1 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-11-03 16:01:32.926978"], ["extension", "txt"], ["name", "Test"], ["token", "2b2f7171a4ca98d7d9f5bebae0cc94ee"], ["updated_at", "2014-11-03 16:01:32.926978"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '46d0816ec7a6ddf7ebfc051e72cd492a' LIMIT 1 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-11-03 16:02:20.987853"], ["extension", "txt"], ["name", "Test"], ["token", "46d0816ec7a6ddf7ebfc051e72cd492a"], ["updated_at", "2014-11-03 16:02:20.987853"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd6eeb38bafc3b2d61bed1f9412b5ddab' LIMIT 1 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-11-03 16:02:20.992456"], ["extension", "txt"], ["name", "Test"], ["token", "d6eeb38bafc3b2d61bed1f9412b5ddab"], ["updated_at", "2014-11-03 16:02:20.992456"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '77fe967e9ed469ef05534dbf846dc719' LIMIT 1 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-11-03 16:02:20.995313"], ["extension", "txt"], ["name", "Test"], ["token", "77fe967e9ed469ef05534dbf846dc719"], ["updated_at", "2014-11-03 16:02:20.995313"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1fb0731aceae9c4a7a7f6d32a46a41c8' LIMIT 1 SQL (0.1ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-03 16:02:20.997577"], ["extension", "txt"], ["name", "Test"], ["token", "1fb0731aceae9c4a7a7f6d32a46a41c8"], ["updated_at", "2014-11-03 16:02:20.997577"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '947c912710fdd5cff3bee603c6ec12c0' LIMIT 1 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-11-03 16:02:20.999872"], ["extension", "txt"], ["name", "Test"], ["token", "947c912710fdd5cff3bee603c6ec12c0"], ["updated_at", "2014-11-03 16:02:20.999872"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (4.8ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:02:43', '2014-11-03 16:02:43', 517391740)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:20', '2014-11-03 16:03:20', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:20', '2014-11-03 16:03:20', 517391740)  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740) SQLite3::ConstraintException: NOT NULL constraint failed: fogged_resources.token: INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', '2014-11-03 16:03:21', '2014-11-03 16:03:21', 517391740)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-03 16:04:02', '2014-11-03 16:04:02', 517391740) Fixture Insert (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-11-03 16:04:02', '2014-11-03 16:04:02', 701625837) Fixture Insert (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-11-03 16:04:02', '2014-11-03 16:04:02', 819504217) Fixture Insert (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-11-03 16:04:02', '2014-11-03 16:04:02', 132093124) Fixture Insert (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-11-03 16:04:02', '2014-11-03 16:04:02', 431685987) 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-11-03 16:04:02', '2014-11-03 16:04:02', 68463692) 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-11-03 16:04:02', '2014-11-03 16:04:02', 591498715)  (5.2ms) commit transaction  (0.5ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b95e740679b6fba435f5cf9784afe5f4' LIMIT 1 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-11-03 16:04:02.172230"], ["extension", "txt"], ["name", "Test"], ["token", "b95e740679b6fba435f5cf9784afe5f4"], ["updated_at", "2014-11-03 16:04:02.172230"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '61a6729b52043ecb067df1ec7dcc3747' LIMIT 1 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-11-03 16:04:02.175403"], ["extension", "txt"], ["name", "Test"], ["token", "61a6729b52043ecb067df1ec7dcc3747"], ["updated_at", "2014-11-03 16:04:02.175403"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd0fb7c65849f11af5f6d145c78c90b00' LIMIT 1 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-11-03 16:04:02.178243"], ["extension", "txt"], ["name", "Test"], ["token", "d0fb7c65849f11af5f6d145c78c90b00"], ["updated_at", "2014-11-03 16:04:02.178243"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b567f53a586f88a2d7299dd82bf48c8e' LIMIT 1 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-11-03 16:04:02.181262"], ["extension", "txt"], ["name", "Test"], ["token", "b567f53a586f88a2d7299dd82bf48c8e"], ["updated_at", "2014-11-03 16:04:02.181262"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1e792e90d6e6838041d28f09c59ba5bb' LIMIT 1 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-11-03 16:04:02.184790"], ["extension", "txt"], ["name", "Test"], ["token", "1e792e90d6e6838041d28f09c59ba5bb"], ["updated_at", "2014-11-03 16:04:02.184790"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 08:01:25', '2014-11-04 08:01:25', 517391740) Fixture Insert (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-11-04 08:01:25', '2014-11-04 08:01:25', 701625837) Fixture Insert (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-11-04 08:01:25', '2014-11-04 08:01:25', 819504217) Fixture Insert (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-11-04 08:01:25', '2014-11-04 08:01:25', 132093124) Fixture Insert (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-11-04 08:01:25', '2014-11-04 08:01:25', 431685987) 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-11-04 08:01:25', '2014-11-04 08:01:25', 68463692) 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-11-04 08:01:25', '2014-11-04 08:01:25', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '503139801b9f3e03856e801a942c089b' LIMIT 1 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-11-04 08:01:25.516448"], ["extension", "txt"], ["name", "Test"], ["token", "503139801b9f3e03856e801a942c089b"], ["updated_at", "2014-11-04 08:01:25.516448"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'de4582bc60068c2a4abbd13987b77076' LIMIT 1 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-11-04 08:01:25.520017"], ["extension", "txt"], ["name", "Test"], ["token", "de4582bc60068c2a4abbd13987b77076"], ["updated_at", "2014-11-04 08:01:25.520017"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6fda1eb358ad58d74e677806098b231c' LIMIT 1 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-11-04 08:01:25.522381"], ["extension", "txt"], ["name", "Test"], ["token", "6fda1eb358ad58d74e677806098b231c"], ["updated_at", "2014-11-04 08:01:25.522381"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9d185bdd7d7be29bfa3d6d51fb3e2f95' LIMIT 1 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-11-04 08:01:25.524564"], ["extension", "txt"], ["name", "Test"], ["token", "9d185bdd7d7be29bfa3d6d51fb3e2f95"], ["updated_at", "2014-11-04 08:01:25.524564"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'dac8b5d2145b6ffbe52aa43dc24eeebe' LIMIT 1 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-11-04 08:01:25.527370"], ["extension", "txt"], ["name", "Test"], ["token", "dac8b5d2145b6ffbe52aa43dc24eeebe"], ["updated_at", "2014-11-04 08:01:25.527370"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:01:54', '2014-11-04 08:01:54', 517391740) Fixture Insert (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-11-04 08:01:54', '2014-11-04 08:01:54', 701625837) Fixture Insert (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-11-04 08:01:54', '2014-11-04 08:01:54', 819504217) Fixture Insert (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-11-04 08:01:54', '2014-11-04 08:01:54', 132093124) Fixture Insert (0.0ms) 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-11-04 08:01:54', '2014-11-04 08:01:54', 431685987) Fixture Insert (0.0ms) 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-11-04 08:01:54', '2014-11-04 08:01:54', 68463692) Fixture Insert (0.0ms) 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-11-04 08:01:54', '2014-11-04 08:01:54', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:06:25', '2014-11-04 08:06:25', 517391740) Fixture Insert (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-11-04 08:06:25', '2014-11-04 08:06:25', 701625837) Fixture Insert (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-11-04 08:06:25', '2014-11-04 08:06:25', 819504217) Fixture Insert (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-11-04 08:06:25', '2014-11-04 08:06:25', 132093124) Fixture Insert (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-11-04 08:06:25', '2014-11-04 08:06:25', 431685987) 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-11-04 08:06:25', '2014-11-04 08:06:25', 68463692) 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-11-04 08:06:25', '2014-11-04 08:06:25', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:07:28', '2014-11-04 08:07:28', 517391740) Fixture Insert (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-11-04 08:07:28', '2014-11-04 08:07:28', 701625837) Fixture Insert (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-11-04 08:07:28', '2014-11-04 08:07:28', 819504217) Fixture Insert (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-11-04 08:07:28', '2014-11-04 08:07:28', 132093124) Fixture Insert (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-11-04 08:07:28', '2014-11-04 08:07:28', 431685987) 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-11-04 08:07:28', '2014-11-04 08:07:28', 68463692) 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-11-04 08:07:28', '2014-11-04 08:07:28', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:31:48', '2014-11-04 08:31:48', 517391740) Fixture Insert (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-11-04 08:31:48', '2014-11-04 08:31:48', 701625837) Fixture Insert (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-11-04 08:31:48', '2014-11-04 08:31:48', 819504217) Fixture Insert (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-11-04 08:31:48', '2014-11-04 08:31:48', 132093124) Fixture Insert (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-11-04 08:31:48', '2014-11-04 08:31:48', 431685987) 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-11-04 08:31:48', '2014-11-04 08:31:48', 68463692) 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-11-04 08:31:48', '2014-11-04 08:31:48', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:33:13', '2014-11-04 08:33:13', 517391740) Fixture Insert (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-11-04 08:33:13', '2014-11-04 08:33:13', 701625837) Fixture Insert (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-11-04 08:33:13', '2014-11-04 08:33:13', 819504217) Fixture Insert (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-11-04 08:33:13', '2014-11-04 08:33:13', 132093124) Fixture Insert (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-11-04 08:33:13', '2014-11-04 08:33:13', 431685987) 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-11-04 08:33:13', '2014-11-04 08:33:13', 68463692) 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-11-04 08:33:13', '2014-11-04 08:33:13', 591498715)  (0.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) DROP TABLE "fogged_resources"  (0.8ms) CREATE TABLE "fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "width" integer, "height" integer, "extension" varchar(255) NOT NULL, "uploading" boolean, "content_type" varchar(255) NOT NULL, "encoding_progress" integer, "encoding_job_id" varchar(255), "duration" integer, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE INDEX "index_fogged_resources_on_token" ON "fogged_resources" ("token")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104083706') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 08:37:29', '2014-11-04 08:37:29', 517391740) Fixture Insert (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-11-04 08:37:29', '2014-11-04 08:37:29', 701625837) Fixture Insert (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-11-04 08:37:29', '2014-11-04 08:37:29', 819504217) Fixture Insert (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-11-04 08:37:29', '2014-11-04 08:37:29', 132093124) Fixture Insert (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-11-04 08:37:29', '2014-11-04 08:37:29', 431685987) 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-11-04 08:37:29', '2014-11-04 08:37:29', 68463692) 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-11-04 08:37:29', '2014-11-04 08:37:29', 591498715)  (0.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-04 08:38:48', '2014-11-04 08:38:48', 517391740) Fixture Insert (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-11-04 08:38:48', '2014-11-04 08:38:48', 701625837) Fixture Insert (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-11-04 08:38:48', '2014-11-04 08:38:48', 819504217) Fixture Insert (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-11-04 08:38:48', '2014-11-04 08:38:48', 132093124) Fixture Insert (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-11-04 08:38:48', '2014-11-04 08:38:48', 431685987) 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-11-04 08:38:48', '2014-11-04 08:38:48', 68463692) 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-11-04 08:38:48', '2014-11-04 08:38:48', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:12:42', '2014-11-04 09:12:42', 517391740) Fixture Insert (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-11-04 09:12:42', '2014-11-04 09:12:42', 701625837) Fixture Insert (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-11-04 09:12:42', '2014-11-04 09:12:42', 819504217) Fixture Insert (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-11-04 09:12:42', '2014-11-04 09:12:42', 132093124) Fixture Insert (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-11-04 09:12:42', '2014-11-04 09:12:42', 431685987) Fixture Insert (0.0ms) 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-11-04 09:12:42', '2014-11-04 09:12:42', 68463692) Fixture Insert (0.0ms) 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-11-04 09:12:42', '2014-11-04 09:12:42', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 09:16:20', '2014-11-04 09:16:20', 517391740) Fixture Insert (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-11-04 09:16:20', '2014-11-04 09:16:20', 701625837) Fixture Insert (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-11-04 09:16:20', '2014-11-04 09:16:20', 819504217) Fixture Insert (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-11-04 09:16:20', '2014-11-04 09:16:20', 132093124) Fixture Insert (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-11-04 09:16:20', '2014-11-04 09:16:20', 431685987) 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-11-04 09:16:20', '2014-11-04 09:16:20', 68463692) 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-11-04 09:16:20', '2014-11-04 09:16:20', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 09:19:28', '2014-11-04 09:19:28', 517391740) Fixture Insert (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-11-04 09:19:28', '2014-11-04 09:19:28', 701625837) Fixture Insert (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-11-04 09:19:28', '2014-11-04 09:19:28', 819504217) Fixture Insert (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-11-04 09:19:28', '2014-11-04 09:19:28', 132093124) Fixture Insert (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-11-04 09:19:28', '2014-11-04 09:19:28', 431685987) 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-11-04 09:19:28', '2014-11-04 09:19:28', 68463692) 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-11-04 09:19:28', '2014-11-04 09:19:28', 591498715)  (6.4ms) commit transaction  (0.2ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:19:46', '2014-11-04 09:19:46', 517391740) Fixture Insert (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-11-04 09:19:46', '2014-11-04 09:19:46', 701625837) Fixture Insert (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-11-04 09:19:46', '2014-11-04 09:19:46', 819504217) Fixture Insert (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-11-04 09:19:46', '2014-11-04 09:19:46', 132093124) Fixture Insert (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-11-04 09:19:46', '2014-11-04 09:19:46', 431685987) 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-11-04 09:19:46', '2014-11-04 09:19:46', 68463692) 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-11-04 09:19:46', '2014-11-04 09:19:46', 591498715)  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 09:41:47', '2014-11-04 09:41:47', 517391740) Fixture Insert (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-11-04 09:41:47', '2014-11-04 09:41:47', 701625837) Fixture Insert (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-11-04 09:41:47', '2014-11-04 09:41:47', 819504217) Fixture Insert (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-11-04 09:41:47', '2014-11-04 09:41:47', 132093124) Fixture Insert (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-11-04 09:41:47', '2014-11-04 09:41:47', 431685987) 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-11-04 09:41:47', '2014-11-04 09:41:47', 68463692) 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-11-04 09:41:47', '2014-11-04 09:41:47', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 09:41:47.530789"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:43:38', '2014-11-04 09:43:38', 517391740) Fixture Insert (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-11-04 09:43:38', '2014-11-04 09:43:38', 701625837) Fixture Insert (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-11-04 09:43:38', '2014-11-04 09:43:38', 819504217) Fixture Insert (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-11-04 09:43:38', '2014-11-04 09:43:38', 132093124) Fixture Insert (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-11-04 09:43:38', '2014-11-04 09:43:38', 431685987) 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-11-04 09:43:38', '2014-11-04 09:43:38', 68463692) 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-11-04 09:43:38', '2014-11-04 09:43:38', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 09:43:38.926352"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:46:02', '2014-11-04 09:46:02', 517391740) Fixture Insert (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-11-04 09:46:02', '2014-11-04 09:46:02', 701625837) Fixture Insert (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-11-04 09:46:02', '2014-11-04 09:46:02', 819504217) Fixture Insert (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-11-04 09:46:02', '2014-11-04 09:46:02', 132093124) Fixture Insert (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-11-04 09:46:02', '2014-11-04 09:46:02', 431685987) 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-11-04 09:46:02', '2014-11-04 09:46:02', 68463692) 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-11-04 09:46:02', '2014-11-04 09:46:02', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '504d4d7c5e5e74fa28ca7aa07c067d2f' LIMIT 1 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-11-04 09:46:02.547680"], ["extension", "txt"], ["name", "Test"], ["token", "504d4d7c5e5e74fa28ca7aa07c067d2f"], ["updated_at", "2014-11-04 09:46:02.547680"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6d2f16ecd4c08257d7b5205b875d28e3' LIMIT 1 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-11-04 09:46:02.552900"], ["extension", "txt"], ["name", "Test"], ["token", "6d2f16ecd4c08257d7b5205b875d28e3"], ["updated_at", "2014-11-04 09:46:02.552900"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e6b3a338e8743d350cb9b62be8a70e3f' LIMIT 1 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-11-04 09:46:02.559329"], ["extension", "txt"], ["name", "Test"], ["token", "e6b3a338e8743d350cb9b62be8a70e3f"], ["updated_at", "2014-11-04 09:46:02.559329"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '60b707a4f137abe722870cb43caf752f' LIMIT 1 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-11-04 09:46:02.561834"], ["extension", "txt"], ["name", "Test"], ["token", "60b707a4f137abe722870cb43caf752f"], ["updated_at", "2014-11-04 09:46:02.561834"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c9e592d37a6a26d045dc95fc549ae555' LIMIT 1 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-11-04 09:46:02.564624"], ["extension", "txt"], ["name", "Test"], ["token", "c9e592d37a6a26d045dc95fc549ae555"], ["updated_at", "2014-11-04 09:46:02.564624"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 09:46:02.578741"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:46:44', '2014-11-04 09:46:44', 517391740) Fixture Insert (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-11-04 09:46:44', '2014-11-04 09:46:44', 701625837) Fixture Insert (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-11-04 09:46:44', '2014-11-04 09:46:44', 819504217) Fixture Insert (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-11-04 09:46:44', '2014-11-04 09:46:44', 132093124) Fixture Insert (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-11-04 09:46:44', '2014-11-04 09:46:44', 431685987) 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-11-04 09:46:44', '2014-11-04 09:46:44', 68463692) 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-11-04 09:46:44', '2014-11-04 09:46:44', 591498715)  (5.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'db7dd367d5c5e05f7c6ef42d57b5e04d' LIMIT 1 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-11-04 09:46:44.300921"], ["extension", "txt"], ["name", "Test"], ["token", "db7dd367d5c5e05f7c6ef42d57b5e04d"], ["updated_at", "2014-11-04 09:46:44.300921"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '27132d9a243745b0405552335937ee8c' LIMIT 1 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-11-04 09:46:44.304203"], ["extension", "txt"], ["name", "Test"], ["token", "27132d9a243745b0405552335937ee8c"], ["updated_at", "2014-11-04 09:46:44.304203"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4f0ccdb0bb3b8a7877f4ecf8c4557e04' LIMIT 1 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-11-04 09:46:44.310458"], ["extension", "txt"], ["name", "Test"], ["token", "4f0ccdb0bb3b8a7877f4ecf8c4557e04"], ["updated_at", "2014-11-04 09:46:44.310458"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'cdf615abf2db025bfc2da36003d57087' LIMIT 1 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-11-04 09:46:44.313682"], ["extension", "txt"], ["name", "Test"], ["token", "cdf615abf2db025bfc2da36003d57087"], ["updated_at", "2014-11-04 09:46:44.313682"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd790e88f1cd5bee623dfdd7e61cc9b8b' LIMIT 1 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-11-04 09:46:44.316149"], ["extension", "txt"], ["name", "Test"], ["token", "d790e88f1cd5bee623dfdd7e61cc9b8b"], ["updated_at", "2014-11-04 09:46:44.316149"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 09:46:44.328709"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 09:47:10', '2014-11-04 09:47:10', 517391740) Fixture Insert (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-11-04 09:47:10', '2014-11-04 09:47:10', 701625837) Fixture Insert (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-11-04 09:47:10', '2014-11-04 09:47:10', 819504217) Fixture Insert (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-11-04 09:47:10', '2014-11-04 09:47:10', 132093124) Fixture Insert (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-11-04 09:47:10', '2014-11-04 09:47:10', 431685987) 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-11-04 09:47:10', '2014-11-04 09:47:10', 68463692) 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-11-04 09:47:10', '2014-11-04 09:47:10', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '43d6a2f279cd6b64e3f0efc232095ba0' LIMIT 1 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-11-04 09:47:10.407589"], ["extension", "txt"], ["name", "Test"], ["token", "43d6a2f279cd6b64e3f0efc232095ba0"], ["updated_at", "2014-11-04 09:47:10.407589"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '12ff12fb5f3d112fe7b47d2e8520f0e9' LIMIT 1 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-11-04 09:47:10.410855"], ["extension", "txt"], ["name", "Test"], ["token", "12ff12fb5f3d112fe7b47d2e8520f0e9"], ["updated_at", "2014-11-04 09:47:10.410855"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '80754341a19e48a3a16e77f808e33b3a' LIMIT 1 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-11-04 09:47:10.417463"], ["extension", "txt"], ["name", "Test"], ["token", "80754341a19e48a3a16e77f808e33b3a"], ["updated_at", "2014-11-04 09:47:10.417463"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd16cbcaff5aea0de85ba051fe43b60cd' LIMIT 1 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-11-04 09:47:10.420187"], ["extension", "txt"], ["name", "Test"], ["token", "d16cbcaff5aea0de85ba051fe43b60cd"], ["updated_at", "2014-11-04 09:47:10.420187"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '819858bf483eb41573c10be52519239a' LIMIT 1 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-11-04 09:47:10.422753"], ["extension", "txt"], ["name", "Test"], ["token", "819858bf483eb41573c10be52519239a"], ["updated_at", "2014-11-04 09:47:10.422753"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 09:47:10.435710"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-04 10:06:47', '2014-11-04 10:06:47', 517391740) Fixture Insert (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-11-04 10:06:47', '2014-11-04 10:06:47', 701625837) Fixture Insert (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-11-04 10:06:47', '2014-11-04 10:06:47', 819504217) Fixture Insert (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-11-04 10:06:47', '2014-11-04 10:06:47', 132093124) Fixture Insert (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-11-04 10:06:47', '2014-11-04 10:06:47', 431685987) 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-11-04 10:06:47', '2014-11-04 10:06:47', 68463692) 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-11-04 10:06:47', '2014-11-04 10:06:47', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd8f7206df7f20d336916b69e6869e365' LIMIT 1 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-11-04 10:06:47.324599"], ["extension", "txt"], ["name", "Test"], ["token", "d8f7206df7f20d336916b69e6869e365"], ["updated_at", "2014-11-04 10:06:47.324599"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '87cc96fcb0288dcffeec5f61b6bf1565' LIMIT 1 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-11-04 10:06:47.328465"], ["extension", "txt"], ["name", "Test"], ["token", "87cc96fcb0288dcffeec5f61b6bf1565"], ["updated_at", "2014-11-04 10:06:47.328465"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4653fc0cfed764ca34df7fb1b579af44' LIMIT 1 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-11-04 10:06:47.334582"], ["extension", "txt"], ["name", "Test"], ["token", "4653fc0cfed764ca34df7fb1b579af44"], ["updated_at", "2014-11-04 10:06:47.334582"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '947a7ccc482836ad1a275c079e62d068' LIMIT 1 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-11-04 10:06:47.338784"], ["extension", "txt"], ["name", "Test"], ["token", "947a7ccc482836ad1a275c079e62d068"], ["updated_at", "2014-11-04 10:06:47.338784"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5c660fe25c0b5363d87baab551772981' LIMIT 1 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-11-04 10:06:47.341659"], ["extension", "txt"], ["name", "Test"], ["token", "5c660fe25c0b5363d87baab551772981"], ["updated_at", "2014-11-04 10:06:47.341659"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 10:06:47.355886"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:07:46', '2014-11-04 10:07:46', 517391740) Fixture Insert (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-11-04 10:07:46', '2014-11-04 10:07:46', 701625837) Fixture Insert (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-11-04 10:07:46', '2014-11-04 10:07:46', 819504217) Fixture Insert (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-11-04 10:07:46', '2014-11-04 10:07:46', 132093124) Fixture Insert (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-11-04 10:07:46', '2014-11-04 10:07:46', 431685987) 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-11-04 10:07:46', '2014-11-04 10:07:46', 68463692) 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-11-04 10:07:46', '2014-11-04 10:07:46', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7144710b2fb523b60183ff458f9018da' LIMIT 1 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-11-04 10:07:46.331954"], ["extension", "txt"], ["name", "Test"], ["token", "7144710b2fb523b60183ff458f9018da"], ["updated_at", "2014-11-04 10:07:46.331954"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6440d4128600eea827a9f9d70e6afbe8' LIMIT 1 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-11-04 10:07:46.335202"], ["extension", "txt"], ["name", "Test"], ["token", "6440d4128600eea827a9f9d70e6afbe8"], ["updated_at", "2014-11-04 10:07:46.335202"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'dfd7046ef25fe5f804e4ee22c7415dce' LIMIT 1 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-11-04 10:07:46.341856"], ["extension", "txt"], ["name", "Test"], ["token", "dfd7046ef25fe5f804e4ee22c7415dce"], ["updated_at", "2014-11-04 10:07:46.341856"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '458bcd203e275f789097bba7c399b16c' LIMIT 1 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-11-04 10:07:46.344841"], ["extension", "txt"], ["name", "Test"], ["token", "458bcd203e275f789097bba7c399b16c"], ["updated_at", "2014-11-04 10:07:46.344841"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b9885f6566757d1847d9ad3993526b22' LIMIT 1 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-11-04 10:07:46.347616"], ["extension", "txt"], ["name", "Test"], ["token", "b9885f6566757d1847d9ad3993526b22"], ["updated_at", "2014-11-04 10:07:46.347616"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 10:07:46.360476"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 10:08:03', '2014-11-04 10:08:03', 517391740) Fixture Insert (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-11-04 10:08:03', '2014-11-04 10:08:03', 701625837) Fixture Insert (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-11-04 10:08:03', '2014-11-04 10:08:03', 819504217) Fixture Insert (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-11-04 10:08:03', '2014-11-04 10:08:03', 132093124) Fixture Insert (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-11-04 10:08:03', '2014-11-04 10:08:03', 431685987) 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-11-04 10:08:03', '2014-11-04 10:08:03', 68463692) 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-11-04 10:08:03', '2014-11-04 10:08:03', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '012a994622873d5222ff983398c01749' LIMIT 1 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-11-04 10:08:03.442335"], ["extension", "txt"], ["name", "Test"], ["token", "012a994622873d5222ff983398c01749"], ["updated_at", "2014-11-04 10:08:03.442335"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:27:44', '2014-11-04 10:27:44', 517391740) Fixture Insert (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-11-04 10:27:44', '2014-11-04 10:27:44', 701625837) Fixture Insert (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-11-04 10:27:44', '2014-11-04 10:27:44', 819504217) Fixture Insert (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-11-04 10:27:44', '2014-11-04 10:27:44', 132093124) Fixture Insert (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-11-04 10:27:44', '2014-11-04 10:27:44', 431685987) 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-11-04 10:27:44', '2014-11-04 10:27:44', 68463692) 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-11-04 10:27:44', '2014-11-04 10:27:44', 591498715)  (5.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5d961d52e63407b992be646fe93db21b' LIMIT 1 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-11-04 10:27:44.659661"], ["extension", "txt"], ["name", "Test"], ["token", "5d961d52e63407b992be646fe93db21b"], ["updated_at", "2014-11-04 10:27:44.659661"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:28:41', '2014-11-04 10:28:41', 517391740) Fixture Insert (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-11-04 10:28:41', '2014-11-04 10:28:41', 701625837) Fixture Insert (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-11-04 10:28:41', '2014-11-04 10:28:41', 819504217) Fixture Insert (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-11-04 10:28:41', '2014-11-04 10:28:41', 132093124) Fixture Insert (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-11-04 10:28:41', '2014-11-04 10:28:41', 431685987) 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-11-04 10:28:41', '2014-11-04 10:28:41', 68463692) 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-11-04 10:28:41', '2014-11-04 10:28:41', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '479e834e7c911969b0103467a140cdb7' LIMIT 1 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-11-04 10:28:41.252966"], ["extension", "txt"], ["name", "Test"], ["token", "479e834e7c911969b0103467a140cdb7"], ["updated_at", "2014-11-04 10:28:41.252966"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:29:50', '2014-11-04 10:29:50', 517391740) Fixture Insert (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-11-04 10:29:50', '2014-11-04 10:29:50', 701625837) Fixture Insert (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-11-04 10:29:50', '2014-11-04 10:29:50', 819504217) Fixture Insert (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-11-04 10:29:50', '2014-11-04 10:29:50', 132093124) Fixture Insert (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-11-04 10:29:50', '2014-11-04 10:29:50', 431685987) 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-11-04 10:29:50', '2014-11-04 10:29:50', 68463692) 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-11-04 10:29:50', '2014-11-04 10:29:50', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5f1fe079b459481eba3905ad02f734e1' LIMIT 1 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-11-04 10:29:50.370332"], ["extension", "txt"], ["name", "Test"], ["token", "5f1fe079b459481eba3905ad02f734e1"], ["updated_at", "2014-11-04 10:29:50.370332"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 10:53:48', '2014-11-04 10:53:48', 517391740) Fixture Insert (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-11-04 10:53:48', '2014-11-04 10:53:48', 701625837) Fixture Insert (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-11-04 10:53:48', '2014-11-04 10:53:48', 819504217) Fixture Insert (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-11-04 10:53:48', '2014-11-04 10:53:48', 132093124) Fixture Insert (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-11-04 10:53:48', '2014-11-04 10:53:48', 431685987) 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-11-04 10:53:48', '2014-11-04 10:53:48', 68463692) 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-11-04 10:53:48', '2014-11-04 10:53:48', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f0b83f302a8389734cafa02fd44a0f66' LIMIT 1 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-11-04 10:53:48.199965"], ["extension", "txt"], ["name", "Test"], ["token", "f0b83f302a8389734cafa02fd44a0f66"], ["updated_at", "2014-11-04 10:53:48.199965"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:55:00', '2014-11-04 10:55:00', 517391740) Fixture Insert (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-11-04 10:55:00', '2014-11-04 10:55:00', 701625837) Fixture Insert (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-11-04 10:55:00', '2014-11-04 10:55:00', 819504217) Fixture Insert (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-11-04 10:55:00', '2014-11-04 10:55:00', 132093124) Fixture Insert (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-11-04 10:55:00', '2014-11-04 10:55:00', 431685987) 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-11-04 10:55:00', '2014-11-04 10:55:00', 68463692) 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-11-04 10:55:00', '2014-11-04 10:55:00', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7c26ff309e1f8cff106b456a864aa455' LIMIT 1 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-11-04 10:55:00.281738"], ["extension", "txt"], ["name", "Test"], ["token", "7c26ff309e1f8cff106b456a864aa455"], ["updated_at", "2014-11-04 10:55:00.281738"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:56:27', '2014-11-04 10:56:27', 517391740) Fixture Insert (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-11-04 10:56:27', '2014-11-04 10:56:27', 701625837) Fixture Insert (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-11-04 10:56:27', '2014-11-04 10:56:27', 819504217) Fixture Insert (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-11-04 10:56:27', '2014-11-04 10:56:27', 132093124) Fixture Insert (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-11-04 10:56:27', '2014-11-04 10:56:27', 431685987) 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-11-04 10:56:27', '2014-11-04 10:56:27', 68463692) 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-11-04 10:56:27', '2014-11-04 10:56:27', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4409545077d412accbd88d0524bc8292' LIMIT 1 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-11-04 10:56:27.596778"], ["extension", "txt"], ["name", "Test"], ["token", "4409545077d412accbd88d0524bc8292"], ["updated_at", "2014-11-04 10:56:27.596778"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:57:00', '2014-11-04 10:57:00', 517391740) Fixture Insert (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-11-04 10:57:00', '2014-11-04 10:57:00', 701625837) Fixture Insert (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-11-04 10:57:00', '2014-11-04 10:57:00', 819504217) Fixture Insert (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-11-04 10:57:00', '2014-11-04 10:57:00', 132093124) Fixture Insert (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-11-04 10:57:00', '2014-11-04 10:57:00', 431685987) 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-11-04 10:57:00', '2014-11-04 10:57:00', 68463692) 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-11-04 10:57:00', '2014-11-04 10:57:00', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '44451603a8979b5a28bdf989acc67293' LIMIT 1 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-11-04 10:57:00.079345"], ["extension", "txt"], ["name", "Test"], ["token", "44451603a8979b5a28bdf989acc67293"], ["updated_at", "2014-11-04 10:57:00.079345"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:57:09', '2014-11-04 10:57:09', 517391740) Fixture Insert (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-11-04 10:57:09', '2014-11-04 10:57:09', 701625837) Fixture Insert (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-11-04 10:57:09', '2014-11-04 10:57:09', 819504217) Fixture Insert (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-11-04 10:57:09', '2014-11-04 10:57:09', 132093124) Fixture Insert (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-11-04 10:57:09', '2014-11-04 10:57:09', 431685987) 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-11-04 10:57:09', '2014-11-04 10:57:09', 68463692) 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-11-04 10:57:09', '2014-11-04 10:57:09', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2a0f4d208bc776a575abb88f61123a7b' LIMIT 1 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-11-04 10:57:09.744240"], ["extension", "txt"], ["name", "Test"], ["token", "2a0f4d208bc776a575abb88f61123a7b"], ["updated_at", "2014-11-04 10:57:09.744240"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '31bff19079ce6fa9bc30f8dcbdbfff84' LIMIT 1 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-11-04 10:57:09.750137"], ["extension", "txt"], ["name", "Test"], ["token", "31bff19079ce6fa9bc30f8dcbdbfff84"], ["updated_at", "2014-11-04 10:57:09.750137"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '67e60948d0212dc04c983223da0026f7' LIMIT 1 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-11-04 10:57:09.757027"], ["extension", "txt"], ["name", "Test"], ["token", "67e60948d0212dc04c983223da0026f7"], ["updated_at", "2014-11-04 10:57:09.757027"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1d059bc3ccbb5ee5ea26a3d6dfcbae6c' LIMIT 1 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-11-04 10:57:09.760850"], ["extension", "txt"], ["name", "Test"], ["token", "1d059bc3ccbb5ee5ea26a3d6dfcbae6c"], ["updated_at", "2014-11-04 10:57:09.760850"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1be60cb01076fd041706fbcfff1dbd1b' LIMIT 1 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-11-04 10:57:09.764831"], ["extension", "txt"], ["name", "Test"], ["token", "1be60cb01076fd041706fbcfff1dbd1b"], ["updated_at", "2014-11-04 10:57:09.764831"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 10:57:09.779603"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (3.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:57:19', '2014-11-04 10:57:19', 517391740) Fixture Insert (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-11-04 10:57:19', '2014-11-04 10:57:19', 701625837) Fixture Insert (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-11-04 10:57:19', '2014-11-04 10:57:19', 819504217) Fixture Insert (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-11-04 10:57:19', '2014-11-04 10:57:19', 132093124) Fixture Insert (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-11-04 10:57:19', '2014-11-04 10:57:19', 431685987) 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-11-04 10:57:19', '2014-11-04 10:57:19', 68463692) 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-11-04 10:57:19', '2014-11-04 10:57:19', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 10:59:49', '2014-11-04 10:59:49', 517391740) Fixture Insert (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-11-04 10:59:49', '2014-11-04 10:59:49', 701625837) Fixture Insert (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-11-04 10:59:49', '2014-11-04 10:59:49', 819504217) Fixture Insert (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-11-04 10:59:49', '2014-11-04 10:59:49', 132093124) Fixture Insert (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-11-04 10:59:49', '2014-11-04 10:59:49', 431685987) 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-11-04 10:59:49', '2014-11-04 10:59:49', 68463692) 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-11-04 10:59:49', '2014-11-04 10:59:49', 591498715)  (0.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:00:10', '2014-11-04 11:00:10', 517391740) Fixture Insert (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-11-04 11:00:10', '2014-11-04 11:00:10', 701625837) Fixture Insert (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-11-04 11:00:10', '2014-11-04 11:00:10', 819504217) Fixture Insert (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-11-04 11:00:10', '2014-11-04 11:00:10', 132093124) Fixture Insert (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-11-04 11:00:10', '2014-11-04 11:00:10', 431685987) 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-11-04 11:00:10', '2014-11-04 11:00:10', 68463692) 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-11-04 11:00:10', '2014-11-04 11:00:10', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:00:10.306459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:02:39', '2014-11-04 11:02:39', 517391740) Fixture Insert (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-11-04 11:02:39', '2014-11-04 11:02:39', 701625837) Fixture Insert (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-11-04 11:02:39', '2014-11-04 11:02:39', 819504217) Fixture Insert (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-11-04 11:02:39', '2014-11-04 11:02:39', 132093124) Fixture Insert (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-11-04 11:02:39', '2014-11-04 11:02:39', 431685987) 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-11-04 11:02:39', '2014-11-04 11:02:39', 68463692) 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-11-04 11:02:39', '2014-11-04 11:02:39', 591498715)  (0.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 11:02:39.258233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:02:39.271234"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:02:39.271075"], ["updated_at", "2014-11-04 11:02:39.271234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-04 11:02:54', '2014-11-04 11:02:54', 517391740) Fixture Insert (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-11-04 11:02:54', '2014-11-04 11:02:54', 701625837) Fixture Insert (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-11-04 11:02:54', '2014-11-04 11:02:54', 819504217) Fixture Insert (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-11-04 11:02:54', '2014-11-04 11:02:54', 132093124) Fixture Insert (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-11-04 11:02:54', '2014-11-04 11:02:54', 431685987) 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-11-04 11:02:54', '2014-11-04 11:02:54', 68463692) 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-11-04 11:02:54', '2014-11-04 11:02:54', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '01b6beb9e357cadea2e5b6401a882ab9' LIMIT 1 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-11-04 11:02:54.905824"], ["extension", "txt"], ["name", "Test"], ["token", "01b6beb9e357cadea2e5b6401a882ab9"], ["updated_at", "2014-11-04 11:02:54.905824"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5712429837591f309fc00742a7ef7184' LIMIT 1 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-11-04 11:02:54.910875"], ["extension", "txt"], ["name", "Test"], ["token", "5712429837591f309fc00742a7ef7184"], ["updated_at", "2014-11-04 11:02:54.910875"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'eecdda60061ce3cf5b9e9b10f79f3d72' LIMIT 1 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-11-04 11:02:54.916889"], ["extension", "txt"], ["name", "Test"], ["token", "eecdda60061ce3cf5b9e9b10f79f3d72"], ["updated_at", "2014-11-04 11:02:54.916889"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2b7380d0abf9cfe9694bab7c1b44798d' LIMIT 1 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-11-04 11:02:54.919915"], ["extension", "txt"], ["name", "Test"], ["token", "2b7380d0abf9cfe9694bab7c1b44798d"], ["updated_at", "2014-11-04 11:02:54.919915"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '56f8fd417c09453b634c87627343ba39' LIMIT 1 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-11-04 11:02:54.923715"], ["extension", "txt"], ["name", "Test"], ["token", "56f8fd417c09453b634c87627343ba39"], ["updated_at", "2014-11-04 11:02:54.923715"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 11:02:54.940340"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 11:02:54.948808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:02:54.960045"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:02:54.959894"], ["updated_at", "2014-11-04 11:02:54.960045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:04:36', '2014-11-04 11:04:36', 517391740) Fixture Insert (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-11-04 11:04:36', '2014-11-04 11:04:36', 701625837) Fixture Insert (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-11-04 11:04:36', '2014-11-04 11:04:36', 819504217) Fixture Insert (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-11-04 11:04:36', '2014-11-04 11:04:36', 132093124) Fixture Insert (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-11-04 11:04:36', '2014-11-04 11:04:36', 431685987) 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-11-04 11:04:36', '2014-11-04 11:04:36', 68463692) 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-11-04 11:04:36', '2014-11-04 11:04:36', 591498715)  (0.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:04:43', '2014-11-04 11:04:43', 517391740) Fixture Insert (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-11-04 11:04:43', '2014-11-04 11:04:43', 701625837) Fixture Insert (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-11-04 11:04:43', '2014-11-04 11:04:43', 819504217) Fixture Insert (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-11-04 11:04:43', '2014-11-04 11:04:43', 132093124) Fixture Insert (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-11-04 11:04:43', '2014-11-04 11:04:43', 431685987) 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-11-04 11:04:43', '2014-11-04 11:04:43', 68463692) 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-11-04 11:04:43', '2014-11-04 11:04:43', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:04:43.311202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:04:43.323235"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:04:43.323103"], ["updated_at", "2014-11-04 11:04:43.323235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:04:58', '2014-11-04 11:04:58', 517391740) Fixture Insert (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-11-04 11:04:58', '2014-11-04 11:04:58', 701625837) Fixture Insert (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-11-04 11:04:58', '2014-11-04 11:04:58', 819504217) Fixture Insert (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-11-04 11:04:58', '2014-11-04 11:04:58', 132093124) Fixture Insert (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-11-04 11:04:58', '2014-11-04 11:04:58', 431685987) 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-11-04 11:04:58', '2014-11-04 11:04:58', 68463692) 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-11-04 11:04:58', '2014-11-04 11:04:58', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:04:58.715832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:04:58.727230"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:04:58.727103"], ["updated_at", "2014-11-04 11:04:58.727230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:05:05', '2014-11-04 11:05:05', 517391740) Fixture Insert (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-11-04 11:05:05', '2014-11-04 11:05:05', 701625837) Fixture Insert (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-11-04 11:05:05', '2014-11-04 11:05:05', 819504217) Fixture Insert (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-11-04 11:05:05', '2014-11-04 11:05:05', 132093124) Fixture Insert (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-11-04 11:05:05', '2014-11-04 11:05:05', 431685987) 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-11-04 11:05:05', '2014-11-04 11:05:05', 68463692) 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-11-04 11:05:05', '2014-11-04 11:05:05', 591498715)  (0.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-04 11:05:05.746947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:05:05.758940"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:05:05.758802"], ["updated_at", "2014-11-04 11:05:05.758940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:06:44', '2014-11-04 11:06:44', 517391740) Fixture Insert (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-11-04 11:06:44', '2014-11-04 11:06:44', 701625837) Fixture Insert (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-11-04 11:06:44', '2014-11-04 11:06:44', 819504217) Fixture Insert (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-11-04 11:06:44', '2014-11-04 11:06:44', 132093124) Fixture Insert (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-11-04 11:06:44', '2014-11-04 11:06:44', 431685987) 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-11-04 11:06:44', '2014-11-04 11:06:44', 68463692) 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-11-04 11:06:44', '2014-11-04 11:06:44', 591498715)  (5.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown --------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting --------------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:07:43', '2014-11-04 11:07:43', 517391740) Fixture Insert (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-11-04 11:07:43', '2014-11-04 11:07:43', 701625837) Fixture Insert (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-11-04 11:07:43', '2014-11-04 11:07:43', 819504217) Fixture Insert (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-11-04 11:07:43', '2014-11-04 11:07:43', 132093124) Fixture Insert (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-11-04 11:07:43', '2014-11-04 11:07:43', 431685987) 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-11-04 11:07:43', '2014-11-04 11:07:43', 68463692) 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-11-04 11:07:43', '2014-11-04 11:07:43', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 11:07:43.504199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:07:43.510639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:43.522688"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:07:43.000000000 Z\n updated_at: 2014-11-04 11:07:43.510639000 Z\n"], ["run_at", "2014-11-04 11:07:53.513101"], ["updated_at", "2014-11-04 11:07:43.522688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:43.527289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 11:07:43.529928"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:43.533117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 11:07:43.536142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:07:43.539549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:43.543522"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:07:43.000000000 Z\n updated_at: 2014-11-04 11:07:43.539549000 Z\n"], ["run_at", "2014-11-04 11:07:53.540518"], ["updated_at", "2014-11-04 11:07:43.543522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:07:49', '2014-11-04 11:07:49', 517391740) Fixture Insert (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-11-04 11:07:49', '2014-11-04 11:07:49', 701625837) Fixture Insert (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-11-04 11:07:49', '2014-11-04 11:07:49', 819504217) Fixture Insert (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-11-04 11:07:49', '2014-11-04 11:07:49', 132093124) Fixture Insert (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-11-04 11:07:49', '2014-11-04 11:07:49', 431685987) 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-11-04 11:07:49', '2014-11-04 11:07:49', 68463692) 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-11-04 11:07:49', '2014-11-04 11:07:49', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:07:49.466979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:49.480544"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:07:49.480379"], ["updated_at", "2014-11-04 11:07:49.480544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5458df317a039c796cb7a44389c89939' LIMIT 1 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-11-04 11:07:49.490129"], ["extension", "txt"], ["name", "Test"], ["token", "5458df317a039c796cb7a44389c89939"], ["updated_at", "2014-11-04 11:07:49.490129"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '014795c0a0ba4c61f80de23459daea62' LIMIT 1 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-11-04 11:07:49.493391"], ["extension", "txt"], ["name", "Test"], ["token", "014795c0a0ba4c61f80de23459daea62"], ["updated_at", "2014-11-04 11:07:49.493391"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7342cdd385659d3f9676a388f6ad58a8' LIMIT 1 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-11-04 11:07:49.498634"], ["extension", "txt"], ["name", "Test"], ["token", "7342cdd385659d3f9676a388f6ad58a8"], ["updated_at", "2014-11-04 11:07:49.498634"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '013fee2abd5cd2a794367b8958b507df' LIMIT 1 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-11-04 11:07:49.501137"], ["extension", "txt"], ["name", "Test"], ["token", "013fee2abd5cd2a794367b8958b507df"], ["updated_at", "2014-11-04 11:07:49.501137"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c37a7e2e7286ed9fb5765ec8fc597bb3' LIMIT 1 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-11-04 11:07:49.504310"], ["extension", "txt"], ["name", "Test"], ["token", "c37a7e2e7286ed9fb5765ec8fc597bb3"], ["updated_at", "2014-11-04 11:07:49.504310"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 11:07:49.515471"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 11:07:49.524846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:49.528161"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:07:49.528078"], ["updated_at", "2014-11-04 11:07:49.528161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:49.531937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:07:49.534276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:49.537756"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:07:49.000000000 Z\n updated_at: 2014-11-04 11:07:49.534276000 Z\n"], ["run_at", "2014-11-04 11:07:59.535114"], ["updated_at", "2014-11-04 11:07:49.537756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:49.541461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 11:07:49.544173"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:49.547614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:07:49.551185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:07:49.553660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:07:49.557087"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:07:49.000000000 Z\n updated_at: 2014-11-04 11:07:49.553660000 Z\n"], ["run_at", "2014-11-04 11:07:59.554352"], ["updated_at", "2014-11-04 11:07:49.557087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 11:08:57', '2014-11-04 11:08:57', 517391740) Fixture Insert (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-11-04 11:08:57', '2014-11-04 11:08:57', 701625837) Fixture Insert (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-11-04 11:08:57', '2014-11-04 11:08:57', 819504217) Fixture Insert (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-11-04 11:08:57', '2014-11-04 11:08:57', 132093124) Fixture Insert (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-11-04 11:08:57', '2014-11-04 11:08:57', 431685987) 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-11-04 11:08:57', '2014-11-04 11:08:57', 68463692) 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-11-04 11:08:57', '2014-11-04 11:08:57', 591498715)  (5.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 11:08:57.716446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:08:57.729489"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:08:57.729321"], ["updated_at", "2014-11-04 11:08:57.729489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ba3c7045516b40140fc7d784fee88c77' LIMIT 1 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-11-04 11:08:57.738759"], ["extension", "txt"], ["name", "Test"], ["token", "ba3c7045516b40140fc7d784fee88c77"], ["updated_at", "2014-11-04 11:08:57.738759"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '896d5a07bc95f35fdc4026b39cb0150a' LIMIT 1 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-11-04 11:08:57.741754"], ["extension", "txt"], ["name", "Test"], ["token", "896d5a07bc95f35fdc4026b39cb0150a"], ["updated_at", "2014-11-04 11:08:57.741754"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3ce0abc74011ded3c12e330a73149d1b' LIMIT 1 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-11-04 11:08:57.751911"], ["extension", "txt"], ["name", "Test"], ["token", "3ce0abc74011ded3c12e330a73149d1b"], ["updated_at", "2014-11-04 11:08:57.751911"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f03f84f878c2b0cabb87f04f0f2b323b' LIMIT 1 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-11-04 11:08:57.756644"], ["extension", "txt"], ["name", "Test"], ["token", "f03f84f878c2b0cabb87f04f0f2b323b"], ["updated_at", "2014-11-04 11:08:57.756644"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'af058b33fee69b53832cd4e50d22ede7' LIMIT 1 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-11-04 11:08:57.761726"], ["extension", "txt"], ["name", "Test"], ["token", "af058b33fee69b53832cd4e50d22ede7"], ["updated_at", "2014-11-04 11:08:57.761726"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 11:08:57.773978"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:08:57.779243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:08:57.785489"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:08:57.785319"], ["updated_at", "2014-11-04 11:08:57.785489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting --------------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:09:06', '2014-11-04 11:09:06', 517391740) Fixture Insert (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-11-04 11:09:06', '2014-11-04 11:09:06', 701625837) Fixture Insert (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-11-04 11:09:06', '2014-11-04 11:09:06', 819504217) Fixture Insert (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-11-04 11:09:06', '2014-11-04 11:09:06', 132093124) Fixture Insert (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-11-04 11:09:06', '2014-11-04 11:09:06', 431685987) 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-11-04 11:09:06', '2014-11-04 11:09:06', 68463692) 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-11-04 11:09:06', '2014-11-04 11:09:06', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-04 11:09:06.928166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:09:06.938081"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:09:06.937962"], ["updated_at", "2014-11-04 11:09:06.938081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f602f0f49d0e10df61add1b9c0d14551' LIMIT 1 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-11-04 11:09:06.953737"], ["extension", "txt"], ["name", "Test"], ["token", "f602f0f49d0e10df61add1b9c0d14551"], ["updated_at", "2014-11-04 11:09:06.953737"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a2ea544a214f2e6e4823f349273654ad' LIMIT 1 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-11-04 11:09:06.957009"], ["extension", "txt"], ["name", "Test"], ["token", "a2ea544a214f2e6e4823f349273654ad"], ["updated_at", "2014-11-04 11:09:06.957009"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4be659c25d2b51861503c3b7f8531a6a' LIMIT 1 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-11-04 11:09:06.961817"], ["extension", "txt"], ["name", "Test"], ["token", "4be659c25d2b51861503c3b7f8531a6a"], ["updated_at", "2014-11-04 11:09:06.961817"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bf190479c2d60da5e5e0911fd412cda7' LIMIT 1 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-11-04 11:09:06.964031"], ["extension", "txt"], ["name", "Test"], ["token", "bf190479c2d60da5e5e0911fd412cda7"], ["updated_at", "2014-11-04 11:09:06.964031"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0c74f224ba52dd5c684f7a6f29e3a8ee' LIMIT 1 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-11-04 11:09:06.966967"], ["extension", "txt"], ["name", "Test"], ["token", "0c74f224ba52dd5c684f7a6f29e3a8ee"], ["updated_at", "2014-11-04 11:09:06.966967"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 11:09:06.980436"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 11:09:06.986930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:09:06.989657"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:09:06.989578"], ["updated_at", "2014-11-04 11:09:06.989657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:09:06.993270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:09:06.995490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:09:06.998786"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:09:06.000000000 Z\n updated_at: 2014-11-04 11:09:06.995490000 Z\n"], ["run_at", "2014-11-04 11:09:16.996215"], ["updated_at", "2014-11-04 11:09:06.998786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:09:07.002274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 11:09:07.005895"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:09:07.009923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:09:07.013302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:09:07.015437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:09:07.018550"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:09:06.000000000 Z\n updated_at: 2014-11-04 11:09:07.015437000 Z\n"], ["run_at", "2014-11-04 11:09:17.016075"], ["updated_at", "2014-11-04 11:09:07.018550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 11:17:45', '2014-11-04 11:17:45', 517391740) Fixture Insert (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-11-04 11:17:45', '2014-11-04 11:17:45', 701625837) Fixture Insert (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-11-04 11:17:45', '2014-11-04 11:17:45', 819504217) Fixture Insert (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-11-04 11:17:45', '2014-11-04 11:17:45', 132093124) Fixture Insert (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-11-04 11:17:45', '2014-11-04 11:17:45', 431685987) 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-11-04 11:17:45', '2014-11-04 11:17:45', 68463692) 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-11-04 11:17:45', '2014-11-04 11:17:45', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 11:17:45.096550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:17:45.101930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:17:45.113740"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:17:45.000000000 Z\n updated_at: 2014-11-04 11:17:45.101930000 Z\n"], ["run_at", "2014-11-04 11:17:55.103694"], ["updated_at", "2014-11-04 11:17:45.113740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:17:45.117777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 11:17:45.120501"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:17:45.124384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 11:17:45.127836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 11:17:45.129830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:17:45.133004"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 11:17:45.000000000 Z\n updated_at: 2014-11-04 11:17:45.129830000 Z\n"], ["run_at", "2014-11-04 11:17:55.130496"], ["updated_at", "2014-11-04 11:17:45.133004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2e0be9ac10acd9c9734a8b81145d1800' LIMIT 1 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-11-04 11:17:45.142244"], ["extension", "txt"], ["name", "Test"], ["token", "2e0be9ac10acd9c9734a8b81145d1800"], ["updated_at", "2014-11-04 11:17:45.142244"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '281c40a133197df7f2fe8deeac0be0a1' LIMIT 1 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-11-04 11:17:45.148070"], ["extension", "txt"], ["name", "Test"], ["token", "281c40a133197df7f2fe8deeac0be0a1"], ["updated_at", "2014-11-04 11:17:45.148070"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd70d2b7d6138032f1e7500c6d15284cb' LIMIT 1 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-11-04 11:17:45.154656"], ["extension", "txt"], ["name", "Test"], ["token", "d70d2b7d6138032f1e7500c6d15284cb"], ["updated_at", "2014-11-04 11:17:45.154656"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2438c5c98600f8c11dcd03fc029daaf2' LIMIT 1 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-11-04 11:17:45.157588"], ["extension", "txt"], ["name", "Test"], ["token", "2438c5c98600f8c11dcd03fc029daaf2"], ["updated_at", "2014-11-04 11:17:45.157588"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8d42541d69b75d4e7fca8797d7a240c1' LIMIT 1 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-11-04 11:17:45.161091"], ["extension", "txt"], ["name", "Test"], ["token", "8d42541d69b75d4e7fca8797d7a240c1"], ["updated_at", "2014-11-04 11:17:45.161091"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 11:17:45.171805"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 11:17:45.177092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:17:45.179789"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:17:45.179709"], ["updated_at", "2014-11-04 11:17:45.179789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 11:17:45.190515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 11:17:45.193573"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 11:17:45.193495"], ["updated_at", "2014-11-04 11:17:45.193573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 12:24:44', '2014-11-04 12:24:44', 517391740) Fixture Insert (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-11-04 12:24:44', '2014-11-04 12:24:44', 701625837) Fixture Insert (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-11-04 12:24:44', '2014-11-04 12:24:44', 819504217) Fixture Insert (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-11-04 12:24:44', '2014-11-04 12:24:44', 132093124) Fixture Insert (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-11-04 12:24:44', '2014-11-04 12:24:44', 431685987) 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-11-04 12:24:44', '2014-11-04 12:24:44', 68463692) 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-11-04 12:24:44', '2014-11-04 12:24:44', 591498715)  (5.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4c9b4a2311d5233da8ce97c466a060f4' LIMIT 1 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-11-04 12:24:44.072644"], ["extension", "txt"], ["name", "Test"], ["token", "4c9b4a2311d5233da8ce97c466a060f4"], ["updated_at", "2014-11-04 12:24:44.072644"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7312f369d27364297fa4765fec64f5b8' LIMIT 1 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-11-04 12:24:44.076369"], ["extension", "txt"], ["name", "Test"], ["token", "7312f369d27364297fa4765fec64f5b8"], ["updated_at", "2014-11-04 12:24:44.076369"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0400acf197d3a4162e23e4bae9542bab' LIMIT 1 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-11-04 12:24:44.083456"], ["extension", "txt"], ["name", "Test"], ["token", "0400acf197d3a4162e23e4bae9542bab"], ["updated_at", "2014-11-04 12:24:44.083456"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5cdcd01a9b14d2ce6fd2ba0964799fb7' LIMIT 1 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-11-04 12:24:44.087866"], ["extension", "txt"], ["name", "Test"], ["token", "5cdcd01a9b14d2ce6fd2ba0964799fb7"], ["updated_at", "2014-11-04 12:24:44.087866"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b52c97ee55dffeeb171b9caf64784820' LIMIT 1 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-11-04 12:24:44.091760"], ["extension", "txt"], ["name", "Test"], ["token", "b52c97ee55dffeeb171b9caf64784820"], ["updated_at", "2014-11-04 12:24:44.091760"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 12:24:44.106119"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 12:24:44.114916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 12:24:44.125999"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 12:24:44.125862"], ["updated_at", "2014-11-04 12:24:44.125999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 12:24:44.136041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 12:24:44.138689"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 12:24:44.138615"], ["updated_at", "2014-11-04 12:24:44.138689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 12:24:44.144417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 12:24:44.146613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 12:24:44.150129"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 12:24:44.000000000 Z\n updated_at: 2014-11-04 12:24:44.146613000 Z\n"], ["run_at", "2014-11-04 12:24:54.147427"], ["updated_at", "2014-11-04 12:24:44.150129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 12:24:44.154373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 12:24:44.158918"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 12:24:44.162748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 12:24:44.166711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 12:24:44.169028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 12:24:44.172181"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 12:24:44.000000000 Z\n updated_at: 2014-11-04 12:24:44.169028000 Z\n"], ["run_at", "2014-11-04 12:24:54.169826"], ["updated_at", "2014-11-04 12:24:44.172181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 517391740) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 701625837) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 819504217) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 132093124) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 431685987) 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-11-04 14:01:22', '2014-11-04 14:01:22', 68463692) 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-11-04 14:01:22', '2014-11-04 14:01:22', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 517391740) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 701625837) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 819504217) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 132093124) Fixture Insert (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-11-04 14:01:22', '2014-11-04 14:01:22', 431685987) 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-11-04 14:01:22', '2014-11-04 14:01:22', 68463692) 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-11-04 14:01:22', '2014-11-04 14:01:22', 591498715)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:02:05', '2014-11-04 14:02:05', 517391740) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 701625837) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 819504217) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 132093124) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 431685987) 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-11-04 14:02:05', '2014-11-04 14:02:05', 68463692) 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-11-04 14:02:05', '2014-11-04 14:02:05', 591498715)  (4.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 517391740) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 701625837) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 819504217) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 132093124) Fixture Insert (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-11-04 14:02:05', '2014-11-04 14:02:05', 431685987) 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-11-04 14:02:05', '2014-11-04 14:02:05', 68463692) 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-11-04 14:02:05', '2014-11-04 14:02:05', 591498715)  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (4.8ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.5ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 517391740) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 701625837) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 819504217) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 132093124) Fixture Insert (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-11-04 14:06:12', '2014-11-04 14:06:12', 431685987) 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-11-04 14:06:12', '2014-11-04 14:06:12', 68463692) 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-11-04 14:06:12', '2014-11-04 14:06:12', 591498715)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:06:52', '2014-11-04 14:06:52', 517391740) Fixture Insert (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-11-04 14:06:52', '2014-11-04 14:06:52', 701625837) Fixture Insert (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-11-04 14:06:52', '2014-11-04 14:06:52', 819504217) Fixture Insert (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-11-04 14:06:52', '2014-11-04 14:06:52', 132093124) Fixture Insert (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-11-04 14:06:52', '2014-11-04 14:06:52', 431685987) 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-11-04 14:06:52', '2014-11-04 14:06:52', 68463692) 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-11-04 14:06:52', '2014-11-04 14:06:52', 591498715)  (5.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '84f4ee07a827f3af250eadae4d94a223' LIMIT 1 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-11-04 14:06:52.583704"], ["extension", "txt"], ["name", "Test"], ["token", "84f4ee07a827f3af250eadae4d94a223"], ["updated_at", "2014-11-04 14:06:52.583704"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2d23c604da984f1f6d6d42d3da00ee57' LIMIT 1 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-11-04 14:06:52.587481"], ["extension", "txt"], ["name", "Test"], ["token", "2d23c604da984f1f6d6d42d3da00ee57"], ["updated_at", "2014-11-04 14:06:52.587481"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4d98e6f731b9f5a75434a1366970b260' LIMIT 1 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-11-04 14:06:52.594180"], ["extension", "txt"], ["name", "Test"], ["token", "4d98e6f731b9f5a75434a1366970b260"], ["updated_at", "2014-11-04 14:06:52.594180"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e4cacc8931173691d26ed94640486ce2' LIMIT 1 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-11-04 14:06:52.598493"], ["extension", "txt"], ["name", "Test"], ["token", "e4cacc8931173691d26ed94640486ce2"], ["updated_at", "2014-11-04 14:06:52.598493"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '54e88b446b18ce213e47bf752da203ff' LIMIT 1 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-11-04 14:06:52.601418"], ["extension", "txt"], ["name", "Test"], ["token", "54e88b446b18ce213e47bf752da203ff"], ["updated_at", "2014-11-04 14:06:52.601418"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:06:52.619852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:06:52.627130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:06:52.638205"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:06:52.000000000 Z\n updated_at: 2014-11-04 14:06:52.627130000 Z\n"], ["run_at", "2014-11-04 14:07:02.628719"], ["updated_at", "2014-11-04 14:06:52.638205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:06:52.642246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 14:06:52.644826"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:06:52.648264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:06:52.652879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:06:52.655211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:06:52.658161"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:06:52.000000000 Z\n updated_at: 2014-11-04 14:06:52.655211000 Z\n"], ["run_at", "2014-11-04 14:07:02.655838"], ["updated_at", "2014-11-04 14:06:52.658161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 14:43:07', '2014-11-04 14:43:07', 517391740) Fixture Insert (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-11-04 14:43:07', '2014-11-04 14:43:07', 701625837) Fixture Insert (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-11-04 14:43:07', '2014-11-04 14:43:07', 819504217) Fixture Insert (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-11-04 14:43:07', '2014-11-04 14:43:07', 132093124) Fixture Insert (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-11-04 14:43:07', '2014-11-04 14:43:07', 431685987) 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-11-04 14:43:07', '2014-11-04 14:43:07', 68463692) 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-11-04 14:43:07', '2014-11-04 14:43:07', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 14:43:07.579071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:43:07.590701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:43:07.608570"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:43:07.000000000 Z\n updated_at: 2014-11-04 14:43:07.590701000 Z\n"], ["run_at", "2014-11-04 14:43:17.595293"], ["updated_at", "2014-11-04 14:43:07.608570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 14:43:07.615802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 14:43:07.619774"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 14:43:07.625675"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 14:43:07.632573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:43:07.636941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:43:07.642632"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:43:07.000000000 Z\n updated_at: 2014-11-04 14:43:07.636941000 Z\n"], ["run_at", "2014-11-04 14:43:17.638604"], ["updated_at", "2014-11-04 14:43:07.642632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bf4aa72404fb1baecc31c7d60d950242' LIMIT 1 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-11-04 14:43:07.663702"], ["extension", "txt"], ["name", "Test"], ["token", "bf4aa72404fb1baecc31c7d60d950242"], ["updated_at", "2014-11-04 14:43:07.663702"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '33dcb039e6b37f9b67dee4d7d7101e39' LIMIT 1 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-11-04 14:43:07.667596"], ["extension", "txt"], ["name", "Test"], ["token", "33dcb039e6b37f9b67dee4d7d7101e39"], ["updated_at", "2014-11-04 14:43:07.667596"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bb815046988d5b202e988ee33c9e6759' LIMIT 1 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-11-04 14:43:07.673628"], ["extension", "txt"], ["name", "Test"], ["token", "bb815046988d5b202e988ee33c9e6759"], ["updated_at", "2014-11-04 14:43:07.673628"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd3e87d331d4e8505032a6e89615c0cad' LIMIT 1 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-11-04 14:43:07.677403"], ["extension", "txt"], ["name", "Test"], ["token", "d3e87d331d4e8505032a6e89615c0cad"], ["updated_at", "2014-11-04 14:43:07.677403"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '88c1ce5b6339dc27a174a5b7af974c91' LIMIT 1 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-11-04 14:43:07.680513"], ["extension", "txt"], ["name", "Test"], ["token", "88c1ce5b6339dc27a174a5b7af974c91"], ["updated_at", "2014-11-04 14:43:07.680513"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:43:32', '2014-11-04 14:43:32', 517391740) Fixture Insert (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-11-04 14:43:32', '2014-11-04 14:43:32', 701625837) Fixture Insert (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-11-04 14:43:32', '2014-11-04 14:43:32', 819504217) Fixture Insert (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-11-04 14:43:32', '2014-11-04 14:43:32', 132093124) Fixture Insert (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-11-04 14:43:32', '2014-11-04 14:43:32', 431685987) 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-11-04 14:43:32', '2014-11-04 14:43:32', 68463692) Fixture Insert (8.2ms) 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-11-04 14:43:32', '2014-11-04 14:43:32', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '40bc689364b2456941ce561a5598d862' LIMIT 1 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-11-04 14:43:32.668666"], ["extension", "txt"], ["name", "Test"], ["token", "40bc689364b2456941ce561a5598d862"], ["updated_at", "2014-11-04 14:43:32.668666"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '953138d8f1ea8e2f491ee69bf2ac730f' LIMIT 1 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-11-04 14:43:32.672362"], ["extension", "txt"], ["name", "Test"], ["token", "953138d8f1ea8e2f491ee69bf2ac730f"], ["updated_at", "2014-11-04 14:43:32.672362"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '322fd9f2a369fbac8718516360e3ab82' LIMIT 1 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-11-04 14:43:32.683313"], ["extension", "txt"], ["name", "Test"], ["token", "322fd9f2a369fbac8718516360e3ab82"], ["updated_at", "2014-11-04 14:43:32.683313"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'af62100a836ec80a0ec645eb5a735afc' LIMIT 1 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-11-04 14:43:32.689120"], ["extension", "txt"], ["name", "Test"], ["token", "af62100a836ec80a0ec645eb5a735afc"], ["updated_at", "2014-11-04 14:43:32.689120"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '37859e348a0561728195c645c21ae6ad' LIMIT 1 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-11-04 14:43:32.693958"], ["extension", "txt"], ["name", "Test"], ["token", "37859e348a0561728195c645c21ae6ad"], ["updated_at", "2014-11-04 14:43:32.693958"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:43:38', '2014-11-04 14:43:38', 517391740) Fixture Insert (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-11-04 14:43:38', '2014-11-04 14:43:38', 701625837) Fixture Insert (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-11-04 14:43:38', '2014-11-04 14:43:38', 819504217) Fixture Insert (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-11-04 14:43:38', '2014-11-04 14:43:38', 132093124) Fixture Insert (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-11-04 14:43:38', '2014-11-04 14:43:38', 431685987) 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-11-04 14:43:38', '2014-11-04 14:43:38', 68463692) 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-11-04 14:43:38', '2014-11-04 14:43:38', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:45:20', '2014-11-04 14:45:20', 517391740) Fixture Insert (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-11-04 14:45:20', '2014-11-04 14:45:20', 701625837) Fixture Insert (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-11-04 14:45:20', '2014-11-04 14:45:20', 819504217) Fixture Insert (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-11-04 14:45:20', '2014-11-04 14:45:20', 132093124) Fixture Insert (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-11-04 14:45:20', '2014-11-04 14:45:20', 431685987) 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-11-04 14:45:20', '2014-11-04 14:45:20', 68463692) 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-11-04 14:45:20', '2014-11-04 14:45:20', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:45:32', '2014-11-04 14:45:32', 517391740) Fixture Insert (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-11-04 14:45:32', '2014-11-04 14:45:32', 701625837) Fixture Insert (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-11-04 14:45:32', '2014-11-04 14:45:32', 819504217) Fixture Insert (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-11-04 14:45:32', '2014-11-04 14:45:32', 132093124) Fixture Insert (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-11-04 14:45:32', '2014-11-04 14:45:32', 431685987) 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-11-04 14:45:32', '2014-11-04 14:45:32', 68463692) 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-11-04 14:45:32', '2014-11-04 14:45:32', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "fogged_resources" 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-11-04 14:46:22', '2014-11-04 14:46:22', 517391740) Fixture Insert (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-11-04 14:46:22', '2014-11-04 14:46:22', 701625837) Fixture Insert (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-11-04 14:46:22', '2014-11-04 14:46:22', 819504217) Fixture Insert (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-11-04 14:46:22', '2014-11-04 14:46:22', 132093124) Fixture Insert (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-11-04 14:46:22', '2014-11-04 14:46:22', 431685987) 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-11-04 14:46:22', '2014-11-04 14:46:22', 68463692) 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-11-04 14:46:22', '2014-11-04 14:46:22', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:46:55', '2014-11-04 14:46:55', 517391740) Fixture Insert (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-11-04 14:46:55', '2014-11-04 14:46:55', 701625837) Fixture Insert (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-11-04 14:46:55', '2014-11-04 14:46:55', 819504217) Fixture Insert (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-11-04 14:46:55', '2014-11-04 14:46:55', 132093124) Fixture Insert (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-11-04 14:46:55', '2014-11-04 14:46:55', 431685987) 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-11-04 14:46:55', '2014-11-04 14:46:55', 68463692) 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-11-04 14:46:55', '2014-11-04 14:46:55', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:48:04', '2014-11-04 14:48:04', 517391740) Fixture Insert (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-11-04 14:48:04', '2014-11-04 14:48:04', 701625837) Fixture Insert (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-11-04 14:48:04', '2014-11-04 14:48:04', 819504217) Fixture Insert (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-11-04 14:48:04', '2014-11-04 14:48:04', 132093124) Fixture Insert (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-11-04 14:48:04', '2014-11-04 14:48:04', 431685987) 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-11-04 14:48:04', '2014-11-04 14:48:04', 68463692) 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-11-04 14:48:04', '2014-11-04 14:48:04', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 14:51:46', '2014-11-04 14:51:46', 517391740) Fixture Insert (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-11-04 14:51:46', '2014-11-04 14:51:46', 701625837) Fixture Insert (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-11-04 14:51:46', '2014-11-04 14:51:46', 819504217) Fixture Insert (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-11-04 14:51:46', '2014-11-04 14:51:46', 132093124) Fixture Insert (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-11-04 14:51:46', '2014-11-04 14:51:46', 431685987) 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-11-04 14:51:46', '2014-11-04 14:51:46', 68463692) 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-11-04 14:51:46', '2014-11-04 14:51:46', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:52:16', '2014-11-04 14:52:16', 517391740) Fixture Insert (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-11-04 14:52:16', '2014-11-04 14:52:16', 701625837) Fixture Insert (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-11-04 14:52:16', '2014-11-04 14:52:16', 819504217) Fixture Insert (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-11-04 14:52:16', '2014-11-04 14:52:16', 132093124) Fixture Insert (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-11-04 14:52:16', '2014-11-04 14:52:16', 431685987) 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-11-04 14:52:16', '2014-11-04 14:52:16', 68463692) 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-11-04 14:52:16', '2014-11-04 14:52:16', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:58:30', '2014-11-04 14:58:30', 517391740) Fixture Insert (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-11-04 14:58:30', '2014-11-04 14:58:30', 701625837) Fixture Insert (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-11-04 14:58:30', '2014-11-04 14:58:30', 819504217) Fixture Insert (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-11-04 14:58:30', '2014-11-04 14:58:30', 132093124) Fixture Insert (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-11-04 14:58:30', '2014-11-04 14:58:30', 431685987) 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-11-04 14:58:30', '2014-11-04 14:58:30', 68463692) 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-11-04 14:58:30', '2014-11-04 14:58:30', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:58:58', '2014-11-04 14:58:58', 517391740) Fixture Insert (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-11-04 14:58:58', '2014-11-04 14:58:58', 701625837) Fixture Insert (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-11-04 14:58:58', '2014-11-04 14:58:58', 819504217) Fixture Insert (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-11-04 14:58:58', '2014-11-04 14:58:58', 132093124) Fixture Insert (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-11-04 14:58:58', '2014-11-04 14:58:58', 431685987) 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-11-04 14:58:58', '2014-11-04 14:58:58', 68463692) 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-11-04 14:58:58', '2014-11-04 14:58:58', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 14:58:58.268547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:58:58.278978"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 14:58:58.278813"], ["updated_at", "2014-11-04 14:58:58.278978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 14:59:07', '2014-11-04 14:59:07', 517391740) Fixture Insert (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-11-04 14:59:07', '2014-11-04 14:59:07', 701625837) Fixture Insert (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-11-04 14:59:07', '2014-11-04 14:59:07', 819504217) Fixture Insert (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-11-04 14:59:07', '2014-11-04 14:59:07', 132093124) Fixture Insert (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-11-04 14:59:07', '2014-11-04 14:59:07', 431685987) 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-11-04 14:59:07', '2014-11-04 14:59:07', 68463692) 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-11-04 14:59:07', '2014-11-04 14:59:07', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '029bc92fe6285f38f30745ed10acbd24' LIMIT 1 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-11-04 14:59:07.687678"], ["extension", "txt"], ["name", "Test"], ["token", "029bc92fe6285f38f30745ed10acbd24"], ["updated_at", "2014-11-04 14:59:07.687678"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6739efcc8c93ead9483e3a478a0e3848' LIMIT 1 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-11-04 14:59:07.691120"], ["extension", "txt"], ["name", "Test"], ["token", "6739efcc8c93ead9483e3a478a0e3848"], ["updated_at", "2014-11-04 14:59:07.691120"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a754c361c311ea3bf17de8f6a58d3262' LIMIT 1 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-11-04 14:59:07.697808"], ["extension", "txt"], ["name", "Test"], ["token", "a754c361c311ea3bf17de8f6a58d3262"], ["updated_at", "2014-11-04 14:59:07.697808"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3868354afc5d8a79005c90421f48e555' LIMIT 1 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-11-04 14:59:07.701040"], ["extension", "txt"], ["name", "Test"], ["token", "3868354afc5d8a79005c90421f48e555"], ["updated_at", "2014-11-04 14:59:07.701040"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3f40c46570bb6f1cd751095d7e757f60' LIMIT 1 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-11-04 14:59:07.704440"], ["extension", "txt"], ["name", "Test"], ["token", "3f40c46570bb6f1cd751095d7e757f60"], ["updated_at", "2014-11-04 14:59:07.704440"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 14:59:07.717521"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 14:59:07.724318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:59:07.734924"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 14:59:07.734741"], ["updated_at", "2014-11-04 14:59:07.734924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 14:59:07.739813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:59:07.743589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:59:07.747852"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:59:07.000000000 Z\n updated_at: 2014-11-04 14:59:07.743589000 Z\n"], ["run_at", "2014-11-04 14:59:17.744822"], ["updated_at", "2014-11-04 14:59:07.747852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:59:07.751558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 14:59:07.753991"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:59:07.758309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 14:59:07.761988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 14:59:07.764056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:59:07.767206"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 14:59:07.000000000 Z\n updated_at: 2014-11-04 14:59:07.764056000 Z\n"], ["run_at", "2014-11-04 14:59:17.764740"], ["updated_at", "2014-11-04 14:59:07.767206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 14:59:07.787885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 14:59:07.790257"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 14:59:07.790199"], ["updated_at", "2014-11-04 14:59:07.790257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:00:22', '2014-11-04 15:00:22', 517391740) Fixture Insert (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-11-04 15:00:22', '2014-11-04 15:00:22', 701625837) Fixture Insert (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-11-04 15:00:22', '2014-11-04 15:00:22', 819504217) Fixture Insert (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-11-04 15:00:22', '2014-11-04 15:00:22', 132093124) Fixture Insert (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-11-04 15:00:22', '2014-11-04 15:00:22', 431685987) 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-11-04 15:00:22', '2014-11-04 15:00:22', 68463692) 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-11-04 15:00:22', '2014-11-04 15:00:22', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:00:22.707042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:00:22.712251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:00:22.725118"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:00:22.000000000 Z\n updated_at: 2014-11-04 15:00:22.712251000 Z\n"], ["run_at", "2014-11-04 15:00:32.713942"], ["updated_at", "2014-11-04 15:00:22.725118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:00:22.730232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:00:22.733227"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:00:22.736892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:00:22.741024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:00:22.743186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:00:22.746382"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:00:22.000000000 Z\n updated_at: 2014-11-04 15:00:22.743186000 Z\n"], ["run_at", "2014-11-04 15:00:32.743857"], ["updated_at", "2014-11-04 15:00:22.746382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '712d8b55ebc1d0fd9013fdef377d3554' LIMIT 1 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-11-04 15:00:22.759741"], ["extension", "txt"], ["name", "Test"], ["token", "712d8b55ebc1d0fd9013fdef377d3554"], ["updated_at", "2014-11-04 15:00:22.759741"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5bd43095efe7e77d5c269bacb64ad2e9' LIMIT 1 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-11-04 15:00:22.762803"], ["extension", "txt"], ["name", "Test"], ["token", "5bd43095efe7e77d5c269bacb64ad2e9"], ["updated_at", "2014-11-04 15:00:22.762803"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '04c7a42e617124eca6e3b612aa11b4e1' LIMIT 1 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-11-04 15:00:22.767018"], ["extension", "txt"], ["name", "Test"], ["token", "04c7a42e617124eca6e3b612aa11b4e1"], ["updated_at", "2014-11-04 15:00:22.767018"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b2af4a7849e4c0f0cf11b2d25c3c8e71' LIMIT 1 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-11-04 15:00:22.769363"], ["extension", "txt"], ["name", "Test"], ["token", "b2af4a7849e4c0f0cf11b2d25c3c8e71"], ["updated_at", "2014-11-04 15:00:22.769363"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '240cfc2cc2cc1b4fa62889859782477a' LIMIT 1 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-11-04 15:00:22.772766"], ["extension", "txt"], ["name", "Test"], ["token", "240cfc2cc2cc1b4fa62889859782477a"], ["updated_at", "2014-11-04 15:00:22.772766"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:00:22.786585"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:00:22.792325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:00:22.794744"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:00:22.794678"], ["updated_at", "2014-11-04 15:00:22.794744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-04 15:00:22.808032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:00:22.818212"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:00:22.818135"], ["updated_at", "2014-11-04 15:00:22.818212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:01:34', '2014-11-04 15:01:34', 517391740) Fixture Insert (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-11-04 15:01:34', '2014-11-04 15:01:34', 701625837) Fixture Insert (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-11-04 15:01:34', '2014-11-04 15:01:34', 819504217) Fixture Insert (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-11-04 15:01:34', '2014-11-04 15:01:34', 132093124) Fixture Insert (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-11-04 15:01:34', '2014-11-04 15:01:34', 431685987) 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-11-04 15:01:34', '2014-11-04 15:01:34', 68463692) 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-11-04 15:01:34', '2014-11-04 15:01:34', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:01:34.506272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:01:34.518755"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:01:34.518623"], ["updated_at", "2014-11-04 15:01:34.518755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:02:00.512548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:02:00.515853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:02:00.520642"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:01:34.000000000 Z\n updated_at: 2014-11-04 15:02:00.515853000 Z\n"], ["run_at", "2014-11-04 15:02:10.517638"], ["updated_at", "2014-11-04 15:02:00.520642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (4.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:02:00.529086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:02:00.532057"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:02:00.535410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:02:00.538673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:02:00.540875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:02:00.544246"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:01:34.000000000 Z\n updated_at: 2014-11-04 15:02:00.540875000 Z\n"], ["run_at", "2014-11-04 15:02:10.541548"], ["updated_at", "2014-11-04 15:02:00.544246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4876963a83e8060cec71a025dbd2d6bb' LIMIT 1 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-11-04 15:02:00.552161"], ["extension", "txt"], ["name", "Test"], ["token", "4876963a83e8060cec71a025dbd2d6bb"], ["updated_at", "2014-11-04 15:02:00.552161"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '023ce33643b3700dc659525e25aa07d1' LIMIT 1 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-11-04 15:02:00.555923"], ["extension", "txt"], ["name", "Test"], ["token", "023ce33643b3700dc659525e25aa07d1"], ["updated_at", "2014-11-04 15:02:00.555923"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c4a42ce478f645561563afc6ac0f0400' LIMIT 1 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-11-04 15:02:00.561916"], ["extension", "txt"], ["name", "Test"], ["token", "c4a42ce478f645561563afc6ac0f0400"], ["updated_at", "2014-11-04 15:02:00.561916"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '76f53a6aff7e8b27195683921c1c666d' LIMIT 1 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-11-04 15:02:00.565705"], ["extension", "txt"], ["name", "Test"], ["token", "76f53a6aff7e8b27195683921c1c666d"], ["updated_at", "2014-11-04 15:02:00.565705"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2d08639fdcaf87fb151f1454a6b7ca6a' LIMIT 1 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-11-04 15:02:00.569356"], ["extension", "txt"], ["name", "Test"], ["token", "2d08639fdcaf87fb151f1454a6b7ca6a"], ["updated_at", "2014-11-04 15:02:00.569356"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:02:00.582873"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:02:00.587297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:02:00.589799"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:02:00.589697"], ["updated_at", "2014-11-04 15:02:00.589799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateImages (20141104135257)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (4.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104135257"]]  (1.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:05:23', '2014-11-04 15:05:23', 517391740) Fixture Insert (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-11-04 15:05:23', '2014-11-04 15:05:23', 701625837) Fixture Insert (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-11-04 15:05:23', '2014-11-04 15:05:23', 819504217) Fixture Insert (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-11-04 15:05:23', '2014-11-04 15:05:23', 132093124) Fixture Insert (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-11-04 15:05:23', '2014-11-04 15:05:23', 431685987) 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-11-04 15:05:23', '2014-11-04 15:05:23', 68463692) 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-11-04 15:05:23', '2014-11-04 15:05:23', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-04 15:05:23.323824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:23.336517"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:05:23.336285"], ["updated_at", "2014-11-04 15:05:23.336517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:23.348831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:05:23.351740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:23.356726"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:05:23.000000000 Z\n updated_at: 2014-11-04 15:05:23.351740000 Z\n"], ["run_at", "2014-11-04 15:05:33.353790"], ["updated_at", "2014-11-04 15:05:23.356726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:23.360386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:05:23.362975"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:23.367009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:23.370748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:05:23.373298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:23.378238"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:05:23.000000000 Z\n updated_at: 2014-11-04 15:05:23.373298000 Z\n"], ["run_at", "2014-11-04 15:05:33.374426"], ["updated_at", "2014-11-04 15:05:23.378238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "images"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:05:30.501979"], ["name", "test"], ["updated_at", "2014-11-04 15:05:30.501979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b8f451f80f89dfb5a65d88bdbab9277b' LIMIT 1 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-11-04 15:05:30.509169"], ["extension", "txt"], ["name", "Test"], ["token", "b8f451f80f89dfb5a65d88bdbab9277b"], ["updated_at", "2014-11-04 15:05:30.509169"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4963c8002e4a9b8ec3910180ec1f6e1f' LIMIT 1 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-11-04 15:05:30.512199"], ["extension", "txt"], ["name", "Test"], ["token", "4963c8002e4a9b8ec3910180ec1f6e1f"], ["updated_at", "2014-11-04 15:05:30.512199"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9f35e0a80fa0417617dac1d23cc8ff05' LIMIT 1 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-11-04 15:05:30.516939"], ["extension", "txt"], ["name", "Test"], ["token", "9f35e0a80fa0417617dac1d23cc8ff05"], ["updated_at", "2014-11-04 15:05:30.516939"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f8f88cb602976c8b94b0a03acde5efdb' LIMIT 1 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-11-04 15:05:30.519642"], ["extension", "txt"], ["name", "Test"], ["token", "f8f88cb602976c8b94b0a03acde5efdb"], ["updated_at", "2014-11-04 15:05:30.519642"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd7bef9bbfee1eab2f04fd68034e674c5' LIMIT 1 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-11-04 15:05:30.524253"], ["extension", "txt"], ["name", "Test"], ["token", "d7bef9bbfee1eab2f04fd68034e674c5"], ["updated_at", "2014-11-04 15:05:30.524253"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:05:30.539372"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:05:30.544362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:30.547175"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:05:30.547086"], ["updated_at", "2014-11-04 15:05:30.547175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:05:56', '2014-11-04 15:05:56', 517391740) Fixture Insert (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-11-04 15:05:56', '2014-11-04 15:05:56', 701625837) Fixture Insert (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-11-04 15:05:56', '2014-11-04 15:05:56', 819504217) Fixture Insert (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-11-04 15:05:56', '2014-11-04 15:05:56', 132093124) Fixture Insert (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-11-04 15:05:56', '2014-11-04 15:05:56', 431685987) 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-11-04 15:05:56', '2014-11-04 15:05:56', 68463692) 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-11-04 15:05:56', '2014-11-04 15:05:56', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:05:56.461113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:05:56.466114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:56.479709"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:05:56.000000000 Z\n updated_at: 2014-11-04 15:05:56.466114000 Z\n"], ["run_at", "2014-11-04 15:06:06.467901"], ["updated_at", "2014-11-04 15:05:56.479709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:56.484018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:05:56.486619"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (3.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:05:56.492870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (3.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:05:56.499528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:05:56.501622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:56.505036"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:05:56.000000000 Z\n updated_at: 2014-11-04 15:05:56.501622000 Z\n"], ["run_at", "2014-11-04 15:06:06.502305"], ["updated_at", "2014-11-04 15:05:56.505036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (3.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:05:56.525486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:05:56.528397"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:05:56.528328"], ["updated_at", "2014-11-04 15:05:56.528397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource -------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:06:29.876965"], ["name", "test"], ["updated_at", "2014-11-04 15:06:29.876965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5fd5ab451caf04dff6628bce72ae2a92' LIMIT 1 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-11-04 15:06:29.888496"], ["extension", "txt"], ["name", "Test"], ["token", "5fd5ab451caf04dff6628bce72ae2a92"], ["updated_at", "2014-11-04 15:06:29.888496"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fb793b6b69ce27662dd0c970344a9a9d' LIMIT 1 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-11-04 15:06:29.891625"], ["extension", "txt"], ["name", "Test"], ["token", "fb793b6b69ce27662dd0c970344a9a9d"], ["updated_at", "2014-11-04 15:06:29.891625"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '45ef0d6064926a0239d0f425b3c0a7ba' LIMIT 1 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-11-04 15:06:29.899097"], ["extension", "txt"], ["name", "Test"], ["token", "45ef0d6064926a0239d0f425b3c0a7ba"], ["updated_at", "2014-11-04 15:06:29.899097"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f31ba30fab74180baeb2272ed748c8d9' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:06:29.905119"], ["extension", "txt"], ["name", "Test"], ["token", "f31ba30fab74180baeb2272ed748c8d9"], ["updated_at", "2014-11-04 15:06:29.905119"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bbe93c426027bc0664dc1cb875791ee4' LIMIT 1 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-11-04 15:06:29.914290"], ["extension", "txt"], ["name", "Test"], ["token", "bbe93c426027bc0664dc1cb875791ee4"], ["updated_at", "2014-11-04 15:06:29.914290"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:06:29.931274"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.9ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:06:29.943814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:06:29.948696"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:06:29.948600"], ["updated_at", "2014-11-04 15:06:29.948696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:08:54', '2014-11-04 15:08:54', 517391740) Fixture Insert (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-11-04 15:08:54', '2014-11-04 15:08:54', 701625837) Fixture Insert (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-11-04 15:08:54', '2014-11-04 15:08:54', 819504217) Fixture Insert (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-11-04 15:08:54', '2014-11-04 15:08:54', 132093124) Fixture Insert (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-11-04 15:08:54', '2014-11-04 15:08:54', 431685987) 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-11-04 15:08:54', '2014-11-04 15:08:54', 68463692) 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-11-04 15:08:54', '2014-11-04 15:08:54', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:08:55.008605"], ["name", "test"], ["updated_at", "2014-11-04 15:08:55.008605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '543d06f12ee6aedae818c78b7175c251' LIMIT 1 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-11-04 15:08:55.027441"], ["extension", "txt"], ["name", "Test"], ["token", "543d06f12ee6aedae818c78b7175c251"], ["updated_at", "2014-11-04 15:08:55.027441"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3cd2de8a80e3758a9bbce049aa671cdc' LIMIT 1 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-11-04 15:08:55.035851"], ["extension", "txt"], ["name", "Test"], ["token", "3cd2de8a80e3758a9bbce049aa671cdc"], ["updated_at", "2014-11-04 15:08:55.035851"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '88602037c128d50e8e38c369eac45905' LIMIT 1 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-11-04 15:08:55.044651"], ["extension", "txt"], ["name", "Test"], ["token", "88602037c128d50e8e38c369eac45905"], ["updated_at", "2014-11-04 15:08:55.044651"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ec724af468b83ce99fe77088905f95a0' LIMIT 1 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-11-04 15:08:55.047484"], ["extension", "txt"], ["name", "Test"], ["token", "ec724af468b83ce99fe77088905f95a0"], ["updated_at", "2014-11-04 15:08:55.047484"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3159a922d60c3898dc8b248993c2b47a' LIMIT 1 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-11-04 15:08:55.054035"], ["extension", "txt"], ["name", "Test"], ["token", "3159a922d60c3898dc8b248993c2b47a"], ["updated_at", "2014-11-04 15:08:55.054035"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:08:55.076203"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SAVEPOINT active_record_1 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-11-04 15:08:55.089002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:08:55.100424"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:08:55.100249"], ["updated_at", "2014-11-04 15:08:55.100424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:08:55.110280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:08:55.114136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:08:55.121744"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:08:54.000000000 Z\n updated_at: 2014-11-04 15:08:55.114136000 Z\n"], ["run_at", "2014-11-04 15:09:05.115778"], ["updated_at", "2014-11-04 15:08:55.121744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:08:55.127927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:08:55.143937"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:08:55.148211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:08:55.152572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:08:55.156271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:08:55.161229"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:08:54.000000000 Z\n updated_at: 2014-11-04 15:08:55.156271000 Z\n"], ["run_at", "2014-11-04 15:09:05.157429"], ["updated_at", "2014-11-04 15:08:55.161229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:08:55.171358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:08:55.173862"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:08:55.173790"], ["updated_at", "2014-11-04 15:08:55.173862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:10:38', '2014-11-04 15:10:38', 517391740) Fixture Insert (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-11-04 15:10:38', '2014-11-04 15:10:38', 701625837) Fixture Insert (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-11-04 15:10:38', '2014-11-04 15:10:38', 819504217) Fixture Insert (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-11-04 15:10:38', '2014-11-04 15:10:38', 132093124) Fixture Insert (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-11-04 15:10:38', '2014-11-04 15:10:38', 431685987) 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-11-04 15:10:38', '2014-11-04 15:10:38', 68463692) 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-11-04 15:10:38', '2014-11-04 15:10:38', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:10:38.921717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:10:38.933619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:10:38.951305"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:10:38.000000000 Z\n updated_at: 2014-11-04 15:10:38.933619000 Z\n"], ["run_at", "2014-11-04 15:10:48.935645"], ["updated_at", "2014-11-04 15:10:38.951305"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:10:38.960096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:10:38.966332"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:10:38.972483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:10:38.978680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:10:38.983128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:10:38.988830"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:10:38.000000000 Z\n updated_at: 2014-11-04 15:10:38.983128000 Z\n"], ["run_at", "2014-11-04 15:10:48.984457"], ["updated_at", "2014-11-04 15:10:38.988830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:10:39.006187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:10:39.013448"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:10:39.013217"], ["updated_at", "2014-11-04 15:10:39.013448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:10:39.046602"], ["name", "test"], ["updated_at", "2014-11-04 15:10:39.046602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2efe29bf50066eed924e52f55acccbb7' LIMIT 1 SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:10:39.056735"], ["extension", "txt"], ["name", "Test"], ["token", "2efe29bf50066eed924e52f55acccbb7"], ["updated_at", "2014-11-04 15:10:39.056735"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e78c680c3e12832746e033160f6a348b' LIMIT 1 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-11-04 15:10:39.063970"], ["extension", "txt"], ["name", "Test"], ["token", "e78c680c3e12832746e033160f6a348b"], ["updated_at", "2014-11-04 15:10:39.063970"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'cdcd8547910a89be6e0c7e52bb4cf22f' LIMIT 1 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-11-04 15:10:39.071165"], ["extension", "txt"], ["name", "Test"], ["token", "cdcd8547910a89be6e0c7e52bb4cf22f"], ["updated_at", "2014-11-04 15:10:39.071165"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6a5a0be5aee511782bc91a1c66d37bbf' LIMIT 1 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-11-04 15:10:39.076740"], ["extension", "txt"], ["name", "Test"], ["token", "6a5a0be5aee511782bc91a1c66d37bbf"], ["updated_at", "2014-11-04 15:10:39.076740"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '726074aee4324157a4f413008797a7cc' LIMIT 1 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-11-04 15:10:39.090570"], ["extension", "txt"], ["name", "Test"], ["token", "726074aee4324157a4f413008797a7cc"], ["updated_at", "2014-11-04 15:10:39.090570"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:10:39.108138"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:10:39.118169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:10:39.125393"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:10:39.125191"], ["updated_at", "2014-11-04 15:10:39.125393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:12:03', '2014-11-04 15:12:03', 517391740) Fixture Insert (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-11-04 15:12:03', '2014-11-04 15:12:03', 701625837) Fixture Insert (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-11-04 15:12:03', '2014-11-04 15:12:03', 819504217) Fixture Insert (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-11-04 15:12:03', '2014-11-04 15:12:03', 132093124) Fixture Insert (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-11-04 15:12:03', '2014-11-04 15:12:03', 431685987) 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-11-04 15:12:03', '2014-11-04 15:12:03', 68463692) 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-11-04 15:12:03', '2014-11-04 15:12:03', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) SAVEPOINT active_record_1 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-11-04 15:12:03.556402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:12:03.571402"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:12:03.571268"], ["updated_at", "2014-11-04 15:12:03.571402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (1.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:12:03.602712"], ["name", "test"], ["updated_at", "2014-11-04 15:12:03.602712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '207c7269de6b3663a4850897a0ea1d61' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:12:03.617287"], ["extension", "txt"], ["name", "Test"], ["token", "207c7269de6b3663a4850897a0ea1d61"], ["updated_at", "2014-11-04 15:12:03.617287"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2b4e85d5ffad5c8deaf8e36db4e94265' LIMIT 1 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-11-04 15:12:03.625976"], ["extension", "txt"], ["name", "Test"], ["token", "2b4e85d5ffad5c8deaf8e36db4e94265"], ["updated_at", "2014-11-04 15:12:03.625976"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2b6bc4cc7ac6bdfc605d15a3ae973ce2' LIMIT 1 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-11-04 15:12:03.633577"], ["extension", "txt"], ["name", "Test"], ["token", "2b6bc4cc7ac6bdfc605d15a3ae973ce2"], ["updated_at", "2014-11-04 15:12:03.633577"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '733f4c98de1cd38311961faf017e986b' LIMIT 1 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-11-04 15:12:03.641295"], ["extension", "txt"], ["name", "Test"], ["token", "733f4c98de1cd38311961faf017e986b"], ["updated_at", "2014-11-04 15:12:03.641295"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '979622e1a12c9cad3b654cbed7a160bf' LIMIT 1 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-11-04 15:12:03.647633"], ["extension", "txt"], ["name", "Test"], ["token", "979622e1a12c9cad3b654cbed7a160bf"], ["updated_at", "2014-11-04 15:12:03.647633"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:12:03.660353"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-11-04 15:12:03.667527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:12:03.673176"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:12:03.673066"], ["updated_at", "2014-11-04 15:12:03.673176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:12:03.677426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:12:03.680281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:12:03.683857"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:12:03.000000000 Z\n updated_at: 2014-11-04 15:12:03.680281000 Z\n"], ["run_at", "2014-11-04 15:12:13.681161"], ["updated_at", "2014-11-04 15:12:03.683857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:12:03.696898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:12:03.702333"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:12:03.709414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:12:03.714530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:12:03.719856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:12:03.724747"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:12:03.000000000 Z\n updated_at: 2014-11-04 15:12:03.719856000 Z\n"], ["run_at", "2014-11-04 15:12:13.721556"], ["updated_at", "2014-11-04 15:12:03.724747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:12:37', '2014-11-04 15:12:37', 517391740) Fixture Insert (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-11-04 15:12:37', '2014-11-04 15:12:37', 701625837) Fixture Insert (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-11-04 15:12:37', '2014-11-04 15:12:37', 819504217) Fixture Insert (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-11-04 15:12:37', '2014-11-04 15:12:37', 132093124) Fixture Insert (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-11-04 15:12:37', '2014-11-04 15:12:37', 431685987) 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-11-04 15:12:37', '2014-11-04 15:12:37', 68463692) 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-11-04 15:12:37', '2014-11-04 15:12:37', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:12:37.133343"], ["name", "test"], ["updated_at", "2014-11-04 15:12:37.133343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateImages (20141104135257)  (0.1ms) begin transaction  (0.5ms) DROP TABLE "images" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104135257'  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateImages (20141104135257)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "resource_id" integer, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104135257"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:13:26', '2014-11-04 15:13:26', 517391740) Fixture Insert (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-11-04 15:13:26', '2014-11-04 15:13:26', 701625837) Fixture Insert (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-11-04 15:13:26', '2014-11-04 15:13:26', 819504217) Fixture Insert (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-11-04 15:13:26', '2014-11-04 15:13:26', 132093124) Fixture Insert (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-11-04 15:13:26', '2014-11-04 15:13:26', 431685987) 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-11-04 15:13:26', '2014-11-04 15:13:26', 68463692) 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-11-04 15:13:26', '2014-11-04 15:13:26', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:13:26.157821"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:13:26.157821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:13:26.163028"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:13:26.163028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:13:26.165853"], ["name", "test"], ["updated_at", "2014-11-04 15:13:26.165853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:14:09', '2014-11-04 15:14:09', 517391740) Fixture Insert (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-11-04 15:14:09', '2014-11-04 15:14:09', 701625837) Fixture Insert (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-11-04 15:14:09', '2014-11-04 15:14:09', 819504217) Fixture Insert (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-11-04 15:14:09', '2014-11-04 15:14:09', 132093124) Fixture Insert (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-11-04 15:14:09', '2014-11-04 15:14:09', 431685987) 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-11-04 15:14:09', '2014-11-04 15:14:09', 68463692) 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-11-04 15:14:09', '2014-11-04 15:14:09', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:14:09.296405"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:09.319255"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:14:09.319255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:14:09.323520"], ["name", "test"], ["updated_at", "2014-11-04 15:14:09.323520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:14:14', '2014-11-04 15:14:14', 517391740) Fixture Insert (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-11-04 15:14:14', '2014-11-04 15:14:14', 701625837) Fixture Insert (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-11-04 15:14:14', '2014-11-04 15:14:14', 819504217) Fixture Insert (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-11-04 15:14:14', '2014-11-04 15:14:14', 132093124) Fixture Insert (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-11-04 15:14:14', '2014-11-04 15:14:14', 431685987) 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-11-04 15:14:14', '2014-11-04 15:14:14', 68463692) 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-11-04 15:14:14', '2014-11-04 15:14:14', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:14:14.334429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:14:14.345708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:14.367145"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:14:14.000000000 Z\n updated_at: 2014-11-04 15:14:14.345708000 Z\n"], ["run_at", "2014-11-04 15:14:24.349404"], ["updated_at", "2014-11-04 15:14:14.367145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:14:14.374575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:14:14.379009"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:14:14.386195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:14:14.393672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:14:14.396521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:14.401628"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:14:14.000000000 Z\n updated_at: 2014-11-04 15:14:14.396521000 Z\n"], ["run_at", "2014-11-04 15:14:24.397590"], ["updated_at", "2014-11-04 15:14:14.401628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:14:14.414918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:14.421044"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:14:14.420950"], ["updated_at", "2014-11-04 15:14:14.421044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:14:14.445768"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:14.471096"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:14:14.471096"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:14:14.479844"], ["name", "test"], ["updated_at", "2014-11-04 15:14:14.479844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '12161ec95f0b04816675885c10050265' LIMIT 1 SQL (1.4ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:14:14.495529"], ["extension", "txt"], ["name", "Test"], ["token", "12161ec95f0b04816675885c10050265"], ["updated_at", "2014-11-04 15:14:14.495529"], ["uploading", "f"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '129c8f83263b51658453b32ffe1bfdda' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:14:14.506913"], ["extension", "txt"], ["name", "Test"], ["token", "129c8f83263b51658453b32ffe1bfdda"], ["updated_at", "2014-11-04 15:14:14.506913"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c5472235245229cddbc48861f28512ee' LIMIT 1 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-11-04 15:14:14.537180"], ["extension", "txt"], ["name", "Test"], ["token", "c5472235245229cddbc48861f28512ee"], ["updated_at", "2014-11-04 15:14:14.537180"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1bd7d6d03d08d55c8412a39da1abc864' LIMIT 1 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-11-04 15:14:14.543510"], ["extension", "txt"], ["name", "Test"], ["token", "1bd7d6d03d08d55c8412a39da1abc864"], ["updated_at", "2014-11-04 15:14:14.543510"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ee0d838f037dce5f06395fbafe29777e' LIMIT 1 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-11-04 15:14:14.552546"], ["extension", "txt"], ["name", "Test"], ["token", "ee0d838f037dce5f06395fbafe29777e"], ["updated_at", "2014-11-04 15:14:14.552546"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:14:14.573810"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:14:14.584332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:14:14.590851"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:14:14.590656"], ["updated_at", "2014-11-04 15:14:14.590851"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 15:15:05', '2014-11-04 15:15:05', 517391740) Fixture Insert (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-11-04 15:15:05', '2014-11-04 15:15:05', 701625837) Fixture Insert (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-11-04 15:15:05', '2014-11-04 15:15:05', 819504217) Fixture Insert (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-11-04 15:15:05', '2014-11-04 15:15:05', 132093124) Fixture Insert (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-11-04 15:15:05', '2014-11-04 15:15:05', 431685987) 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-11-04 15:15:05', '2014-11-04 15:15:05', 68463692) 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-11-04 15:15:05', '2014-11-04 15:15:05', 591498715)  (5.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.4ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:15:05.770963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:15:05.781692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:05.803876"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:15:05.000000000 Z\n updated_at: 2014-11-04 15:15:05.781692000 Z\n"], ["run_at", "2014-11-04 15:15:15.784544"], ["updated_at", "2014-11-04 15:15:05.803876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:15:05.824400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:15:05.829440"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:15:05.841268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:15:05.850383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:15:05.858598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:05.864440"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:15:05.000000000 Z\n updated_at: 2014-11-04 15:15:05.858598000 Z\n"], ["run_at", "2014-11-04 15:15:15.860324"], ["updated_at", "2014-11-04 15:15:05.864440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd5ca7cc6b09a17949704e3db115cbec2' LIMIT 1 SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:05.882554"], ["extension", "txt"], ["name", "Test"], ["token", "d5ca7cc6b09a17949704e3db115cbec2"], ["updated_at", "2014-11-04 15:15:05.882554"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '485029811009a11d5979f038819713f4' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:05.891686"], ["extension", "txt"], ["name", "Test"], ["token", "485029811009a11d5979f038819713f4"], ["updated_at", "2014-11-04 15:15:05.891686"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3e7d41197224bf5170de5b9dcb350457' LIMIT 1 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-11-04 15:15:05.904682"], ["extension", "txt"], ["name", "Test"], ["token", "3e7d41197224bf5170de5b9dcb350457"], ["updated_at", "2014-11-04 15:15:05.904682"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '04ead6e69b2ae072a08bade8db8064dd' LIMIT 1 SQL (1.0ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:05.911428"], ["extension", "txt"], ["name", "Test"], ["token", "04ead6e69b2ae072a08bade8db8064dd"], ["updated_at", "2014-11-04 15:15:05.911428"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fd47fe06dbb0a3d76030e78822de4f07' LIMIT 1 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-11-04 15:15:05.922296"], ["extension", "txt"], ["name", "Test"], ["token", "fd47fe06dbb0a3d76030e78822de4f07"], ["updated_at", "2014-11-04 15:15:05.922296"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:15:05.945908"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:15:05.956424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:05.963075"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:15:05.962866"], ["updated_at", "2014-11-04 15:15:05.963075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.9ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:15:05.978788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:05.985221"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:15:05.984909"], ["updated_at", "2014-11-04 15:15:05.985221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:15:06.004498"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:06.019078"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:15:06.019078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:15:06.025129"], ["name", "test"], ["updated_at", "2014-11-04 15:15:06.025129"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:15:58', '2014-11-04 15:15:58', 517391740) Fixture Insert (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-11-04 15:15:58', '2014-11-04 15:15:58', 701625837) Fixture Insert (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-11-04 15:15:58', '2014-11-04 15:15:58', 819504217) Fixture Insert (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-11-04 15:15:58', '2014-11-04 15:15:58', 132093124) Fixture Insert (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-11-04 15:15:58', '2014-11-04 15:15:58', 431685987) 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-11-04 15:15:58', '2014-11-04 15:15:58', 68463692) 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-11-04 15:15:58', '2014-11-04 15:15:58', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a59465d1bd7bbaa89b312007516e0df3' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:58.632134"], ["extension", "txt"], ["name", "Test"], ["token", "a59465d1bd7bbaa89b312007516e0df3"], ["updated_at", "2014-11-04 15:15:58.632134"], ["uploading", "f"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c37ba34a1d21f07b31159ea130bf1e83' LIMIT 1 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-11-04 15:15:58.645144"], ["extension", "txt"], ["name", "Test"], ["token", "c37ba34a1d21f07b31159ea130bf1e83"], ["updated_at", "2014-11-04 15:15:58.645144"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7a60c729e7dee0b137276ce5af393749' LIMIT 1 SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:58.659766"], ["extension", "txt"], ["name", "Test"], ["token", "7a60c729e7dee0b137276ce5af393749"], ["updated_at", "2014-11-04 15:15:58.659766"], ["uploading", "f"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f7ab080c4ede5c199f872ceadd3102a8' LIMIT 1 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-11-04 15:15:58.668123"], ["extension", "txt"], ["name", "Test"], ["token", "f7ab080c4ede5c199f872ceadd3102a8"], ["updated_at", "2014-11-04 15:15:58.668123"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '28a02295eee4e08e6341c6eafcf957bc' LIMIT 1 SQL (0.9ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:15:58.677519"], ["extension", "txt"], ["name", "Test"], ["token", "28a02295eee4e08e6341c6eafcf957bc"], ["updated_at", "2014-11-04 15:15:58.677519"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:15:58.704922"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-04 15:15:58.718008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:58.735584"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:15:58.735277"], ["updated_at", "2014-11-04 15:15:58.735584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:15:58.749995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:58.755457"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:15:58.755347"], ["updated_at", "2014-11-04 15:15:58.755457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (1.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:15:58.766168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:15:58.770842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:58.779690"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:15:58.000000000 Z\n updated_at: 2014-11-04 15:15:58.770842000 Z\n"], ["run_at", "2014-11-04 15:16:08.773585"], ["updated_at", "2014-11-04 15:15:58.779690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:15:58.790912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:15:58.798120"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.1ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:15:58.811913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:15:58.823033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:15:58.829450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:58.836302"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:15:58.000000000 Z\n updated_at: 2014-11-04 15:15:58.829450000 Z\n"], ["run_at", "2014-11-04 15:16:08.832297"], ["updated_at", "2014-11-04 15:15:58.836302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:15:58.867549"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:15:58.879059"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:15:58.879059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:15:58.884650"], ["name", "test"], ["updated_at", "2014-11-04 15:15:58.884650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:16:50', '2014-11-04 15:16:50', 517391740) Fixture Insert (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-11-04 15:16:50', '2014-11-04 15:16:50', 701625837) Fixture Insert (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-11-04 15:16:50', '2014-11-04 15:16:50', 819504217) Fixture Insert (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-11-04 15:16:50', '2014-11-04 15:16:50', 132093124) Fixture Insert (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-11-04 15:16:50', '2014-11-04 15:16:50', 431685987) 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-11-04 15:16:50', '2014-11-04 15:16:50', 68463692) 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-11-04 15:16:50', '2014-11-04 15:16:50', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:16:50.345956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:16:50.364344"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:16:50.364138"], ["updated_at", "2014-11-04 15:16:50.364344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:16:50.393301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:16:50.397460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:16:50.403200"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:16:50.000000000 Z\n updated_at: 2014-11-04 15:16:50.397460000 Z\n"], ["run_at", "2014-11-04 15:17:00.399447"], ["updated_at", "2014-11-04 15:16:50.403200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:16:50.409491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:16:50.416026"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:16:50.423831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:16:50.431173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:16:50.436473"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:16:50.446518"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:16:50.000000000 Z\n updated_at: 2014-11-04 15:16:50.436473000 Z\n"], ["run_at", "2014-11-04 15:17:00.439085"], ["updated_at", "2014-11-04 15:16:50.446518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1585f83a37186ffd0b3dec4e62cb313c' LIMIT 1 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-11-04 15:16:50.463526"], ["extension", "txt"], ["name", "Test"], ["token", "1585f83a37186ffd0b3dec4e62cb313c"], ["updated_at", "2014-11-04 15:16:50.463526"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '03eb2e8d5c6c4959a16c0f7e6a082397' LIMIT 1 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-11-04 15:16:50.470983"], ["extension", "txt"], ["name", "Test"], ["token", "03eb2e8d5c6c4959a16c0f7e6a082397"], ["updated_at", "2014-11-04 15:16:50.470983"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '07e300d94aef62224984c66c33edbd35' LIMIT 1 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-11-04 15:16:50.481130"], ["extension", "txt"], ["name", "Test"], ["token", "07e300d94aef62224984c66c33edbd35"], ["updated_at", "2014-11-04 15:16:50.481130"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '73356e207367937d17db006a980d7825' LIMIT 1 SQL (0.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-04 15:16:50.487229"], ["extension", "txt"], ["name", "Test"], ["token", "73356e207367937d17db006a980d7825"], ["updated_at", "2014-11-04 15:16:50.487229"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '446e4078856e3dedf45e305850f74a16' LIMIT 1 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-11-04 15:16:50.494034"], ["extension", "txt"], ["name", "Test"], ["token", "446e4078856e3dedf45e305850f74a16"], ["updated_at", "2014-11-04 15:16:50.494034"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:16:50.519132"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 15:16:50.549428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:16:50.555331"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:16:50.555143"], ["updated_at", "2014-11-04 15:16:50.555331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:16:50.571879"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:16:50.585823"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:16:50.585823"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:16:50.591613"], ["name", "test"], ["updated_at", "2014-11-04 15:16:50.591613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovies (20141104152227)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "movies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152227"]]  (4.8ms) commit transaction Migrating to CreateMovieResources (20141104152345)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "movie_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "fogged_resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_resources_on_movie_id" ON "movie_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_resources_on_fogged_resource_id" ON "movie_resources" ("fogged_resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_fogged_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_fogged_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:29:02', '2014-11-04 15:29:02', 517391740) Fixture Insert (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-11-04 15:29:02', '2014-11-04 15:29:02', 701625837) Fixture Insert (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-11-04 15:29:02', '2014-11-04 15:29:02', 819504217) Fixture Insert (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-11-04 15:29:02', '2014-11-04 15:29:02', 132093124) Fixture Insert (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-11-04 15:29:02', '2014-11-04 15:29:02', 431685987) 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-11-04 15:29:02', '2014-11-04 15:29:02', 68463692) 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-11-04 15:29:02', '2014-11-04 15:29:02', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:29:02.142853"], ["name", "test"], ["updated_at", "2014-11-04 15:29:02.142853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.2ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources --------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" 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-11-04 15:29:20', '2014-11-04 15:29:20', 517391740) Fixture Insert (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-11-04 15:29:20', '2014-11-04 15:29:20', 701625837) Fixture Insert (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-11-04 15:29:20', '2014-11-04 15:29:20', 819504217) Fixture Insert (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-11-04 15:29:20', '2014-11-04 15:29:20', 132093124) Fixture Insert (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-11-04 15:29:20', '2014-11-04 15:29:20', 431685987) 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-11-04 15:29:20', '2014-11-04 15:29:20', 68463692) 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-11-04 15:29:20', '2014-11-04 15:29:20', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieResources (20141104152345)  (0.1ms) begin transaction  (0.4ms) DROP TABLE "movie_resources" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (4.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieResources (20141104152345)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "movie_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_resources_on_movie_id" ON "movie_resources" ("movie_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index'   (0.5ms) CREATE INDEX "index_movie_resources_on_resource_id" ON "movie_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'   (0.4ms) SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_resource_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_resources_on_movie_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:30:30', '2014-11-04 15:30:30', 517391740) Fixture Insert (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-11-04 15:30:30', '2014-11-04 15:30:30', 701625837) Fixture Insert (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-11-04 15:30:30', '2014-11-04 15:30:30', 819504217) Fixture Insert (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-11-04 15:30:30', '2014-11-04 15:30:30', 132093124) Fixture Insert (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-11-04 15:30:30', '2014-11-04 15:30:30', 431685987) 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-11-04 15:30:30', '2014-11-04 15:30:30', 68463692) 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-11-04 15:30:30', '2014-11-04 15:30:30', 591498715)  (4.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources --------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:32:40', '2014-11-04 15:32:40', 517391740) Fixture Insert (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-11-04 15:32:40', '2014-11-04 15:32:40', 701625837) Fixture Insert (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-11-04 15:32:40', '2014-11-04 15:32:40', 819504217) Fixture Insert (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-11-04 15:32:40', '2014-11-04 15:32:40', 132093124) Fixture Insert (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-11-04 15:32:40', '2014-11-04 15:32:40', 431685987) 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-11-04 15:32:40', '2014-11-04 15:32:40', 68463692) 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-11-04 15:32:40', '2014-11-04 15:32:40', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieResources (20141104152345) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieResources (20141104152345)  (0.1ms) begin transaction  (0.4ms) DROP TABLE "movie_resources" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (4.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "movie_fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_movie_id" ON "movie_fogged_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_resource_id" ON "movie_fogged_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (4.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.0ms) begin transaction  (0.5ms) DROP TABLE "movie_fogged_resources" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (4.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "movie_fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_movie_id" ON "movie_fogged_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_resource_id" ON "movie_fogged_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (4.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:36:46', '2014-11-04 15:36:46', 517391740) Fixture Insert (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-11-04 15:36:46', '2014-11-04 15:36:46', 701625837) Fixture Insert (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-11-04 15:36:46', '2014-11-04 15:36:46', 819504217) Fixture Insert (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-11-04 15:36:46', '2014-11-04 15:36:46', 132093124) Fixture Insert (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-11-04 15:36:46', '2014-11-04 15:36:46', 431685987) 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-11-04 15:36:46', '2014-11-04 15:36:46', 68463692) 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-11-04 15:36:46', '2014-11-04 15:36:46', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.0ms) begin transaction  (0.5ms) DROP TABLE "movie_fogged_resources" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (4.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMoviesFoggedResources (20141104152345)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "movies_fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movies_fogged_resources_on_movie_id" ON "movies_fogged_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movies_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movies_fogged_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movies_fogged_resources_on_resource_id" ON "movies_fogged_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movies_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movies_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movies_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movies_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:38:10', '2014-11-04 15:38:10', 517391740) Fixture Insert (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-11-04 15:38:10', '2014-11-04 15:38:10', 701625837) Fixture Insert (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-11-04 15:38:10', '2014-11-04 15:38:10', 819504217) Fixture Insert (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-11-04 15:38:10', '2014-11-04 15:38:10', 132093124) Fixture Insert (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-11-04 15:38:10', '2014-11-04 15:38:10', 431685987) 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-11-04 15:38:10', '2014-11-04 15:38:10', 68463692) 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-11-04 15:38:10', '2014-11-04 15:38:10', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMoviesFoggedResources (20141104152345)  (0.1ms) begin transaction  (0.6ms) DROP TABLE "movies_fogged_resources" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (4.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "movie_fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_movie_fogged_resources_on_movie_id" ON "movie_fogged_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_resource_id" ON "movie_fogged_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:40:21', '2014-11-04 15:40:21', 517391740) Fixture Insert (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-11-04 15:40:21', '2014-11-04 15:40:21', 701625837) Fixture Insert (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-11-04 15:40:21', '2014-11-04 15:40:21', 819504217) Fixture Insert (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-11-04 15:40:21', '2014-11-04 15:40:21', 132093124) Fixture Insert (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-11-04 15:40:21', '2014-11-04 15:40:21', 431685987) 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-11-04 15:40:21', '2014-11-04 15:40:21', 68463692) 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-11-04 15:40:21', '2014-11-04 15:40:21', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource -------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources --------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:40:32', '2014-11-04 15:40:32', 517391740) Fixture Insert (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-11-04 15:40:32', '2014-11-04 15:40:32', 701625837) Fixture Insert (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-11-04 15:40:32', '2014-11-04 15:40:32', 819504217) Fixture Insert (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-11-04 15:40:32', '2014-11-04 15:40:32', 132093124) Fixture Insert (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-11-04 15:40:32', '2014-11-04 15:40:32', 431685987) 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-11-04 15:40:32', '2014-11-04 15:40:32', 68463692) 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-11-04 15:40:32', '2014-11-04 15:40:32', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:40:48', '2014-11-04 15:40:48', 517391740) Fixture Insert (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-11-04 15:40:48', '2014-11-04 15:40:48', 701625837) Fixture Insert (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-11-04 15:40:48', '2014-11-04 15:40:48', 819504217) Fixture Insert (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-11-04 15:40:48', '2014-11-04 15:40:48', 132093124) Fixture Insert (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-11-04 15:40:48', '2014-11-04 15:40:48', 431685987) 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-11-04 15:40:48', '2014-11-04 15:40:48', 68463692) 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-11-04 15:40:48', '2014-11-04 15:40:48', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:40:48.284224"], ["name", "test"], ["updated_at", "2014-11-04 15:40:48.284224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:40:56', '2014-11-04 15:40:56', 517391740) Fixture Insert (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-11-04 15:40:56', '2014-11-04 15:40:56', 701625837) Fixture Insert (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-11-04 15:40:56', '2014-11-04 15:40:56', 819504217) Fixture Insert (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-11-04 15:40:56', '2014-11-04 15:40:56', 132093124) Fixture Insert (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-11-04 15:40:56', '2014-11-04 15:40:56', 431685987) 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-11-04 15:40:56', '2014-11-04 15:40:56', 68463692) 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-11-04 15:40:56', '2014-11-04 15:40:56', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource -------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:40:56.909759"], ["name", "test"], ["updated_at", "2014-11-04 15:40:56.909759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources --------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:42:26', '2014-11-04 15:42:26', 517391740) Fixture Insert (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-11-04 15:42:26', '2014-11-04 15:42:26', 701625837) Fixture Insert (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-11-04 15:42:26', '2014-11-04 15:42:26', 819504217) Fixture Insert (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-11-04 15:42:26', '2014-11-04 15:42:26', 132093124) Fixture Insert (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-11-04 15:42:26', '2014-11-04 15:42:26', 431685987) 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-11-04 15:42:26', '2014-11-04 15:42:26', 68463692) 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-11-04 15:42:26', '2014-11-04 15:42:26', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:42:26.281831"], ["name", "test"], ["updated_at", "2014-11-04 15:42:26.281831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:42:26.303526"], ["name", "test"], ["updated_at", "2014-11-04 15:42:26.303526"]] SQL (0.4ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:26.306238"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:42:26.306238"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:26.308321"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:42:26.308321"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:42:43', '2014-11-04 15:42:43', 517391740) Fixture Insert (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-11-04 15:42:43', '2014-11-04 15:42:43', 701625837) Fixture Insert (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-11-04 15:42:43', '2014-11-04 15:42:43', 819504217) Fixture Insert (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-11-04 15:42:43', '2014-11-04 15:42:43', 132093124) Fixture Insert (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-11-04 15:42:43', '2014-11-04 15:42:43', 431685987) 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-11-04 15:42:43', '2014-11-04 15:42:43', 68463692) 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-11-04 15:42:43', '2014-11-04 15:42:43', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:42:43.898307"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:42:43.906383"], ["name", "test"], ["updated_at", "2014-11-04 15:42:43.906383"]] SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:43.908863"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:42:43.908863"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:43.911281"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:42:43.911281"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:43.913418"], ["movie_id", 1], ["resource_id", 431685987], ["updated_at", "2014-11-04 15:42:43.913418"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:42:43.921659"], ["name", "test"], ["updated_at", "2014-11-04 15:42:43.921659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:42:43.931497"], ["name", "test"], ["updated_at", "2014-11-04 15:42:43.931497"]] SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:43.935452"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:42:43.935452"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:42:43.938226"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:42:43.938226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 15:43:19', '2014-11-04 15:43:19', 517391740) Fixture Insert (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-11-04 15:43:19', '2014-11-04 15:43:19', 701625837) Fixture Insert (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-11-04 15:43:19', '2014-11-04 15:43:19', 819504217) Fixture Insert (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-11-04 15:43:19', '2014-11-04 15:43:19', 132093124) Fixture Insert (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-11-04 15:43:19', '2014-11-04 15:43:19', 431685987) 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-11-04 15:43:19', '2014-11-04 15:43:19', 68463692) 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-11-04 15:43:19', '2014-11-04 15:43:19', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:43:20.057357"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:43:20.066675"], ["name", "test"], ["updated_at", "2014-11-04 15:43:20.066675"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:20.068437"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:43:20.068437"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:20.069500"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:43:20.069500"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:20.071265"], ["movie_id", 1], ["resource_id", 431685987], ["updated_at", "2014-11-04 15:43:20.071265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:43:31', '2014-11-04 15:43:31', 517391740) Fixture Insert (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-11-04 15:43:31', '2014-11-04 15:43:31', 701625837) Fixture Insert (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-11-04 15:43:31', '2014-11-04 15:43:31', 819504217) Fixture Insert (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-11-04 15:43:31', '2014-11-04 15:43:31', 132093124) Fixture Insert (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-11-04 15:43:31', '2014-11-04 15:43:31', 431685987) 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-11-04 15:43:31', '2014-11-04 15:43:31', 68463692) 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-11-04 15:43:31', '2014-11-04 15:43:31', 591498715)  (4.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:43:31.253951"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:43:59.689616"], ["name", "test"], ["updated_at", "2014-11-04 15:43:59.689616"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:59.692157"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:43:59.692157"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:59.693345"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:43:59.693345"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:43:59.694220"], ["movie_id", 1], ["resource_id", 431685987], ["updated_at", "2014-11-04 15:43:59.694220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-04 15:44:44', '2014-11-04 15:44:44', 517391740) Fixture Insert (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-11-04 15:44:44', '2014-11-04 15:44:44', 701625837) Fixture Insert (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-11-04 15:44:44', '2014-11-04 15:44:44', 819504217) Fixture Insert (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-11-04 15:44:44', '2014-11-04 15:44:44', 132093124) Fixture Insert (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-11-04 15:44:44', '2014-11-04 15:44:44', 431685987) 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-11-04 15:44:44', '2014-11-04 15:44:44', 68463692) 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-11-04 15:44:44', '2014-11-04 15:44:44', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:44:44.849440"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:44:44.853475"], ["name", "test"], ["updated_at", "2014-11-04 15:44:44.853475"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:44:44.854711"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:44:44.854711"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:44:44.855832"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:44:44.855832"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:44:44.856598"], ["movie_id", 1], ["resource_id", 431685987], ["updated_at", "2014-11-04 15:44:44.856598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 15:45:04', '2014-11-04 15:45:04', 517391740) Fixture Insert (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-11-04 15:45:04', '2014-11-04 15:45:04', 701625837) Fixture Insert (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-11-04 15:45:04', '2014-11-04 15:45:04', 819504217) Fixture Insert (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-11-04 15:45:04', '2014-11-04 15:45:04', 132093124) Fixture Insert (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-11-04 15:45:04', '2014-11-04 15:45:04', 431685987) 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-11-04 15:45:04', '2014-11-04 15:45:04', 68463692) 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-11-04 15:45:04', '2014-11-04 15:45:04', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:45:04.937442"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:46:10.477863"], ["name", "test"], ["updated_at", "2014-11-04 15:46:10.477863"]] SQL (0.7ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:46:10.484730"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:46:10.484730"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:46:10.486415"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:46:10.486415"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:46:10.487200"], ["movie_id", 1], ["resource_id", 431685987], ["updated_at", "2014-11-04 15:46:10.487200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-04 15:49:10', '2014-11-04 15:49:10', 517391740) Fixture Insert (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-11-04 15:49:10', '2014-11-04 15:49:10', 701625837) Fixture Insert (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-11-04 15:49:10', '2014-11-04 15:49:10', 819504217) Fixture Insert (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-11-04 15:49:10', '2014-11-04 15:49:10', 132093124) Fixture Insert (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-11-04 15:49:10', '2014-11-04 15:49:10', 431685987) 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-11-04 15:49:10', '2014-11-04 15:49:10', 68463692) 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-11-04 15:49:10', '2014-11-04 15:49:10', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:49:11.061721"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load movie_resource, underlying cause No such file to load -- movie_resource /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:348:in `require_or_load' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:307:in `depend_on' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:225:in `require_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:862:in `try_to_load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:881:in `block in require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `each' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:857:in `fixtures' /Users/david/projects/fogged/test/integration/navigation_test.rb:4:in `' /Users/david/projects/fogged/test/integration/navigation_test.rb:3:in `' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `each' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `block in
' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `select' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `
'  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 15:49:35', '2014-11-04 15:49:35', 517391740) Fixture Insert (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-11-04 15:49:35', '2014-11-04 15:49:35', 701625837) Fixture Insert (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-11-04 15:49:35', '2014-11-04 15:49:35', 819504217) Fixture Insert (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-11-04 15:49:35', '2014-11-04 15:49:35', 132093124) Fixture Insert (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-11-04 15:49:35', '2014-11-04 15:49:35', 431685987) 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-11-04 15:49:35', '2014-11-04 15:49:35', 68463692) 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-11-04 15:49:35', '2014-11-04 15:49:35', 591498715)  (0.7ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-04 15:49:35.213952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.235186"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:49:35.234866"], ["updated_at", "2014-11-04 15:49:35.235186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:49:35.253444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:49:35.258973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.271568"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:49:35.000000000 Z\n updated_at: 2014-11-04 15:49:35.258973000 Z\n"], ["run_at", "2014-11-04 15:49:45.262916"], ["updated_at", "2014-11-04 15:49:35.271568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 15:49:35.278131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 15:49:35.285109"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (1.2ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:49:35.296622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 15:49:35.303822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 15:49:35.308685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.312379"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 15:49:35.000000000 Z\n updated_at: 2014-11-04 15:49:35.308685000 Z\n"], ["run_at", "2014-11-04 15:49:45.309744"], ["updated_at", "2014-11-04 15:49:35.312379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd9475daa4c7ad72ac4f66648c5866873' LIMIT 1 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-11-04 15:49:35.321903"], ["extension", "txt"], ["name", "Test"], ["token", "d9475daa4c7ad72ac4f66648c5866873"], ["updated_at", "2014-11-04 15:49:35.321903"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '030e49c3e7674da918d0252e6f652cb6' LIMIT 1 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-11-04 15:49:35.327685"], ["extension", "txt"], ["name", "Test"], ["token", "030e49c3e7674da918d0252e6f652cb6"], ["updated_at", "2014-11-04 15:49:35.327685"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '126bb37f1c6d02c23805acc3aaa9713b' LIMIT 1 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-11-04 15:49:35.339839"], ["extension", "txt"], ["name", "Test"], ["token", "126bb37f1c6d02c23805acc3aaa9713b"], ["updated_at", "2014-11-04 15:49:35.339839"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '0a5436a3e609fa934dd3bae808b0f348' LIMIT 1 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-11-04 15:49:35.347688"], ["extension", "txt"], ["name", "Test"], ["token", "0a5436a3e609fa934dd3bae808b0f348"], ["updated_at", "2014-11-04 15:49:35.347688"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'dee92f1dc3d68534fd7f5dcd019dab89' LIMIT 1 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-11-04 15:49:35.357172"], ["extension", "txt"], ["name", "Test"], ["token", "dee92f1dc3d68534fd7f5dcd019dab89"], ["updated_at", "2014-11-04 15:49:35.357172"], ["uploading", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 15:49:35.390166"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-04 15:49:35.402670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.405552"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 15:49:35.405418"], ["updated_at", "2014-11-04 15:49:35.405552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 15:49:35.447263"], ["uploading", "t"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:49:35.454488"], ["name", "test"], ["updated_at", "2014-11-04 15:49:35.454488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:49:35.460964"], ["name", "test"], ["updated_at", "2014-11-04 15:49:35.460964"]] SQL (0.7ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.463812"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:49:35.463812"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.467204"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 15:49:35.467204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 15:49:35.477423"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 15:49:35.482648"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 15:49:35.482648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 15:49:35.485762"], ["name", "test"], ["updated_at", "2014-11-04 15:49:35.485762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load movie_resource, underlying cause No such file to load -- movie_resource /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:348:in `require_or_load' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:307:in `depend_on' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:225:in `require_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:862:in `try_to_load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:881:in `block in require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `each' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:857:in `fixtures' /Users/david/projects/fogged/test/integration/navigation_test.rb:4:in `' /Users/david/projects/fogged/test/integration/navigation_test.rb:3:in `' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `each' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `block in
' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `select' /Users/david/.gem/ruby/2.1.3/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `
'  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:33:55', '2014-11-04 16:33:55', 517391740) Fixture Insert (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-11-04 16:33:55', '2014-11-04 16:33:55', 701625837) Fixture Insert (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-11-04 16:33:55', '2014-11-04 16:33:55', 819504217) Fixture Insert (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-11-04 16:33:55', '2014-11-04 16:33:55', 132093124) Fixture Insert (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-11-04 16:33:55', '2014-11-04 16:33:55', 431685987) 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-11-04 16:33:55', '2014-11-04 16:33:55', 68463692) 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-11-04 16:33:55', '2014-11-04 16:33:55', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 16:33:55.931082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:55.940931"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 16:33:55.940789"], ["updated_at", "2014-11-04 16:33:55.940931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aec5eedcc194483f42df31c6aba01630' LIMIT 1 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-11-04 16:33:55.952335"], ["extension", "txt"], ["name", "Test"], ["token", "aec5eedcc194483f42df31c6aba01630"], ["updated_at", "2014-11-04 16:33:55.952335"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7abe53c2e8988535509fb23b53137148' LIMIT 1 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-11-04 16:33:55.955544"], ["extension", "txt"], ["name", "Test"], ["token", "7abe53c2e8988535509fb23b53137148"], ["updated_at", "2014-11-04 16:33:55.955544"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '764f93ef048488c708c1b07d24e23838' LIMIT 1 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-11-04 16:33:55.961161"], ["extension", "txt"], ["name", "Test"], ["token", "764f93ef048488c708c1b07d24e23838"], ["updated_at", "2014-11-04 16:33:55.961161"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '910bd19c71fad78f4296f6267219ff96' LIMIT 1 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-11-04 16:33:55.964072"], ["extension", "txt"], ["name", "Test"], ["token", "910bd19c71fad78f4296f6267219ff96"], ["updated_at", "2014-11-04 16:33:55.964072"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a13172944194a460f924e46804d7a905' LIMIT 1 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-11-04 16:33:55.967428"], ["extension", "txt"], ["name", "Test"], ["token", "a13172944194a460f924e46804d7a905"], ["updated_at", "2014-11-04 16:33:55.967428"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:33:55.979646"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-04 16:33:55.986911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:55.990593"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-04 16:33:55.990491"], ["updated_at", "2014-11-04 16:33:55.990593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-04 16:33:55.996238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 16:33:55.999112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:56.010825"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 16:33:55.000000000 Z\n updated_at: 2014-11-04 16:33:55.999112000 Z\n"], ["run_at", "2014-11-04 16:34:06.000069"], ["updated_at", "2014-11-04 16:33:56.010825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 16:33:56.014781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-04 16:33:56.017378"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 16:33:56.020703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-04 16:33:56.024427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-04 16:33:56.026686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:56.030287"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-04 16:33:55.000000000 Z\n updated_at: 2014-11-04 16:33:56.026686000 Z\n"], ["run_at", "2014-11-04 16:34:06.027411"], ["updated_at", "2014-11-04 16:33:56.030287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-04 16:33:56.064473"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 16:33:56.068637"], ["name", "test"], ["updated_at", "2014-11-04 16:33:56.068637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 16:33:56.073107"], ["name", "test"], ["updated_at", "2014-11-04 16:33:56.073107"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:56.073985"], ["movie_id", 1], ["resource_id", 701625837], ["updated_at", "2014-11-04 16:33:56.073985"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:56.074930"], ["movie_id", 1], ["resource_id", 819504217], ["updated_at", "2014-11-04 16:33:56.074930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-04 16:33:56.082434"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 16:33:56.086433"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-04 16:33:56.086433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 16:33:56.088610"], ["name", "test"], ["updated_at", "2014-11-04 16:33:56.088610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:37:12', '2014-11-04 16:37:12', 517391740) Fixture Insert (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-11-04 16:37:12', '2014-11-04 16:37:12', 701625837) Fixture Insert (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-11-04 16:37:12', '2014-11-04 16:37:12', 819504217) Fixture Insert (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-11-04 16:37:12', '2014-11-04 16:37:12', 132093124) Fixture Insert (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-11-04 16:37:12', '2014-11-04 16:37:12', 431685987) 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-11-04 16:37:12', '2014-11-04 16:37:12', 68463692) 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-11-04 16:37:12', '2014-11-04 16:37:12', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:37:40', '2014-11-04 16:37:40', 517391740) Fixture Insert (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-11-04 16:37:40', '2014-11-04 16:37:40', 701625837) Fixture Insert (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-11-04 16:37:40', '2014-11-04 16:37:40', 819504217) Fixture Insert (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-11-04 16:37:40', '2014-11-04 16:37:40', 132093124) Fixture Insert (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-11-04 16:37:40', '2014-11-04 16:37:40', 431685987) 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-11-04 16:37:40', '2014-11-04 16:37:40', 68463692) 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-11-04 16:37:40', '2014-11-04 16:37:40', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" 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-11-04 16:39:25', '2014-11-04 16:39:25', 517391740) Fixture Insert (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-11-04 16:39:25', '2014-11-04 16:39:25', 701625837) Fixture Insert (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-11-04 16:39:25', '2014-11-04 16:39:25', 819504217) Fixture Insert (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-11-04 16:39:25', '2014-11-04 16:39:25', 132093124) Fixture Insert (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-11-04 16:39:25', '2014-11-04 16:39:25', 431685987) 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-11-04 16:39:25', '2014-11-04 16:39:25', 68463692) 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-11-04 16:39:25', '2014-11-04 16:39:25', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:39:25.855750"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (2.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:42:24', '2014-11-04 16:42:24', 517391740) Fixture Insert (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-11-04 16:42:24', '2014-11-04 16:42:24', 701625837) Fixture Insert (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-11-04 16:42:24', '2014-11-04 16:42:24', 819504217) Fixture Insert (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-11-04 16:42:24', '2014-11-04 16:42:24', 132093124) Fixture Insert (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-11-04 16:42:24', '2014-11-04 16:42:24', 431685987) 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-11-04 16:42:24', '2014-11-04 16:42:24', 68463692) 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-11-04 16:42:24', '2014-11-04 16:42:24', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource --------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:42:52', '2014-11-04 16:42:52', 517391740) Fixture Insert (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-11-04 16:42:52', '2014-11-04 16:42:52', 701625837) Fixture Insert (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-11-04 16:42:52', '2014-11-04 16:42:52', 819504217) Fixture Insert (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-11-04 16:42:52', '2014-11-04 16:42:52', 132093124) Fixture Insert (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-11-04 16:42:52', '2014-11-04 16:42:52', 431685987) 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-11-04 16:42:52', '2014-11-04 16:42:52', 68463692) 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-11-04 16:42:52', '2014-11-04 16:42:52', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:42:52.577947"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.1ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:43:23', '2014-11-04 16:43:23', 517391740) Fixture Insert (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-11-04 16:43:23', '2014-11-04 16:43:23', 701625837) Fixture Insert (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-11-04 16:43:23', '2014-11-04 16:43:23', 819504217) Fixture Insert (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-11-04 16:43:23', '2014-11-04 16:43:23', 132093124) Fixture Insert (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-11-04 16:43:23', '2014-11-04 16:43:23', 431685987) 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-11-04 16:43:23', '2014-11-04 16:43:23', 68463692) 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-11-04 16:43:23', '2014-11-04 16:43:23', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:43:24.011417"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:43:36', '2014-11-04 16:43:36', 517391740) Fixture Insert (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-11-04 16:43:36', '2014-11-04 16:43:36', 701625837) Fixture Insert (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-11-04 16:43:36', '2014-11-04 16:43:36', 819504217) Fixture Insert (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-11-04 16:43:36', '2014-11-04 16:43:36', 132093124) Fixture Insert (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-11-04 16:43:36', '2014-11-04 16:43:36', 431685987) 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-11-04 16:43:36', '2014-11-04 16:43:36', 68463692) 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-11-04 16:43:36', '2014-11-04 16:43:36', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:43:36.078512"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" 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-11-04 16:44:33', '2014-11-04 16:44:33', 517391740) Fixture Insert (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-11-04 16:44:33', '2014-11-04 16:44:33', 701625837) Fixture Insert (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-11-04 16:44:33', '2014-11-04 16:44:33', 819504217) Fixture Insert (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-11-04 16:44:33', '2014-11-04 16:44:33', 132093124) Fixture Insert (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-11-04 16:44:33', '2014-11-04 16:44:33', 431685987) 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-11-04 16:44:33', '2014-11-04 16:44:33', 68463692) 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-11-04 16:44:33', '2014-11-04 16:44:33', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:44:33.297321"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:45:00', '2014-11-04 16:45:00', 517391740) Fixture Insert (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-11-04 16:45:00', '2014-11-04 16:45:00', 701625837) Fixture Insert (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-11-04 16:45:00', '2014-11-04 16:45:00', 819504217) Fixture Insert (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-11-04 16:45:00', '2014-11-04 16:45:00', 132093124) Fixture Insert (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-11-04 16:45:00', '2014-11-04 16:45:00', 431685987) 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-11-04 16:45:00', '2014-11-04 16:45:00', 68463692) 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-11-04 16:45:00', '2014-11-04 16:45:00', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:45:00.451071"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.1ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-04 16:46:32', '2014-11-04 16:46:32', 517391740) Fixture Insert (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-11-04 16:46:32', '2014-11-04 16:46:32', 701625837) Fixture Insert (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-11-04 16:46:32', '2014-11-04 16:46:32', 819504217) Fixture Insert (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-11-04 16:46:32', '2014-11-04 16:46:32', 132093124) Fixture Insert (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-11-04 16:46:32', '2014-11-04 16:46:32', 431685987) 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-11-04 16:46:32', '2014-11-04 16:46:32', 68463692) 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-11-04 16:46:32', '2014-11-04 16:46:32', 591498715)  (0.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_image_resource -------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:46:32.211282"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:46:48', '2014-11-04 16:46:48', 517391740) Fixture Insert (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-11-04 16:46:48', '2014-11-04 16:46:48', 701625837) Fixture Insert (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-11-04 16:46:48', '2014-11-04 16:46:48', 819504217) Fixture Insert (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-11-04 16:46:48', '2014-11-04 16:46:48', 132093124) Fixture Insert (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-11-04 16:46:48', '2014-11-04 16:46:48', 431685987) 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-11-04 16:46:48', '2014-11-04 16:46:48', 68463692) 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-11-04 16:46:48', '2014-11-04 16:46:48', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:46:48.412289"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:47:01', '2014-11-04 16:47:01', 517391740) Fixture Insert (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-11-04 16:47:01', '2014-11-04 16:47:01', 701625837) Fixture Insert (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-11-04 16:47:01', '2014-11-04 16:47:01', 819504217) Fixture Insert (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-11-04 16:47:01', '2014-11-04 16:47:01', 132093124) Fixture Insert (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-11-04 16:47:01', '2014-11-04 16:47:01', 431685987) 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-11-04 16:47:01', '2014-11-04 16:47:01', 68463692) 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-11-04 16:47:01', '2014-11-04 16:47:01', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:47:01.229487"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:47:51', '2014-11-04 16:47:51', 517391740) Fixture Insert (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-11-04 16:47:51', '2014-11-04 16:47:51', 701625837) Fixture Insert (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-11-04 16:47:51', '2014-11-04 16:47:51', 819504217) Fixture Insert (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-11-04 16:47:51', '2014-11-04 16:47:51', 132093124) Fixture Insert (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-11-04 16:47:51', '2014-11-04 16:47:51', 431685987) 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-11-04 16:47:51', '2014-11-04 16:47:51', 68463692) 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-11-04 16:47:51', '2014-11-04 16:47:51', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:47:51.276757"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:48:40', '2014-11-04 16:48:40', 517391740) Fixture Insert (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-11-04 16:48:40', '2014-11-04 16:48:40', 701625837) Fixture Insert (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-11-04 16:48:40', '2014-11-04 16:48:40', 819504217) Fixture Insert (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-11-04 16:48:40', '2014-11-04 16:48:40', 132093124) Fixture Insert (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-11-04 16:48:40', '2014-11-04 16:48:40', 431685987) 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-11-04 16:48:40', '2014-11-04 16:48:40', 68463692) 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-11-04 16:48:40', '2014-11-04 16:48:40', 591498715)  (4.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:48:40.655953"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ----------------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:48:52', '2014-11-04 16:48:52', 517391740) Fixture Insert (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-11-04 16:48:52', '2014-11-04 16:48:52', 701625837) Fixture Insert (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-11-04 16:48:52', '2014-11-04 16:48:52', 819504217) Fixture Insert (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-11-04 16:48:52', '2014-11-04 16:48:52', 132093124) Fixture Insert (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-11-04 16:48:52', '2014-11-04 16:48:52', 431685987) 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-11-04 16:48:52', '2014-11-04 16:48:52', 68463692) 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-11-04 16:48:52', '2014-11-04 16:48:52', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:48:52.581352"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:49:10', '2014-11-04 16:49:10', 517391740) Fixture Insert (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-11-04 16:49:10', '2014-11-04 16:49:10', 701625837) Fixture Insert (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-11-04 16:49:10', '2014-11-04 16:49:10', 819504217) Fixture Insert (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-11-04 16:49:10', '2014-11-04 16:49:10', 132093124) Fixture Insert (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-11-04 16:49:10', '2014-11-04 16:49:10', 431685987) 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-11-04 16:49:10', '2014-11-04 16:49:10', 68463692) 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-11-04 16:49:10', '2014-11-04 16:49:10', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-04 16:49:10.030949"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:50:04', '2014-11-04 16:50:04', 517391740) Fixture Insert (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-11-04 16:50:04', '2014-11-04 16:50:04', 701625837) Fixture Insert (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-11-04 16:50:04', '2014-11-04 16:50:04', 819504217) Fixture Insert (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-11-04 16:50:04', '2014-11-04 16:50:04', 132093124) Fixture Insert (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-11-04 16:50:04', '2014-11-04 16:50:04', 431685987) 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-11-04 16:50:04', '2014-11-04 16:50:04', 68463692) 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-11-04 16:50:04', '2014-11-04 16:50:04', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:50:16', '2014-11-04 16:50:16', 517391740) Fixture Insert (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-11-04 16:50:16', '2014-11-04 16:50:16', 701625837) Fixture Insert (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-11-04 16:50:16', '2014-11-04 16:50:16', 819504217) Fixture Insert (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-11-04 16:50:16', '2014-11-04 16:50:16', 132093124) Fixture Insert (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-11-04 16:50:16', '2014-11-04 16:50:16', 431685987) 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-11-04 16:50:16', '2014-11-04 16:50:16', 68463692) 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-11-04 16:50:16', '2014-11-04 16:50:16', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '820e922092c9fd84225e0ffba1c3fcee' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-04 16:50:16.538450"], ["extension", "png"], ["name", "Dummy"], ["token", "820e922092c9fd84225e0ffba1c3fcee"], ["updated_at", "2014-11-04 16:50:16.538450"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 2.5ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:50:35', '2014-11-04 16:50:35', 517391740) Fixture Insert (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-11-04 16:50:35', '2014-11-04 16:50:35', 701625837) Fixture Insert (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-11-04 16:50:35', '2014-11-04 16:50:35', 819504217) Fixture Insert (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-11-04 16:50:35', '2014-11-04 16:50:35', 132093124) Fixture Insert (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-11-04 16:50:35', '2014-11-04 16:50:35', 431685987) 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-11-04 16:50:35', '2014-11-04 16:50:35', 68463692) 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-11-04 16:50:35', '2014-11-04 16:50:35', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '51d23a2ff9602c63e9cebf3c588ff19f' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-04 16:50:35.750283"], ["extension", "png"], ["name", "Dummy"], ["token", "51d23a2ff9602c63e9cebf3c588ff19f"], ["updated_at", "2014-11-04 16:50:35.750283"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:50:52', '2014-11-04 16:50:52', 517391740) Fixture Insert (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-11-04 16:50:52', '2014-11-04 16:50:52', 701625837) Fixture Insert (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-11-04 16:50:52', '2014-11-04 16:50:52', 819504217) Fixture Insert (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-11-04 16:50:52', '2014-11-04 16:50:52', 132093124) Fixture Insert (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-11-04 16:50:52', '2014-11-04 16:50:52', 431685987) 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-11-04 16:50:52', '2014-11-04 16:50:52', 68463692) 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-11-04 16:50:52', '2014-11-04 16:50:52', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '87f76f2fb45754db242dc00a0801639e' LIMIT 1 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-11-04 16:50:52.731467"], ["extension", "png"], ["name", "Dummy"], ["token", "87f76f2fb45754db242dc00a0801639e"], ["updated_at", "2014-11-04 16:50:52.731467"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:51:25', '2014-11-04 16:51:25', 517391740) Fixture Insert (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-11-04 16:51:25', '2014-11-04 16:51:25', 701625837) Fixture Insert (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-11-04 16:51:25', '2014-11-04 16:51:25', 819504217) Fixture Insert (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-11-04 16:51:25', '2014-11-04 16:51:25', 132093124) Fixture Insert (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-11-04 16:51:25', '2014-11-04 16:51:25', 431685987) 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-11-04 16:51:25', '2014-11-04 16:51:25', 68463692) 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-11-04 16:51:25', '2014-11-04 16:51:25', 591498715)  (4.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1803adf66ef85b6706149d86fc7e590e' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-04 16:51:25.442277"], ["extension", "png"], ["name", "Dummy"], ["token", "1803adf66ef85b6706149d86fc7e590e"], ["updated_at", "2014-11-04 16:51:25.442277"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 2.0ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:51:45', '2014-11-04 16:51:45', 517391740) Fixture Insert (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-11-04 16:51:45', '2014-11-04 16:51:45', 701625837) Fixture Insert (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-11-04 16:51:45', '2014-11-04 16:51:45', 819504217) Fixture Insert (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-11-04 16:51:45', '2014-11-04 16:51:45', 132093124) Fixture Insert (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-11-04 16:51:45', '2014-11-04 16:51:45', 431685987) 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-11-04 16:51:45', '2014-11-04 16:51:45', 68463692) 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-11-04 16:51:45', '2014-11-04 16:51:45', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '41f109e7a7f9e9a955779df55994781f' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-04 16:51:45.632265"], ["extension", "png"], ["name", "Dummy"], ["token", "41f109e7a7f9e9a955779df55994781f"], ["updated_at", "2014-11-04 16:51:45.632265"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.6ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:53:06', '2014-11-04 16:53:06', 517391740) Fixture Insert (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-11-04 16:53:06', '2014-11-04 16:53:06', 701625837) Fixture Insert (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-11-04 16:53:06', '2014-11-04 16:53:06', 819504217) Fixture Insert (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-11-04 16:53:06', '2014-11-04 16:53:06', 132093124) Fixture Insert (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-11-04 16:53:06', '2014-11-04 16:53:06', 431685987) 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-11-04 16:53:06', '2014-11-04 16:53:06', 68463692) 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-11-04 16:53:06', '2014-11-04 16:53:06', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '20a3bb52c6c721086eb69ab9ea8e7653' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-04 16:53:06.241930"], ["extension", "png"], ["name", "Dummy"], ["token", "20a3bb52c6c721086eb69ab9ea8e7653"], ["updated_at", "2014-11-04 16:53:06.241930"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 22ms (Views: 1.6ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:53:25', '2014-11-04 16:53:25', 517391740) Fixture Insert (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-11-04 16:53:25', '2014-11-04 16:53:25', 701625837) Fixture Insert (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-11-04 16:53:25', '2014-11-04 16:53:25', 819504217) Fixture Insert (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-11-04 16:53:25', '2014-11-04 16:53:25', 132093124) Fixture Insert (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-11-04 16:53:25', '2014-11-04 16:53:25', 431685987) 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-11-04 16:53:25', '2014-11-04 16:53:25', 68463692) 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-11-04 16:53:25', '2014-11-04 16:53:25', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5663cd4bf99d25197ca1affcaba3915b' LIMIT 1 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-11-04 16:53:25.522244"], ["extension", "png"], ["name", "Dummy"], ["token", "5663cd4bf99d25197ca1affcaba3915b"], ["updated_at", "2014-11-04 16:53:25.522244"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.9ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:53:51', '2014-11-04 16:53:51', 517391740) Fixture Insert (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-11-04 16:53:51', '2014-11-04 16:53:51', 701625837) Fixture Insert (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-11-04 16:53:51', '2014-11-04 16:53:51', 819504217) Fixture Insert (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-11-04 16:53:51', '2014-11-04 16:53:51', 132093124) Fixture Insert (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-11-04 16:53:51', '2014-11-04 16:53:51', 431685987) 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-11-04 16:53:51', '2014-11-04 16:53:51', 68463692) 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-11-04 16:53:51', '2014-11-04 16:53:51', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'eba929cb30a37dd7276c6d587acc288c' LIMIT 1 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-11-04 16:53:51.376555"], ["extension", "png"], ["name", "Dummy"], ["token", "eba929cb30a37dd7276c6d587acc288c"], ["updated_at", "2014-11-04 16:53:51.376555"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 7ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:55:09', '2014-11-04 16:55:09', 517391740) Fixture Insert (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-11-04 16:55:09', '2014-11-04 16:55:09', 701625837) Fixture Insert (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-11-04 16:55:09', '2014-11-04 16:55:09', 819504217) Fixture Insert (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-11-04 16:55:09', '2014-11-04 16:55:09', 132093124) Fixture Insert (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-11-04 16:55:09', '2014-11-04 16:55:09', 431685987) 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-11-04 16:55:09', '2014-11-04 16:55:09', 68463692) 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-11-04 16:55:09', '2014-11-04 16:55:09', 591498715)  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ----------------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 16:55:16', '2014-11-04 16:55:16', 517391740) Fixture Insert (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-11-04 16:55:16', '2014-11-04 16:55:16', 701625837) Fixture Insert (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-11-04 16:55:16', '2014-11-04 16:55:16', 819504217) Fixture Insert (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-11-04 16:55:16', '2014-11-04 16:55:16', 132093124) Fixture Insert (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-11-04 16:55:16', '2014-11-04 16:55:16', 431685987) 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-11-04 16:55:16', '2014-11-04 16:55:16', 68463692) 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-11-04 16:55:16', '2014-11-04 16:55:16', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 17:01:06', '2014-11-04 17:01:06', 517391740) Fixture Insert (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-11-04 17:01:06', '2014-11-04 17:01:06', 701625837) Fixture Insert (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-11-04 17:01:06', '2014-11-04 17:01:06', 819504217) Fixture Insert (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-11-04 17:01:06', '2014-11-04 17:01:06', 132093124) Fixture Insert (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-11-04 17:01:06', '2014-11-04 17:01:06', 431685987) 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-11-04 17:01:06', '2014-11-04 17:01:06', 68463692) 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-11-04 17:01:06', '2014-11-04 17:01:06', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 17:02:28', '2014-11-04 17:02:28', 517391740) Fixture Insert (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-11-04 17:02:28', '2014-11-04 17:02:28', 701625837) Fixture Insert (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-11-04 17:02:28', '2014-11-04 17:02:28', 819504217) Fixture Insert (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-11-04 17:02:28', '2014-11-04 17:02:28', 132093124) Fixture Insert (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-11-04 17:02:28', '2014-11-04 17:02:28', 431685987) 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-11-04 17:02:28', '2014-11-04 17:02:28', 68463692) 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-11-04 17:02:28', '2014-11-04 17:02:28', 591498715)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-04 17:02:28.413074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (Views: 1.4ms | ActiveRecord: 0.7ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (1.1ms) DELETE FROM "fogged_resources" 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-11-04 17:09:22', '2014-11-04 17:09:22', 517391740) Fixture Insert (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-11-04 17:09:22', '2014-11-04 17:09:22', 701625837) Fixture Insert (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-11-04 17:09:22', '2014-11-04 17:09:22', 819504217) Fixture Insert (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-11-04 17:09:22', '2014-11-04 17:09:22', 132093124) Fixture Insert (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-11-04 17:09:22', '2014-11-04 17:09:22', 431685987) 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-11-04 17:09:22', '2014-11-04 17:09:22', 68463692) 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-11-04 17:09:22', '2014-11-04 17:09:22', 591498715)  (0.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_groups ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group ---------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group_with_search_query_on_name -----------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_groups --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_group_id -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_not_index_resources_as_anonymous --------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-04 17:09:33', '2014-11-04 17:09:33', 517391740) Fixture Insert (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-11-04 17:09:33', '2014-11-04 17:09:33', 701625837) Fixture Insert (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-11-04 17:09:33', '2014-11-04 17:09:33', 819504217) Fixture Insert (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-11-04 17:09:33', '2014-11-04 17:09:33', 132093124) Fixture Insert (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-11-04 17:09:33', '2014-11-04 17:09:33', 431685987) 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-11-04 17:09:33', '2014-11-04 17:09:33', 68463692) 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-11-04 17:09:33', '2014-11-04 17:09:33', 591498715)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_groups ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group --------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" 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-11-05 06:51:09', '2014-11-05 06:51:09', 517391740) Fixture Insert (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-11-05 06:51:09', '2014-11-05 06:51:09', 701625837) Fixture Insert (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-11-05 06:51:09', '2014-11-05 06:51:09', 819504217) Fixture Insert (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-11-05 06:51:09', '2014-11-05 06:51:09', 132093124) Fixture Insert (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-11-05 06:51:09', '2014-11-05 06:51:09', 431685987) 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-11-05 06:51:09', '2014-11-05 06:51:09', 68463692) 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-11-05 06:51:09', '2014-11-05 06:51:09', 591498715)  (0.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_groups ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group ---------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group_with_search_query_on_name ----------------------------------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load movie_resource, underlying cause No such file to load -- movie_resource /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:348:in `require_or_load' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:307:in `depend_on' /Users/david/.gem/ruby/2.1.3/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:225:in `require_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:862:in `try_to_load_dependency' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:881:in `block in require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `each' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:879:in `require_fixture_classes' /Users/david/.gem/ruby/2.1.3/gems/activerecord-4.1.7/lib/active_record/fixtures.rb:857:in `fixtures' /Users/david/projects/fogged/test/test_helper.rb:28:in `' /Users/david/projects/fogged/test/test_helper.rb:27:in `' test/dummy/test/controllers/resources_controller/index_test.rb:1:in `require' test/dummy/test/controllers/resources_controller/index_test.rb:1:in `
'  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "fogged_resources" 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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.3ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.5ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 517391740) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 701625837) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 819504217) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 132093124) Fixture Insert (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-11-05 07:00:42', '2014-11-05 07:00:42', 431685987) 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-11-05 07:00:42', '2014-11-05 07:00:42', 68463692) 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-11-05 07:00:42', '2014-11-05 07:00:42', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:00:42', '2014-11-05 07:00:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_resources" SQLite3::SQLException: no such table: movie_resources: DELETE FROM "movie_resources"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.1ms) begin transaction  (0.5ms) DROP TABLE "movie_fogged_resources" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141104152345'  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMovieFoggedResources (20141104152345)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "movie_fogged_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movie_id" integer, "resource_id" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_movie_id" ON "movie_fogged_resources" ("movie_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index'  (0.1ms) CREATE INDEX "index_movie_fogged_resources_on_resource_id" ON "movie_fogged_resources" ("resource_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141104152345"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:01:47', '2014-11-05 07:01:47', 517391740) Fixture Insert (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-11-05 07:01:47', '2014-11-05 07:01:47', 701625837) Fixture Insert (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-11-05 07:01:47', '2014-11-05 07:01:47', 819504217) Fixture Insert (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-11-05 07:01:47', '2014-11-05 07:01:47', 132093124) Fixture Insert (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-11-05 07:01:47', '2014-11-05 07:01:47', 431685987) 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-11-05 07:01:47', '2014-11-05 07:01:47', 68463692) 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-11-05 07:01:47', '2014-11-05 07:01:47', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:01:47', '2014-11-05 07:01:47', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:01:47', '2014-11-05 07:01:47', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:01:47', '2014-11-05 07:01:47', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:01:47', '2014-11-05 07:01:47', 849405871, 624739301, 819504217) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:01:47', '2014-11-05 07:01:47', 980190962)  (1.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_groups ------------------------------------------------------------------------ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 980190962]] 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", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group ---------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group_with_search_query_on_name ----------------------------------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:02:40', '2014-11-05 07:02:40', 517391740) Fixture Insert (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-11-05 07:02:40', '2014-11-05 07:02:40', 701625837) Fixture Insert (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-11-05 07:02:40', '2014-11-05 07:02:40', 819504217) Fixture Insert (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-11-05 07:02:40', '2014-11-05 07:02:40', 132093124) Fixture Insert (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-11-05 07:02:40', '2014-11-05 07:02:40', 431685987) 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-11-05 07:02:40', '2014-11-05 07:02:40', 68463692) 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-11-05 07:02:40', '2014-11-05 07:02:40', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:02:40', '2014-11-05 07:02:40', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:02:40', '2014-11-05 07:02:40', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:02:40', '2014-11-05 07:02:40', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:02:40', '2014-11-05 07:02:40', 849405871, 624739301, 819504217) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:02:40', '2014-11-05 07:02:40', 624739301)  (5.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_groups ------------------------------------------------------------------------ Movie Load (0.4ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_group --------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:03:55', '2014-11-05 07:03:55', 517391740) Fixture Insert (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-11-05 07:03:55', '2014-11-05 07:03:55', 701625837) Fixture Insert (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-11-05 07:03:55', '2014-11-05 07:03:55', 819504217) Fixture Insert (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-11-05 07:03:55', '2014-11-05 07:03:55', 132093124) Fixture Insert (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-11-05 07:03:55', '2014-11-05 07:03:55', 431685987) 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-11-05 07:03:55', '2014-11-05 07:03:55', 68463692) 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-11-05 07:03:55', '2014-11-05 07:03:55', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:03:55', '2014-11-05 07:03:55', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:03:55', '2014-11-05 07:03:55', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:03:55', '2014-11-05 07:03:55', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:03:55', '2014-11-05 07:03:55', 849405871, 624739301, 819504217) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:03:55', '2014-11-05 07:03:55', 624739301)  (1.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] Completed 500 Internal Server Error in 27ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:05:48', '2014-11-05 07:05:48', 517391740) Fixture Insert (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-11-05 07:05:48', '2014-11-05 07:05:48', 701625837) Fixture Insert (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-11-05 07:05:48', '2014-11-05 07:05:48', 819504217) Fixture Insert (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-11-05 07:05:48', '2014-11-05 07:05:48', 132093124) Fixture Insert (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-11-05 07:05:48', '2014-11-05 07:05:48', 431685987) 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-11-05 07:05:48', '2014-11-05 07:05:48', 68463692) 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-11-05 07:05:48', '2014-11-05 07:05:48', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:05:48', '2014-11-05 07:05:48', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:05:48', '2014-11-05 07:05:48', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:05:48', '2014-11-05 07:05:48', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:05:48', '2014-11-05 07:05:48', 849405871, 624739301, 819504217) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:05:48', '2014-11-05 07:05:48', 624739301)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] Completed 200 OK in 30ms (Views: 1.1ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:06:05', '2014-11-05 07:06:05', 517391740) Fixture Insert (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-11-05 07:06:05', '2014-11-05 07:06:05', 701625837) Fixture Insert (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-11-05 07:06:05', '2014-11-05 07:06:05', 819504217) Fixture Insert (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-11-05 07:06:05', '2014-11-05 07:06:05', 132093124) Fixture Insert (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-11-05 07:06:05', '2014-11-05 07:06:05', 431685987) 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-11-05 07:06:05', '2014-11-05 07:06:05', 68463692) 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-11-05 07:06:05', '2014-11-05 07:06:05', 591498715) Fixture Delete (0.2ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:06:05', '2014-11-05 07:06:05', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:06:05', '2014-11-05 07:06:05', 153115190) Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:06:05', '2014-11-05 07:06:05', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:06:05', '2014-11-05 07:06:05', 849405871, 624739301, 819504217) Fixture Delete (0.2ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:06:05', '2014-11-05 07:06:05', 624739301)  (1.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] Completed 200 OK in 29ms (Views: 1.4ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:10:12', '2014-11-05 07:10:12', 517391740) Fixture Insert (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-11-05 07:10:12', '2014-11-05 07:10:12', 701625837) Fixture Insert (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-11-05 07:10:12', '2014-11-05 07:10:12', 819504217) Fixture Insert (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-11-05 07:10:12', '2014-11-05 07:10:12', 132093124) Fixture Insert (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-11-05 07:10:12', '2014-11-05 07:10:12', 431685987) 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-11-05 07:10:12', '2014-11-05 07:10:12', 68463692) 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-11-05 07:10:12', '2014-11-05 07:10:12', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:10:12', '2014-11-05 07:10:12', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:10:12', '2014-11-05 07:10:12', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:12', '2014-11-05 07:10:12', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:12', '2014-11-05 07:10:12', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:12', '2014-11-05 07:10:12', 98413728, 245026679, 784085492) Fixture Insert (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:12', '2014-11-05 07:10:12', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:10:12', '2014-11-05 07:10:12', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:10:12', '2014-11-05 07:10:12', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:10:12', '2014-11-05 07:10:12', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 35ms (Views: 1.3ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"group", "type_ids"=>["624739301", "245026679"]} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_group_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:10:57', '2014-11-05 07:10:57', 517391740) Fixture Insert (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-11-05 07:10:57', '2014-11-05 07:10:57', 701625837) Fixture Insert (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-11-05 07:10:57', '2014-11-05 07:10:57', 819504217) Fixture Insert (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-11-05 07:10:57', '2014-11-05 07:10:57', 132093124) Fixture Insert (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-11-05 07:10:57', '2014-11-05 07:10:57', 431685987) 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-11-05 07:10:57', '2014-11-05 07:10:57', 68463692) 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-11-05 07:10:57', '2014-11-05 07:10:57', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:10:57', '2014-11-05 07:10:57', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:10:57', '2014-11-05 07:10:57', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:57', '2014-11-05 07:10:57', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:57', '2014-11-05 07:10:57', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:57', '2014-11-05 07:10:57', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:10:57', '2014-11-05 07:10:57', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:10:57', '2014-11-05 07:10:57', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:10:57', '2014-11-05 07:10:57', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:10:57', '2014-11-05 07:10:57', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 31ms (Views: 1.1ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:11:13', '2014-11-05 07:11:13', 517391740) Fixture Insert (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-11-05 07:11:13', '2014-11-05 07:11:13', 701625837) Fixture Insert (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-11-05 07:11:13', '2014-11-05 07:11:13', 819504217) Fixture Insert (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-11-05 07:11:13', '2014-11-05 07:11:13', 132093124) Fixture Insert (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-11-05 07:11:13', '2014-11-05 07:11:13', 431685987) 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-11-05 07:11:13', '2014-11-05 07:11:13', 68463692) 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-11-05 07:11:13', '2014-11-05 07:11:13', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:11:13', '2014-11-05 07:11:13', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:11:13', '2014-11-05 07:11:13', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:11:13', '2014-11-05 07:11:13', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:11:13', '2014-11-05 07:11:13', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:11:13', '2014-11-05 07:11:13', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:11:13', '2014-11-05 07:11:13', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:11:13', '2014-11-05 07:11:13', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:11:13', '2014-11-05 07:11:13', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:11:13', '2014-11-05 07:11:13', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 30ms (Views: 1.1ms | ActiveRecord: 0.5ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms) 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]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fbe4cbe605fb42f5b41495bccf787641' LIMIT 1 SQL (0.6ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:11:13.340773"], ["extension", "txt"], ["name", "footest barish"], ["token", "fbe4cbe605fb42f5b41495bccf787641"], ["updated_at", "2014-11-05 07:11:13.340773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:11:13.352035"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:11:13.352035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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 ILIKE '%test%') [["movie_id", 624739301]] SQLite3::SQLException: near "ILIKE": syntax error: 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 ILIKE '%test%') Completed 500 Internal Server Error in 2ms  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:12:20', '2014-11-05 07:12:20', 517391740) Fixture Insert (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-11-05 07:12:20', '2014-11-05 07:12:20', 701625837) Fixture Insert (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-11-05 07:12:20', '2014-11-05 07:12:20', 819504217) Fixture Insert (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-11-05 07:12:20', '2014-11-05 07:12:20', 132093124) Fixture Insert (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-11-05 07:12:20', '2014-11-05 07:12:20', 431685987) 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-11-05 07:12:20', '2014-11-05 07:12:20', 68463692) 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-11-05 07:12:20', '2014-11-05 07:12:20', 591498715) Fixture Delete (0.2ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:12:20', '2014-11-05 07:12:20', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:12:20', '2014-11-05 07:12:20', 153115190) Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:20', '2014-11-05 07:12:20', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:20', '2014-11-05 07:12:20', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:20', '2014-11-05 07:12:20', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:20', '2014-11-05 07:12:20', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:12:20', '2014-11-05 07:12:20', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:12:20', '2014-11-05 07:12:20', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:12:20', '2014-11-05 07:12:20', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 29ms (Views: 1.2ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'cfb914f362db2405690d351c69fe744d' LIMIT 1 SQL (0.5ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:12:20.791293"], ["extension", "txt"], ["name", "footest barish"], ["token", "cfb914f362db2405690d351c69fe744d"], ["updated_at", "2014-11-05 07:12:20.791293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:20.801334"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:12:20.801334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "fogged_resources" 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-11-05 07:12:27', '2014-11-05 07:12:27', 517391740) Fixture Insert (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-11-05 07:12:27', '2014-11-05 07:12:27', 701625837) Fixture Insert (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-11-05 07:12:27', '2014-11-05 07:12:27', 819504217) Fixture Insert (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-11-05 07:12:27', '2014-11-05 07:12:27', 132093124) Fixture Insert (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-11-05 07:12:27', '2014-11-05 07:12:27', 431685987) 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-11-05 07:12:27', '2014-11-05 07:12:27', 68463692) 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-11-05 07:12:27', '2014-11-05 07:12:27', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:12:27', '2014-11-05 07:12:27', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:12:27', '2014-11-05 07:12:27', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:27', '2014-11-05 07:12:27', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:27', '2014-11-05 07:12:27', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:27', '2014-11-05 07:12:27', 98413728, 245026679, 784085492) Fixture Insert (0.6ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:27', '2014-11-05 07:12:27', 779853880, 245026679, 431685987) Fixture Delete (0.2ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:12:27', '2014-11-05 07:12:27', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:12:27', '2014-11-05 07:12:27', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:12:27', '2014-11-05 07:12:27', 948421225)  (1.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 07:12:27.852469"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:12:27.867769"], ["name", "test"], ["updated_at", "2014-11-05 07:12:27.867769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:12:27.876562"], ["name", "test"], ["updated_at", "2014-11-05 07:12:27.876562"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:27.878319"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:12:27.878319"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:27.879407"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 07:12:27.879407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 07:12:27.898038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:12:27.906664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:27.927554"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:12:27.000000000 Z\n updated_at: 2014-11-05 07:12:27.906664000 Z\n"], ["run_at", "2014-11-05 07:12:37.911765"], ["updated_at", "2014-11-05 07:12:27.927554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:12:27.934291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-05 07:12:27.937270"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:12:27.943097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:12:27.947806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:12:27.950019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:27.953280"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:12:27.000000000 Z\n updated_at: 2014-11-05 07:12:27.950019000 Z\n"], ["run_at", "2014-11-05 07:12:37.950749"], ["updated_at", "2014-11-05 07:12:27.953280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ae4adba79a4fedd7b38dd82ebe8fb245' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:12:27.988344"], ["extension", "txt"], ["name", "footest barish"], ["token", "ae4adba79a4fedd7b38dd82ebe8fb245"], ["updated_at", "2014-11-05 07:12:27.988344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:27.990845"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:12:27.990845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 7ms (Views: 1.1ms | ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-11-05 07:12:28.025996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:28.032510"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:12:28.032296"], ["updated_at", "2014-11-05 07:12:28.032510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (1.2ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 07:12:28.072343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e234638053799fafbbc26a7853d7be36' LIMIT 1 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-11-05 07:12:28.086100"], ["extension", "png"], ["name", "Dummy"], ["token", "e234638053799fafbbc26a7853d7be36"], ["updated_at", "2014-11-05 07:12:28.086100"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 4ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 1ms  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:12:28.173454"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 07:12:28.184433"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:28.188891"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:12:28.188891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:12:28.191347"], ["name", "test"], ["updated_at", "2014-11-05 07:12:28.191347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_index_all_resources_for_groups --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_index_resources_for_a_group -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_index_resources_for_a_group_with_search_query_on_name -------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_index_resources_for_groups ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_index_resources_with_invalid_group_id ---------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerIndexTest: test_should_not_index_resources_as_anonymous ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bdb3e9d7aa4de94b43b19f34531f6d6f' LIMIT 1 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-11-05 07:12:28.200199"], ["extension", "txt"], ["name", "Test"], ["token", "bdb3e9d7aa4de94b43b19f34531f6d6f"], ["updated_at", "2014-11-05 07:12:28.200199"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '234a8f3b1ea7072cf8c54ac901230751' LIMIT 1 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-11-05 07:12:28.203192"], ["extension", "txt"], ["name", "Test"], ["token", "234a8f3b1ea7072cf8c54ac901230751"], ["updated_at", "2014-11-05 07:12:28.203192"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c36f2d5695972e99e92b5af0086f8b98' LIMIT 1 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-11-05 07:12:28.207480"], ["extension", "txt"], ["name", "Test"], ["token", "c36f2d5695972e99e92b5af0086f8b98"], ["updated_at", "2014-11-05 07:12:28.207480"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f287b135b4ed7352740432dcec1cde97' LIMIT 1 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-11-05 07:12:28.209847"], ["extension", "txt"], ["name", "Test"], ["token", "f287b135b4ed7352740432dcec1cde97"], ["updated_at", "2014-11-05 07:12:28.209847"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'afe4bb024d285739a2a7796ab0227eea' LIMIT 1 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-11-05 07:12:28.213591"], ["extension", "txt"], ["name", "Test"], ["token", "afe4bb024d285739a2a7796ab0227eea"], ["updated_at", "2014-11-05 07:12:28.213591"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:12:28.220822"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-05 07:12:28.225122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:28.228209"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:12:28.228095"], ["updated_at", "2014-11-05 07:12:28.228209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:12:41', '2014-11-05 07:12:41', 517391740) Fixture Insert (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-11-05 07:12:41', '2014-11-05 07:12:41', 701625837) Fixture Insert (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-11-05 07:12:41', '2014-11-05 07:12:41', 819504217) Fixture Insert (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-11-05 07:12:41', '2014-11-05 07:12:41', 132093124) Fixture Insert (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-11-05 07:12:41', '2014-11-05 07:12:41', 431685987) 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-11-05 07:12:41', '2014-11-05 07:12:41', 68463692) 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-11-05 07:12:41', '2014-11-05 07:12:41', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:12:41', '2014-11-05 07:12:41', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:12:41', '2014-11-05 07:12:41', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:41', '2014-11-05 07:12:41', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:41', '2014-11-05 07:12:41', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:41', '2014-11-05 07:12:41', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:12:41', '2014-11-05 07:12:41', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:12:41', '2014-11-05 07:12:41', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:12:41', '2014-11-05 07:12:41', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:12:41', '2014-11-05 07:12:41', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 28ms (Views: 1.3ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms) 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '37d01d2263afeb2a8e613bd3c1225b4b' LIMIT 1 SQL (0.6ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:12:41.373553"], ["extension", "txt"], ["name", "footest barish"], ["token", "37d01d2263afeb2a8e613bd3c1225b4b"], ["updated_at", "2014-11-05 07:12:41.373553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:12:41.383095"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:12:41.383095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:13:02', '2014-11-05 07:13:02', 517391740) Fixture Insert (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-11-05 07:13:02', '2014-11-05 07:13:02', 701625837) Fixture Insert (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-11-05 07:13:02', '2014-11-05 07:13:02', 819504217) Fixture Insert (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-11-05 07:13:02', '2014-11-05 07:13:02', 132093124) Fixture Insert (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-11-05 07:13:02', '2014-11-05 07:13:02', 431685987) 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-11-05 07:13:02', '2014-11-05 07:13:02', 68463692) 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-11-05 07:13:02', '2014-11-05 07:13:02', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:13:02', '2014-11-05 07:13:02', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:13:02', '2014-11-05 07:13:02', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:02', '2014-11-05 07:13:02', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:02', '2014-11-05 07:13:02', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:02', '2014-11-05 07:13:02', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:02', '2014-11-05 07:13:02', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:13:02', '2014-11-05 07:13:02', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:13:02', '2014-11-05 07:13:02', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:13:02', '2014-11-05 07:13:02', 948421225)  (5.1ms) commit transaction  (7.8ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-05 07:13:02.508327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.519157"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:13:02.519021"], ["updated_at", "2014-11-05 07:13:02.519157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3f3c58488c565e2ed6a7c01e86e2185c' LIMIT 1 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-11-05 07:13:02.533042"], ["extension", "png"], ["name", "Dummy"], ["token", "3f3c58488c565e2ed6a7c01e86e2185c"], ["updated_at", "2014-11-05 07:13:02.533042"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 8ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 07:13:02.575317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:13:02.582171"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 07:13:02.593240"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.599824"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:13:02.599824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:02.602138"], ["name", "test"], ["updated_at", "2014-11-05 07:13:02.602138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:02.606122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:13:02.609284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.614428"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:13:02.000000000 Z\n updated_at: 2014-11-05 07:13:02.609284000 Z\n"], ["run_at", "2014-11-05 07:13:12.611045"], ["updated_at", "2014-11-05 07:13:02.614428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:02.618773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-05 07:13:02.621735"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:02.625229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:02.628283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:13:02.630385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.633669"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:13:02.000000000 Z\n updated_at: 2014-11-05 07:13:02.630385000 Z\n"], ["run_at", "2014-11-05 07:13:12.631149"], ["updated_at", "2014-11-05 07:13:02.633669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 07:13:02.656082"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:02.660263"], ["name", "test"], ["updated_at", "2014-11-05 07:13:02.660263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:02.664629"], ["name", "test"], ["updated_at", "2014-11-05 07:13:02.664629"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.665491"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:13:02.665491"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.666362"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 07:13:02.666362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 46ms (Views: 0.7ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a6e4e105e6a61aa5865a907e6951e416' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:13:02.745525"], ["extension", "txt"], ["name", "footest barish"], ["token", "a6e4e105e6a61aa5865a907e6951e416"], ["updated_at", "2014-11-05 07:13:02.745525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.748472"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:13:02.748472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f64c4d06b77c41db05d52dbee1a781de' LIMIT 1 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-11-05 07:13:02.770807"], ["extension", "txt"], ["name", "Test"], ["token", "f64c4d06b77c41db05d52dbee1a781de"], ["updated_at", "2014-11-05 07:13:02.770807"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3e942fd3350577cb99a9a0d35983ae8c' LIMIT 1 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-11-05 07:13:02.775398"], ["extension", "txt"], ["name", "Test"], ["token", "3e942fd3350577cb99a9a0d35983ae8c"], ["updated_at", "2014-11-05 07:13:02.775398"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9d149c1a62a9114a40fa317ccc0433ff' LIMIT 1 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-11-05 07:13:02.781362"], ["extension", "txt"], ["name", "Test"], ["token", "9d149c1a62a9114a40fa317ccc0433ff"], ["updated_at", "2014-11-05 07:13:02.781362"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3e3323df10e7aab8ddf5377b080f3560' LIMIT 1 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-11-05 07:13:02.784111"], ["extension", "txt"], ["name", "Test"], ["token", "3e3323df10e7aab8ddf5377b080f3560"], ["updated_at", "2014-11-05 07:13:02.784111"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c580d69e7ec812d3856be46556651f0d' LIMIT 1 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-11-05 07:13:02.787398"], ["extension", "txt"], ["name", "Test"], ["token", "c580d69e7ec812d3856be46556651f0d"], ["updated_at", "2014-11-05 07:13:02.787398"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:13:02.799327"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-05 07:13:02.805687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:02.809125"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:13:02.809029"], ["updated_at", "2014-11-05 07:13:02.809125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:13:12', '2014-11-05 07:13:12', 517391740) Fixture Insert (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-11-05 07:13:12', '2014-11-05 07:13:12', 701625837) Fixture Insert (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-11-05 07:13:12', '2014-11-05 07:13:12', 819504217) Fixture Insert (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-11-05 07:13:12', '2014-11-05 07:13:12', 132093124) Fixture Insert (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-11-05 07:13:12', '2014-11-05 07:13:12', 431685987) 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-11-05 07:13:12', '2014-11-05 07:13:12', 68463692) 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-11-05 07:13:12', '2014-11-05 07:13:12', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:13:12', '2014-11-05 07:13:12', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:13:12', '2014-11-05 07:13:12', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:12', '2014-11-05 07:13:12', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:12', '2014-11-05 07:13:12', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:12', '2014-11-05 07:13:12', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:13:12', '2014-11-05 07:13:12', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:13:12', '2014-11-05 07:13:12', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:13:12', '2014-11-05 07:13:12', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:13:12', '2014-11-05 07:13:12', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 07:13:12.853054"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:12.866943"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:13:12.866943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:12.869699"], ["name", "test"], ["updated_at", "2014-11-05 07:13:12.869699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 19ms (Views: 1.1ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b8b6fbb6c5d920fb4a8098d72ded3834' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:13:12.929635"], ["extension", "txt"], ["name", "footest barish"], ["token", "b8b6fbb6c5d920fb4a8098d72ded3834"], ["updated_at", "2014-11-05 07:13:12.929635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:12.935258"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:13:12.935258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ed1ab3e5c4a5c74e477563c330a51c35' LIMIT 1 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-11-05 07:13:12.958165"], ["extension", "txt"], ["name", "Test"], ["token", "ed1ab3e5c4a5c74e477563c330a51c35"], ["updated_at", "2014-11-05 07:13:12.958165"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'def9ab0bc101e87e635eeb874cb0db7f' LIMIT 1 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-11-05 07:13:12.960808"], ["extension", "txt"], ["name", "Test"], ["token", "def9ab0bc101e87e635eeb874cb0db7f"], ["updated_at", "2014-11-05 07:13:12.960808"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3767f0de30183e1464e9f889b209592b' LIMIT 1 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-11-05 07:13:12.964912"], ["extension", "txt"], ["name", "Test"], ["token", "3767f0de30183e1464e9f889b209592b"], ["updated_at", "2014-11-05 07:13:12.964912"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e371666dce78fd27cdd84e88f1dc3bd1' LIMIT 1 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-11-05 07:13:12.967617"], ["extension", "txt"], ["name", "Test"], ["token", "e371666dce78fd27cdd84e88f1dc3bd1"], ["updated_at", "2014-11-05 07:13:12.967617"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6538f8f7c4ff4e72803cc1ceb36cbd85' LIMIT 1 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-11-05 07:13:12.971278"], ["extension", "txt"], ["name", "Test"], ["token", "6538f8f7c4ff4e72803cc1ceb36cbd85"], ["updated_at", "2014-11-05 07:13:12.971278"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:13:12.979312"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-05 07:13:12.985124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:12.994687"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:13:12.994547"], ["updated_at", "2014-11-05 07:13:12.994687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 07:13:13.019361"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:13.023350"], ["name", "test"], ["updated_at", "2014-11-05 07:13:13.023350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:13:13.027824"], ["name", "test"], ["updated_at", "2014-11-05 07:13:13.027824"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:13.028733"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:13:13.028733"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:13.029524"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 07:13:13.029524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 07:13:13.037519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a547c7a5f39a0276294da9cc88ee4e28' LIMIT 1 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-11-05 07:13:13.079371"], ["extension", "png"], ["name", "Dummy"], ["token", "a547c7a5f39a0276294da9cc88ee4e28"], ["updated_at", "2014-11-05 07:13:13.079371"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 2ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-05 07:13:13.106893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:13.109808"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:13:13.109732"], ["updated_at", "2014-11-05 07:13:13.109808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:13:13.117927"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (3.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:13.128786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:13:13.131310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:13.135031"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:13:12.000000000 Z\n updated_at: 2014-11-05 07:13:13.131310000 Z\n"], ["run_at", "2014-11-05 07:13:23.132121"], ["updated_at", "2014-11-05 07:13:13.135031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:13.139039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-05 07:13:13.141654"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (4.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:13.150126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:13:13.153875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:13:13.155944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:13:13.158935"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:13:12.000000000 Z\n updated_at: 2014-11-05 07:13:13.155944000 Z\n"], ["run_at", "2014-11-05 07:13:23.156583"], ["updated_at", "2014-11-05 07:13:13.158935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateDelayedJobs (20141105073909)  (0.1ms) begin transaction  (0.3ms) DROP TABLE "delayed_jobs"  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141105073909"]]  (5.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_fogged_resources_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_fogged_resources_on_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_resource_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_movie_fogged_resources_on_movie_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:40:35', '2014-11-05 07:40:35', 517391740) Fixture Insert (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-11-05 07:40:35', '2014-11-05 07:40:35', 701625837) Fixture Insert (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-11-05 07:40:35', '2014-11-05 07:40:35', 819504217) Fixture Insert (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-11-05 07:40:35', '2014-11-05 07:40:35', 132093124) Fixture Insert (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-11-05 07:40:35', '2014-11-05 07:40:35', 431685987) 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-11-05 07:40:35', '2014-11-05 07:40:35', 68463692) 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-11-05 07:40:35', '2014-11-05 07:40:35', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:40:35', '2014-11-05 07:40:35', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:40:35', '2014-11-05 07:40:35', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:40:35', '2014-11-05 07:40:35', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:40:35', '2014-11-05 07:40:35', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:40:35', '2014-11-05 07:40:35', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:40:35', '2014-11-05 07:40:35', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:40:35', '2014-11-05 07:40:35', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:40:35', '2014-11-05 07:40:35', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:40:35', '2014-11-05 07:40:35', 948421225)  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 07:40:35.708093"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:40:35.721275"], ["name", "test"], ["updated_at", "2014-11-05 07:40:35.721275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:40:35.726287"], ["name", "test"], ["updated_at", "2014-11-05 07:40:35.726287"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:40:35.727206"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:40:35.727206"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:40:35.728076"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 07:40:35.728076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f2e24bb5075d815b45d95d25824ffc01' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:40:35.773464"], ["extension", "txt"], ["name", "footest barish"], ["token", "f2e24bb5075d815b45d95d25824ffc01"], ["updated_at", "2014-11-05 07:40:35.773464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:40:35.775794"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:40:35.775794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 07:40:35.800968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 07:40:35.808209"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:40:35.812191"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:40:35.812191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:40:35.814341"], ["name", "test"], ["updated_at", "2014-11-05 07:40:35.814341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:40:35.817210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:40:35.821448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:40:35.824593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:40:35.827403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '49dcfaff01b747c75eecb66c9cf7eb4e' LIMIT 1 SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "image/png"], ["created_at", "2014-11-05 07:40:35.833270"], ["extension", "png"], ["name", "Dummy"], ["token", "49dcfaff01b747c75eecb66c9cf7eb4e"], ["updated_at", "2014-11-05 07:40:35.833270"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f9fde75542e2feb12caba050d46f3dce' LIMIT 1 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-11-05 07:40:35.863566"], ["extension", "txt"], ["name", "Test"], ["token", "f9fde75542e2feb12caba050d46f3dce"], ["updated_at", "2014-11-05 07:40:35.863566"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'daee39e182559ab016301823c7555ca1' LIMIT 1 SQL (33.8ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at", "uploading") VALUES (?, ?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:40:35.866162"], ["extension", "txt"], ["name", "Test"], ["token", "daee39e182559ab016301823c7555ca1"], ["updated_at", "2014-11-05 07:40:35.866162"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c7e3518c6b3cfc2b56954879e97a8b1a' LIMIT 1 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-11-05 07:40:35.904552"], ["extension", "txt"], ["name", "Test"], ["token", "c7e3518c6b3cfc2b56954879e97a8b1a"], ["updated_at", "2014-11-05 07:40:35.904552"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'db4a83ec74cf22e6b1146c1450cccdae' LIMIT 1 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-11-05 07:40:35.908021"], ["extension", "txt"], ["name", "Test"], ["token", "db4a83ec74cf22e6b1146c1450cccdae"], ["updated_at", "2014-11-05 07:40:35.908021"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ec472e41d587da1b6a7137bcf3c353d3' LIMIT 1 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-11-05 07:40:35.911841"], ["extension", "txt"], ["name", "Test"], ["token", "ec472e41d587da1b6a7137bcf3c353d3"], ["updated_at", "2014-11-05 07:40:35.911841"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:41:50', '2014-11-05 07:41:50', 517391740) Fixture Insert (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-11-05 07:41:50', '2014-11-05 07:41:50', 701625837) Fixture Insert (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-11-05 07:41:50', '2014-11-05 07:41:50', 819504217) Fixture Insert (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-11-05 07:41:50', '2014-11-05 07:41:50', 132093124) Fixture Insert (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-11-05 07:41:50', '2014-11-05 07:41:50', 431685987) 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-11-05 07:41:50', '2014-11-05 07:41:50', 68463692) 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-11-05 07:41:50', '2014-11-05 07:41:50', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:41:50', '2014-11-05 07:41:50', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:41:50', '2014-11-05 07:41:50', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:50', '2014-11-05 07:41:50', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:50', '2014-11-05 07:41:50', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:50', '2014-11-05 07:41:50', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:50', '2014-11-05 07:41:50', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:41:50', '2014-11-05 07:41:50', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:41:50', '2014-11-05 07:41:50', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:41:50', '2014-11-05 07:41:50', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 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-11-05 07:41:50.463166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:50.474104"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:41:50.473970"], ["updated_at", "2014-11-05 07:41:50.474104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:41:56', '2014-11-05 07:41:56', 517391740) Fixture Insert (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-11-05 07:41:56', '2014-11-05 07:41:56', 701625837) Fixture Insert (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-11-05 07:41:56', '2014-11-05 07:41:56', 819504217) Fixture Insert (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-11-05 07:41:56', '2014-11-05 07:41:56', 132093124) Fixture Insert (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-11-05 07:41:56', '2014-11-05 07:41:56', 431685987) 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-11-05 07:41:56', '2014-11-05 07:41:56', 68463692) 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-11-05 07:41:56', '2014-11-05 07:41:56', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:41:56', '2014-11-05 07:41:56', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:41:56', '2014-11-05 07:41:56', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:56', '2014-11-05 07:41:56', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:56', '2014-11-05 07:41:56', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:56', '2014-11-05 07:41:56', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:41:56', '2014-11-05 07:41:56', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:41:56', '2014-11-05 07:41:56', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:41:56', '2014-11-05 07:41:56', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:41:56', '2014-11-05 07:41:56', 948421225)  (5.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fef92cc72aa18944d4072c7522594430' LIMIT 1 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-11-05 07:41:56.369825"], ["extension", "png"], ["name", "Dummy"], ["token", "fef92cc72aa18944d4072c7522594430"], ["updated_at", "2014-11-05 07:41:56.369825"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 7ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SAVEPOINT active_record_1 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-11-05 07:41:56.407619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.419192"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:41:56.419064"], ["updated_at", "2014-11-05 07:41:56.419192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 07:41:56.427268"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.435885"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:41:56.435885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:41:56.438442"], ["name", "test"], ["updated_at", "2014-11-05 07:41:56.438442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:41:56.442821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:41:56.445351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.450454"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:41:56.000000000 Z\n updated_at: 2014-11-05 07:41:56.445351000 Z\n"], ["run_at", "2014-11-05 07:42:06.446778"], ["updated_at", "2014-11-05 07:41:56.450454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:41:56.454449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "duration" = ?, "encoding_progress" = ?, "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 68463692 [["duration", 15], ["encoding_progress", 100], ["height", 600], ["updated_at", "2014-11-05 07:41:56.457515"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:41:56.461148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 07:41:56.464685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_progress", 55], ["updated_at", "2014-11-05 07:41:56.466924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.470640"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\nresource: !ruby/object:Fogged::Resource\n attributes:\n id: 68463692\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-11-05 07:41:56.000000000 Z\n updated_at: 2014-11-05 07:41:56.466924000 Z\n"], ["run_at", "2014-11-05 07:42:06.467596"], ["updated_at", "2014-11-05 07:41:56.470640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1dd6d2c4bb8dc5fca51f009c7392e1d2' LIMIT 1 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-11-05 07:41:56.475768"], ["extension", "txt"], ["name", "Test"], ["token", "1dd6d2c4bb8dc5fca51f009c7392e1d2"], ["updated_at", "2014-11-05 07:41:56.475768"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd5eae649c74b9c796bb3f88265abd0a1' LIMIT 1 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-11-05 07:41:56.478233"], ["extension", "txt"], ["name", "Test"], ["token", "d5eae649c74b9c796bb3f88265abd0a1"], ["updated_at", "2014-11-05 07:41:56.478233"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '14259fe6891283a2e4ba26c7dd0c7b16' LIMIT 1 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-11-05 07:41:56.482491"], ["extension", "txt"], ["name", "Test"], ["token", "14259fe6891283a2e4ba26c7dd0c7b16"], ["updated_at", "2014-11-05 07:41:56.482491"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ae376b5984d9234ae46eec1897356163' LIMIT 1 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-11-05 07:41:56.485384"], ["extension", "txt"], ["name", "Test"], ["token", "ae376b5984d9234ae46eec1897356163"], ["updated_at", "2014-11-05 07:41:56.485384"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '88e245b8b8cf629a3901e8461f4ed822' LIMIT 1 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-11-05 07:41:56.488454"], ["extension", "txt"], ["name", "Test"], ["token", "88e245b8b8cf629a3901e8461f4ed822"], ["updated_at", "2014-11-05 07:41:56.488454"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:41:56.494502"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-11-05 07:41:56.499835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.502449"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:41:56.502385"], ["updated_at", "2014-11-05 07:41:56.502449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 07:41:56.582410"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:41:56.587229"], ["name", "test"], ["updated_at", "2014-11-05 07:41:56.587229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 07:41:56.592243"], ["name", "test"], ["updated_at", "2014-11-05 07:41:56.592243"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.593076"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 07:41:56.593076"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.593920"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 07:41:56.593920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '2d4d0e1b66d82f11082987c7f01650d2' LIMIT 1 SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 07:41:56.618602"], ["extension", "txt"], ["name", "footest barish"], ["token", "2d4d0e1b66d82f11082987c7f01650d2"], ["updated_at", "2014-11-05 07:41:56.618602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:41:56.620832"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 07:41:56.620832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 07:41:56.641584"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 07:41:56.655584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:47:23', '2014-11-05 07:47:23', 517391740) Fixture Insert (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-11-05 07:47:23', '2014-11-05 07:47:23', 701625837) Fixture Insert (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-11-05 07:47:23', '2014-11-05 07:47:23', 819504217) Fixture Insert (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-11-05 07:47:23', '2014-11-05 07:47:23', 132093124) Fixture Insert (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-11-05 07:47:23', '2014-11-05 07:47:23', 431685987) 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-11-05 07:47:23', '2014-11-05 07:47:23', 68463692) 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-11-05 07:47:23', '2014-11-05 07:47:23', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:47:24', '2014-11-05 07:47:24', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:47:24', '2014-11-05 07:47:24', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:47:24', '2014-11-05 07:47:24', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:47:24', '2014-11-05 07:47:24', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:47:24', '2014-11-05 07:47:24', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:47:24', '2014-11-05 07:47:24', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:47:24', '2014-11-05 07:47:24', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:47:24', '2014-11-05 07:47:24', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:47:24', '2014-11-05 07:47:24', 948421225)  (4.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:47:24.127037"]]  (4929.9ms) commit transaction SQLite3::BusyException: database is locked: commit transaction  (0.4ms) rollback transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:51:45', '2014-11-05 07:51:45', 517391740) Fixture Insert (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-11-05 07:51:45', '2014-11-05 07:51:45', 701625837) Fixture Insert (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-11-05 07:51:45', '2014-11-05 07:51:45', 819504217) Fixture Insert (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-11-05 07:51:45', '2014-11-05 07:51:45', 132093124) Fixture Insert (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-11-05 07:51:45', '2014-11-05 07:51:45', 431685987) 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-11-05 07:51:45', '2014-11-05 07:51:45', 68463692) 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-11-05 07:51:45', '2014-11-05 07:51:45', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:51:45', '2014-11-05 07:51:45', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:51:45', '2014-11-05 07:51:45', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:51:45', '2014-11-05 07:51:45', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:51:45', '2014-11-05 07:51:45', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:51:45', '2014-11-05 07:51:45', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:51:45', '2014-11-05 07:51:45', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:51:45', '2014-11-05 07:51:45', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:51:45', '2014-11-05 07:51:45', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:51:45', '2014-11-05 07:51:45', 948421225)  (5.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:51:45.958293"]]  (4933.3ms) commit transaction SQLite3::BusyException: database is locked: commit transaction  (4.7ms) rollback transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 07:52:16', '2014-11-05 07:52:16', 517391740) Fixture Insert (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-11-05 07:52:16', '2014-11-05 07:52:16', 701625837) Fixture Insert (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-11-05 07:52:16', '2014-11-05 07:52:16', 819504217) Fixture Insert (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-11-05 07:52:16', '2014-11-05 07:52:16', 132093124) Fixture Insert (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-11-05 07:52:16', '2014-11-05 07:52:16', 431685987) 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-11-05 07:52:16', '2014-11-05 07:52:16', 68463692) 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-11-05 07:52:16', '2014-11-05 07:52:16', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:52:16', '2014-11-05 07:52:16', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:52:16', '2014-11-05 07:52:16', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:52:16', '2014-11-05 07:52:16', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:52:16', '2014-11-05 07:52:16', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:52:16', '2014-11-05 07:52:16', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:52:16', '2014-11-05 07:52:16', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:52:16', '2014-11-05 07:52:16', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:52:16', '2014-11-05 07:52:16', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:52:16', '2014-11-05 07:52:16', 948421225)  (1.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:52:16.608152"]]  (4929.0ms) commit transaction SQLite3::BusyException: database is locked: commit transaction  (5.0ms) rollback transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:55:47', '2014-11-05 07:55:47', 517391740) Fixture Insert (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-11-05 07:55:47', '2014-11-05 07:55:47', 701625837) Fixture Insert (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-11-05 07:55:47', '2014-11-05 07:55:47', 819504217) Fixture Insert (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-11-05 07:55:47', '2014-11-05 07:55:47', 132093124) Fixture Insert (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-11-05 07:55:47', '2014-11-05 07:55:47', 431685987) 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-11-05 07:55:47', '2014-11-05 07:55:47', 68463692) 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-11-05 07:55:47', '2014-11-05 07:55:47', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:55:47', '2014-11-05 07:55:47', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:55:47', '2014-11-05 07:55:47', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:55:47', '2014-11-05 07:55:47', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:55:47', '2014-11-05 07:55:47', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:55:47', '2014-11-05 07:55:47', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:55:47', '2014-11-05 07:55:47', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:55:47', '2014-11-05 07:55:47', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:55:47', '2014-11-05 07:55:47', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:55:47', '2014-11-05 07:55:47', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:55:48.117158"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:55:48.142545"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:55:48.142115"], ["updated_at", "2014-11-05 07:55:48.142545"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) begin transaction ArgumentError: prepare called on a closed database: begin transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "fogged_resources" 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-11-05 07:56:05', '2014-11-05 07:56:05', 517391740) Fixture Insert (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-11-05 07:56:05', '2014-11-05 07:56:05', 701625837) Fixture Insert (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-11-05 07:56:05', '2014-11-05 07:56:05', 819504217) Fixture Insert (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-11-05 07:56:05', '2014-11-05 07:56:05', 132093124) Fixture Insert (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-11-05 07:56:05', '2014-11-05 07:56:05', 431685987) 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-11-05 07:56:05', '2014-11-05 07:56:05', 68463692) 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-11-05 07:56:05', '2014-11-05 07:56:05', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:56:05', '2014-11-05 07:56:05', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:56:05', '2014-11-05 07:56:05', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:05', '2014-11-05 07:56:05', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:05', '2014-11-05 07:56:05', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:05', '2014-11-05 07:56:05', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:05', '2014-11-05 07:56:05', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:56:05', '2014-11-05 07:56:05', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:56:05', '2014-11-05 07:56:05', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:56:05', '2014-11-05 07:56:05', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:56:05.934353"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:56:05.951378"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:56:05.951106"], ["updated_at", "2014-11-05 07:56:05.951378"]]  (1.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) begin transaction ArgumentError: prepare called on a closed database: begin transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "fogged_resources" 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-11-05 07:56:40', '2014-11-05 07:56:40', 517391740) Fixture Insert (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-11-05 07:56:40', '2014-11-05 07:56:40', 701625837) Fixture Insert (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-11-05 07:56:40', '2014-11-05 07:56:40', 819504217) Fixture Insert (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-11-05 07:56:40', '2014-11-05 07:56:40', 132093124) Fixture Insert (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-11-05 07:56:40', '2014-11-05 07:56:40', 431685987) 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-11-05 07:56:40', '2014-11-05 07:56:40', 68463692) 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-11-05 07:56:40', '2014-11-05 07:56:40', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:56:40', '2014-11-05 07:56:40', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:56:40', '2014-11-05 07:56:40', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:40', '2014-11-05 07:56:40', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:40', '2014-11-05 07:56:40', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:40', '2014-11-05 07:56:40', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:56:40', '2014-11-05 07:56:40', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:56:40', '2014-11-05 07:56:40', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:56:40', '2014-11-05 07:56:40', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:56:40', '2014-11-05 07:56:40', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) begin transaction ArgumentError: prepare called on a closed database: begin transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction SQL (0.5ms) 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-11-05 07:56:40.168826"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:56:40.192157"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:56:40.191873"], ["updated_at", "2014-11-05 07:56:40.192157"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:57:20', '2014-11-05 07:57:20', 517391740) Fixture Insert (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-11-05 07:57:20', '2014-11-05 07:57:20', 701625837) Fixture Insert (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-11-05 07:57:20', '2014-11-05 07:57:20', 819504217) Fixture Insert (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-11-05 07:57:20', '2014-11-05 07:57:20', 132093124) Fixture Insert (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-11-05 07:57:20', '2014-11-05 07:57:20', 431685987) 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-11-05 07:57:20', '2014-11-05 07:57:20', 68463692) 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-11-05 07:57:20', '2014-11-05 07:57:20', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:57:20', '2014-11-05 07:57:20', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:57:20', '2014-11-05 07:57:20', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:20', '2014-11-05 07:57:20', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:20', '2014-11-05 07:57:20', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:20', '2014-11-05 07:57:20', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:20', '2014-11-05 07:57:20', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:57:20', '2014-11-05 07:57:20', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:57:20', '2014-11-05 07:57:20', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:57:20', '2014-11-05 07:57:20', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:57:20.444585"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:57:20.463571"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:57:20.463293"], ["updated_at", "2014-11-05 07:57:20.463571"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) begin transaction ArgumentError: prepare called on a closed database: begin transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:57:52', '2014-11-05 07:57:52', 517391740) Fixture Insert (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-11-05 07:57:52', '2014-11-05 07:57:52', 701625837) Fixture Insert (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-11-05 07:57:52', '2014-11-05 07:57:52', 819504217) Fixture Insert (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-11-05 07:57:52', '2014-11-05 07:57:52', 132093124) Fixture Insert (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-11-05 07:57:52', '2014-11-05 07:57:52', 431685987) 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-11-05 07:57:52', '2014-11-05 07:57:52', 68463692) 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-11-05 07:57:52', '2014-11-05 07:57:52', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:57:52', '2014-11-05 07:57:52', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:57:52', '2014-11-05 07:57:52', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:52', '2014-11-05 07:57:52', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:52', '2014-11-05 07:57:52', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:52', '2014-11-05 07:57:52', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:57:52', '2014-11-05 07:57:52', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:57:52', '2014-11-05 07:57:52', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:57:52', '2014-11-05 07:57:52', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:57:52', '2014-11-05 07:57:52', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 07:57:52.207677"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:57:52.226870"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:57:52.226464"], ["updated_at", "2014-11-05 07:57:52.226870"]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (11.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 07:58:00', '2014-11-05 07:58:00', 517391740) Fixture Insert (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-11-05 07:58:00', '2014-11-05 07:58:00', 701625837) Fixture Insert (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-11-05 07:58:00', '2014-11-05 07:58:00', 819504217) Fixture Insert (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-11-05 07:58:00', '2014-11-05 07:58:00', 132093124) Fixture Insert (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-11-05 07:58:00', '2014-11-05 07:58:00', 431685987) 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-11-05 07:58:00', '2014-11-05 07:58:00', 68463692) 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-11-05 07:58:00', '2014-11-05 07:58:00', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 07:58:00', '2014-11-05 07:58:00', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 07:58:00', '2014-11-05 07:58:00', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:58:00', '2014-11-05 07:58:00', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:58:00', '2014-11-05 07:58:00', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:58:00', '2014-11-05 07:58:00', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 07:58:00', '2014-11-05 07:58:00', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 07:58:00', '2014-11-05 07:58:00', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 07:58:00', '2014-11-05 07:58:00', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 07:58:00', '2014-11-05 07:58:00', 948421225)  (5.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction SQL (0.5ms) 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-11-05 07:58:00.985027"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 07:58:01.003511"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 07:58:01.003240"], ["updated_at", "2014-11-05 07:58:01.003511"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "fogged_resources" 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-11-05 08:11:16', '2014-11-05 08:11:16', 517391740) Fixture Insert (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-11-05 08:11:16', '2014-11-05 08:11:16', 701625837) Fixture Insert (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-11-05 08:11:16', '2014-11-05 08:11:16', 819504217) Fixture Insert (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-11-05 08:11:16', '2014-11-05 08:11:16', 132093124) Fixture Insert (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-11-05 08:11:16', '2014-11-05 08:11:16', 431685987) 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-11-05 08:11:16', '2014-11-05 08:11:16', 68463692) 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-11-05 08:11:16', '2014-11-05 08:11:16', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:11:16', '2014-11-05 08:11:16', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:11:16', '2014-11-05 08:11:16', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:16', '2014-11-05 08:11:16', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:16', '2014-11-05 08:11:16', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:16', '2014-11-05 08:11:16', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:16', '2014-11-05 08:11:16', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:11:16', '2014-11-05 08:11:16', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:11:16', '2014-11-05 08:11:16', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:11:16', '2014-11-05 08:11:16', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:11:32', '2014-11-05 08:11:32', 517391740) Fixture Insert (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-11-05 08:11:32', '2014-11-05 08:11:32', 701625837) Fixture Insert (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-11-05 08:11:32', '2014-11-05 08:11:32', 819504217) Fixture Insert (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-11-05 08:11:32', '2014-11-05 08:11:32', 132093124) Fixture Insert (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-11-05 08:11:32', '2014-11-05 08:11:32', 431685987) 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-11-05 08:11:32', '2014-11-05 08:11:32', 68463692) 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-11-05 08:11:32', '2014-11-05 08:11:32', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:11:32', '2014-11-05 08:11:32', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:11:32', '2014-11-05 08:11:32', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:32', '2014-11-05 08:11:32', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:32', '2014-11-05 08:11:32', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:32', '2014-11-05 08:11:32', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:11:32', '2014-11-05 08:11:32', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:11:32', '2014-11-05 08:11:32', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:11:32', '2014-11-05 08:11:32', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:11:32', '2014-11-05 08:11:32', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:12:26', '2014-11-05 08:12:26', 517391740) Fixture Insert (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-11-05 08:12:26', '2014-11-05 08:12:26', 701625837) Fixture Insert (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-11-05 08:12:26', '2014-11-05 08:12:26', 819504217) Fixture Insert (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-11-05 08:12:26', '2014-11-05 08:12:26', 132093124) Fixture Insert (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-11-05 08:12:26', '2014-11-05 08:12:26', 431685987) 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-11-05 08:12:26', '2014-11-05 08:12:26', 68463692) 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-11-05 08:12:26', '2014-11-05 08:12:26', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:12:26', '2014-11-05 08:12:26', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:12:26', '2014-11-05 08:12:26', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:12:26', '2014-11-05 08:12:26', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:12:26', '2014-11-05 08:12:26', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:12:26', '2014-11-05 08:12:26', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:12:26', '2014-11-05 08:12:26', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:12:26', '2014-11-05 08:12:26', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:12:26', '2014-11-05 08:12:26', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:12:26', '2014-11-05 08:12:26', 948421225)  (0.9ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:17:56', '2014-11-05 08:17:56', 517391740) Fixture Insert (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-11-05 08:17:56', '2014-11-05 08:17:56', 701625837) Fixture Insert (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-11-05 08:17:56', '2014-11-05 08:17:56', 819504217) Fixture Insert (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-11-05 08:17:56', '2014-11-05 08:17:56', 132093124) Fixture Insert (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-11-05 08:17:56', '2014-11-05 08:17:56', 431685987) 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-11-05 08:17:56', '2014-11-05 08:17:56', 68463692) 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-11-05 08:17:56', '2014-11-05 08:17:56', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:17:56', '2014-11-05 08:17:56', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:17:56', '2014-11-05 08:17:56', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:17:56', '2014-11-05 08:17:56', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:17:56', '2014-11-05 08:17:56', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:17:56', '2014-11-05 08:17:56', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:17:56', '2014-11-05 08:17:56', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:17:56', '2014-11-05 08:17:56', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:17:56', '2014-11-05 08:17:56', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:17:56', '2014-11-05 08:17:56', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:26:25', '2014-11-05 08:26:25', 517391740) Fixture Insert (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-11-05 08:26:25', '2014-11-05 08:26:25', 701625837) Fixture Insert (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-11-05 08:26:25', '2014-11-05 08:26:25', 819504217) Fixture Insert (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-11-05 08:26:25', '2014-11-05 08:26:25', 132093124) Fixture Insert (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-11-05 08:26:25', '2014-11-05 08:26:25', 431685987) 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-11-05 08:26:25', '2014-11-05 08:26:25', 68463692) 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-11-05 08:26:25', '2014-11-05 08:26:25', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:26:25', '2014-11-05 08:26:25', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:26:25', '2014-11-05 08:26:25', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:25', '2014-11-05 08:26:25', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:25', '2014-11-05 08:26:25', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:25', '2014-11-05 08:26:25', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:25', '2014-11-05 08:26:25', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:26:25', '2014-11-05 08:26:25', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:26:25', '2014-11-05 08:26:25', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:26:25', '2014-11-05 08:26:25', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:26:41', '2014-11-05 08:26:41', 517391740) Fixture Insert (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-11-05 08:26:41', '2014-11-05 08:26:41', 701625837) Fixture Insert (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-11-05 08:26:41', '2014-11-05 08:26:41', 819504217) Fixture Insert (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-11-05 08:26:41', '2014-11-05 08:26:41', 132093124) Fixture Insert (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-11-05 08:26:41', '2014-11-05 08:26:41', 431685987) 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-11-05 08:26:41', '2014-11-05 08:26:41', 68463692) 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-11-05 08:26:41', '2014-11-05 08:26:41', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:26:41', '2014-11-05 08:26:41', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:26:41', '2014-11-05 08:26:41', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:41', '2014-11-05 08:26:41', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:41', '2014-11-05 08:26:41', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:41', '2014-11-05 08:26:41', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:26:41', '2014-11-05 08:26:41', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:26:41', '2014-11-05 08:26:41', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:26:41', '2014-11-05 08:26:41', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:26:41', '2014-11-05 08:26:41', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:26:41.600415"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:26:41.622429"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:26:41.622119"], ["updated_at", "2014-11-05 08:26:41.622429"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:27:26', '2014-11-05 08:27:26', 517391740) Fixture Insert (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-11-05 08:27:26', '2014-11-05 08:27:26', 701625837) Fixture Insert (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-11-05 08:27:26', '2014-11-05 08:27:26', 819504217) Fixture Insert (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-11-05 08:27:26', '2014-11-05 08:27:26', 132093124) Fixture Insert (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-11-05 08:27:26', '2014-11-05 08:27:26', 431685987) 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-11-05 08:27:26', '2014-11-05 08:27:26', 68463692) 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-11-05 08:27:26', '2014-11-05 08:27:26', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:27:26', '2014-11-05 08:27:26', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:27:26', '2014-11-05 08:27:26', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:26', '2014-11-05 08:27:26', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:26', '2014-11-05 08:27:26', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:26', '2014-11-05 08:27:26', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:26', '2014-11-05 08:27:26', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:27:26', '2014-11-05 08:27:26', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:27:26', '2014-11-05 08:27:26', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:27:26', '2014-11-05 08:27:26', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) begin transaction SQL (0.5ms) 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-11-05 08:27:26.464570"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:27:26.488450"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:27:26.487995"], ["updated_at", "2014-11-05 08:27:26.488450"]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:27:55', '2014-11-05 08:27:55', 517391740) Fixture Insert (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-11-05 08:27:55', '2014-11-05 08:27:55', 701625837) Fixture Insert (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-11-05 08:27:55', '2014-11-05 08:27:55', 819504217) Fixture Insert (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-11-05 08:27:55', '2014-11-05 08:27:55', 132093124) Fixture Insert (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-11-05 08:27:55', '2014-11-05 08:27:55', 431685987) 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-11-05 08:27:55', '2014-11-05 08:27:55', 68463692) 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-11-05 08:27:55', '2014-11-05 08:27:55', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:27:55', '2014-11-05 08:27:55', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:27:55', '2014-11-05 08:27:55', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:55', '2014-11-05 08:27:55', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:55', '2014-11-05 08:27:55', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:55', '2014-11-05 08:27:55', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:27:55', '2014-11-05 08:27:55', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:27:55', '2014-11-05 08:27:55', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:27:55', '2014-11-05 08:27:55', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:27:55', '2014-11-05 08:27:55', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:27:55.342114"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:27:55.360350"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:27:55.360053"], ["updated_at", "2014-11-05 08:27:55.360350"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:32:11', '2014-11-05 08:32:11', 517391740) Fixture Insert (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-11-05 08:32:11', '2014-11-05 08:32:11', 701625837) Fixture Insert (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-11-05 08:32:11', '2014-11-05 08:32:11', 819504217) Fixture Insert (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-11-05 08:32:11', '2014-11-05 08:32:11', 132093124) Fixture Insert (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-11-05 08:32:11', '2014-11-05 08:32:11', 431685987) 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-11-05 08:32:11', '2014-11-05 08:32:11', 68463692) 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-11-05 08:32:11', '2014-11-05 08:32:11', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:32:11', '2014-11-05 08:32:11', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:32:11', '2014-11-05 08:32:11', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:11', '2014-11-05 08:32:11', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:11', '2014-11-05 08:32:11', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:11', '2014-11-05 08:32:11', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:11', '2014-11-05 08:32:11', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:32:11', '2014-11-05 08:32:11', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:32:11', '2014-11-05 08:32:11', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:32:11', '2014-11-05 08:32:11', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:32:11.914160"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:32:11.934681"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:32:11.934413"], ["updated_at", "2014-11-05 08:32:11.934681"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-05 08:32:41', '2014-11-05 08:32:41', 517391740) Fixture Insert (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-11-05 08:32:41', '2014-11-05 08:32:41', 701625837) Fixture Insert (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-11-05 08:32:41', '2014-11-05 08:32:41', 819504217) Fixture Insert (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-11-05 08:32:41', '2014-11-05 08:32:41', 132093124) Fixture Insert (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-11-05 08:32:41', '2014-11-05 08:32:41', 431685987) 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-11-05 08:32:41', '2014-11-05 08:32:41', 68463692) 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-11-05 08:32:41', '2014-11-05 08:32:41', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:32:41', '2014-11-05 08:32:41', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:32:41', '2014-11-05 08:32:41', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:41', '2014-11-05 08:32:41', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:41', '2014-11-05 08:32:41', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:41', '2014-11-05 08:32:41', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:32:41', '2014-11-05 08:32:41', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:32:41', '2014-11-05 08:32:41', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:32:41', '2014-11-05 08:32:41', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:32:41', '2014-11-05 08:32:41', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:32:41.626385"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:32:41.649642"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:32:41.649263"], ["updated_at", "2014-11-05 08:32:41.649642"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (1.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:33:03', '2014-11-05 08:33:03', 517391740) Fixture Insert (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-11-05 08:33:03', '2014-11-05 08:33:03', 701625837) Fixture Insert (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-11-05 08:33:03', '2014-11-05 08:33:03', 819504217) Fixture Insert (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-11-05 08:33:03', '2014-11-05 08:33:03', 132093124) Fixture Insert (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-11-05 08:33:03', '2014-11-05 08:33:03', 431685987) 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-11-05 08:33:03', '2014-11-05 08:33:03', 68463692) 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-11-05 08:33:03', '2014-11-05 08:33:03', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:33:03', '2014-11-05 08:33:03', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:33:03', '2014-11-05 08:33:03', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:03', '2014-11-05 08:33:03', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:03', '2014-11-05 08:33:03', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:03', '2014-11-05 08:33:03', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:03', '2014-11-05 08:33:03', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:33:03', '2014-11-05 08:33:03', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:33:03', '2014-11-05 08:33:03', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:33:03', '2014-11-05 08:33:03', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:33:03.178541"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:33:03.200752"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:33:03.200404"], ["updated_at", "2014-11-05 08:33:03.200752"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:33:40', '2014-11-05 08:33:40', 517391740) Fixture Insert (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-11-05 08:33:40', '2014-11-05 08:33:40', 701625837) Fixture Insert (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-11-05 08:33:40', '2014-11-05 08:33:40', 819504217) Fixture Insert (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-11-05 08:33:40', '2014-11-05 08:33:40', 132093124) Fixture Insert (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-11-05 08:33:40', '2014-11-05 08:33:40', 431685987) 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-11-05 08:33:40', '2014-11-05 08:33:40', 68463692) 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-11-05 08:33:40', '2014-11-05 08:33:40', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:33:40', '2014-11-05 08:33:40', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:33:40', '2014-11-05 08:33:40', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:40', '2014-11-05 08:33:40', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:40', '2014-11-05 08:33:40', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:40', '2014-11-05 08:33:40', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:33:40', '2014-11-05 08:33:40', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:33:40', '2014-11-05 08:33:40', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:33:40', '2014-11-05 08:33:40', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:33:40', '2014-11-05 08:33:40', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:33:41.108383"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:33:41.128050"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:33:41.127754"], ["updated_at", "2014-11-05 08:33:41.128050"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:34:27', '2014-11-05 08:34:27', 517391740) Fixture Insert (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-11-05 08:34:27', '2014-11-05 08:34:27', 701625837) Fixture Insert (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-11-05 08:34:27', '2014-11-05 08:34:27', 819504217) Fixture Insert (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-11-05 08:34:27', '2014-11-05 08:34:27', 132093124) Fixture Insert (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-11-05 08:34:27', '2014-11-05 08:34:27', 431685987) 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-11-05 08:34:27', '2014-11-05 08:34:27', 68463692) 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-11-05 08:34:27', '2014-11-05 08:34:27', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:34:27', '2014-11-05 08:34:27', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:34:27', '2014-11-05 08:34:27', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:34:27', '2014-11-05 08:34:27', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:34:27', '2014-11-05 08:34:27', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:34:27', '2014-11-05 08:34:27', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:34:27', '2014-11-05 08:34:27', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:34:27', '2014-11-05 08:34:27', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:34:27', '2014-11-05 08:34:27', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:34:27', '2014-11-05 08:34:27', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction SQL (0.9ms) 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-11-05 08:34:27.166104"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:34:27.184684"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:34:27.184417"], ["updated_at", "2014-11-05 08:34:27.184684"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:35:17', '2014-11-05 08:35:17', 517391740) Fixture Insert (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-11-05 08:35:17', '2014-11-05 08:35:17', 701625837) Fixture Insert (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-11-05 08:35:17', '2014-11-05 08:35:17', 819504217) Fixture Insert (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-11-05 08:35:17', '2014-11-05 08:35:17', 132093124) Fixture Insert (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-11-05 08:35:17', '2014-11-05 08:35:17', 431685987) 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-11-05 08:35:17', '2014-11-05 08:35:17', 68463692) 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-11-05 08:35:17', '2014-11-05 08:35:17', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:35:17', '2014-11-05 08:35:17', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:35:17', '2014-11-05 08:35:17', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:17', '2014-11-05 08:35:17', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:17', '2014-11-05 08:35:17', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:17', '2014-11-05 08:35:17', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:17', '2014-11-05 08:35:17', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:35:17', '2014-11-05 08:35:17', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:35:17', '2014-11-05 08:35:17', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:35:17', '2014-11-05 08:35:17', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:35:17.136043"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:35:17.159202"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:35:17.158849"], ["updated_at", "2014-11-05 08:35:17.159202"]]  (0.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:35:51', '2014-11-05 08:35:51', 517391740) Fixture Insert (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-11-05 08:35:51', '2014-11-05 08:35:51', 701625837) Fixture Insert (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-11-05 08:35:51', '2014-11-05 08:35:51', 819504217) Fixture Insert (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-11-05 08:35:51', '2014-11-05 08:35:51', 132093124) Fixture Insert (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-11-05 08:35:51', '2014-11-05 08:35:51', 431685987) 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-11-05 08:35:51', '2014-11-05 08:35:51', 68463692) 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-11-05 08:35:51', '2014-11-05 08:35:51', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:35:51', '2014-11-05 08:35:51', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:35:51', '2014-11-05 08:35:51', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:51', '2014-11-05 08:35:51', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:51', '2014-11-05 08:35:51', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:51', '2014-11-05 08:35:51', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:35:51', '2014-11-05 08:35:51', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:35:51', '2014-11-05 08:35:51', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:35:51', '2014-11-05 08:35:51', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:35:51', '2014-11-05 08:35:51', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) begin transaction 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-11-05 08:35:51.437547"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:35:51.459095"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:35:51.458813"], ["updated_at", "2014-11-05 08:35:51.459095"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-05 08:36:03', '2014-11-05 08:36:03', 517391740) Fixture Insert (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-11-05 08:36:03', '2014-11-05 08:36:03', 701625837) Fixture Insert (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-11-05 08:36:03', '2014-11-05 08:36:03', 819504217) Fixture Insert (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-11-05 08:36:03', '2014-11-05 08:36:03', 132093124) Fixture Insert (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-11-05 08:36:03', '2014-11-05 08:36:03', 431685987) 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-11-05 08:36:03', '2014-11-05 08:36:03', 68463692) 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-11-05 08:36:03', '2014-11-05 08:36:03', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:36:03', '2014-11-05 08:36:03', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:36:03', '2014-11-05 08:36:03', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:03', '2014-11-05 08:36:03', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:03', '2014-11-05 08:36:03', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:03', '2014-11-05 08:36:03', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:03', '2014-11-05 08:36:03', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:36:03', '2014-11-05 08:36:03', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:36:03', '2014-11-05 08:36:03', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:36:03', '2014-11-05 08:36:03', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:36:03.366045"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:36:03.390784"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:36:03.390434"], ["updated_at", "2014-11-05 08:36:03.390784"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:36:33', '2014-11-05 08:36:33', 517391740) Fixture Insert (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-11-05 08:36:33', '2014-11-05 08:36:33', 701625837) Fixture Insert (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-11-05 08:36:33', '2014-11-05 08:36:33', 819504217) Fixture Insert (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-11-05 08:36:33', '2014-11-05 08:36:33', 132093124) Fixture Insert (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-11-05 08:36:33', '2014-11-05 08:36:33', 431685987) 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-11-05 08:36:33', '2014-11-05 08:36:33', 68463692) 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-11-05 08:36:33', '2014-11-05 08:36:33', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:36:33', '2014-11-05 08:36:33', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:36:33', '2014-11-05 08:36:33', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:33', '2014-11-05 08:36:33', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:33', '2014-11-05 08:36:33', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:33', '2014-11-05 08:36:33', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:36:33', '2014-11-05 08:36:33', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:36:33', '2014-11-05 08:36:33', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:36:33', '2014-11-05 08:36:33', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:36:33', '2014-11-05 08:36:33', 948421225)  (5.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:36:33.465094"]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:36:33.489069"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:36:33.488710"], ["updated_at", "2014-11-05 08:36:33.489069"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (1.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:38:41', '2014-11-05 08:38:41', 517391740) Fixture Insert (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-11-05 08:38:41', '2014-11-05 08:38:41', 701625837) Fixture Insert (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-11-05 08:38:41', '2014-11-05 08:38:41', 819504217) Fixture Insert (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-11-05 08:38:41', '2014-11-05 08:38:41', 132093124) Fixture Insert (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-11-05 08:38:41', '2014-11-05 08:38:41', 431685987) 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-11-05 08:38:41', '2014-11-05 08:38:41', 68463692) 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-11-05 08:38:41', '2014-11-05 08:38:41', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:38:41', '2014-11-05 08:38:41', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:38:41', '2014-11-05 08:38:41', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:38:41', '2014-11-05 08:38:41', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:38:41', '2014-11-05 08:38:41', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:38:41', '2014-11-05 08:38:41', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:38:41', '2014-11-05 08:38:41', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:38:41', '2014-11-05 08:38:41', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:38:41', '2014-11-05 08:38:41', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:38:41', '2014-11-05 08:38:41', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:38:41.314541"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:38:41.338491"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:38:41.337970"], ["updated_at", "2014-11-05 08:38:41.338491"]]  (1.1ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (1.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:39:32', '2014-11-05 08:39:32', 517391740) Fixture Insert (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-11-05 08:39:32', '2014-11-05 08:39:32', 701625837) Fixture Insert (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-11-05 08:39:32', '2014-11-05 08:39:32', 819504217) Fixture Insert (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-11-05 08:39:32', '2014-11-05 08:39:32', 132093124) Fixture Insert (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-11-05 08:39:32', '2014-11-05 08:39:32', 431685987) 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-11-05 08:39:32', '2014-11-05 08:39:32', 68463692) 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-11-05 08:39:32', '2014-11-05 08:39:32', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:39:32', '2014-11-05 08:39:32', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:39:32', '2014-11-05 08:39:32', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:39:32', '2014-11-05 08:39:32', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:39:32', '2014-11-05 08:39:32', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:39:32', '2014-11-05 08:39:32', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:39:32', '2014-11-05 08:39:32', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:39:32', '2014-11-05 08:39:32', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:39:32', '2014-11-05 08:39:32', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:39:32', '2014-11-05 08:39:32', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:39:32.795660"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:39:32.818009"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:39:32.817728"], ["updated_at", "2014-11-05 08:39:32.818009"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:40:53', '2014-11-05 08:40:53', 517391740) Fixture Insert (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-11-05 08:40:53', '2014-11-05 08:40:53', 701625837) Fixture Insert (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-11-05 08:40:53', '2014-11-05 08:40:53', 819504217) Fixture Insert (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-11-05 08:40:53', '2014-11-05 08:40:53', 132093124) Fixture Insert (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-11-05 08:40:53', '2014-11-05 08:40:53', 431685987) 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-11-05 08:40:53', '2014-11-05 08:40:53', 68463692) 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-11-05 08:40:53', '2014-11-05 08:40:53', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:40:53', '2014-11-05 08:40:53', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:40:53', '2014-11-05 08:40:53', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:40:53', '2014-11-05 08:40:53', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:40:53', '2014-11-05 08:40:53', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:40:53', '2014-11-05 08:40:53', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:40:53', '2014-11-05 08:40:53', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:40:53', '2014-11-05 08:40:53', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:40:53', '2014-11-05 08:40:53', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:40:53', '2014-11-05 08:40:53', 948421225)  (1.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:40:53.523984"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:40:53.545532"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:40:53.545223"], ["updated_at", "2014-11-05 08:40:53.545532"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:43:19', '2014-11-05 08:43:19', 517391740) Fixture Insert (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-11-05 08:43:19', '2014-11-05 08:43:19', 701625837) Fixture Insert (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-11-05 08:43:19', '2014-11-05 08:43:19', 819504217) Fixture Insert (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-11-05 08:43:19', '2014-11-05 08:43:19', 132093124) Fixture Insert (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-11-05 08:43:19', '2014-11-05 08:43:19', 431685987) 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-11-05 08:43:19', '2014-11-05 08:43:19', 68463692) 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-11-05 08:43:19', '2014-11-05 08:43:19', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:43:19', '2014-11-05 08:43:19', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:43:19', '2014-11-05 08:43:19', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:43:19', '2014-11-05 08:43:19', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:43:19', '2014-11-05 08:43:19', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:43:19', '2014-11-05 08:43:19', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:43:19', '2014-11-05 08:43:19', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:43:19', '2014-11-05 08:43:19', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:43:19', '2014-11-05 08:43:19', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:43:19', '2014-11-05 08:43:19', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:43:19.885718"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:43:19.908767"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:43:19.908491"], ["updated_at", "2014-11-05 08:43:19.908767"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:44:06', '2014-11-05 08:44:06', 517391740) Fixture Insert (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-11-05 08:44:06', '2014-11-05 08:44:06', 701625837) Fixture Insert (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-11-05 08:44:06', '2014-11-05 08:44:06', 819504217) Fixture Insert (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-11-05 08:44:06', '2014-11-05 08:44:06', 132093124) Fixture Insert (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-11-05 08:44:06', '2014-11-05 08:44:06', 431685987) 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-11-05 08:44:06', '2014-11-05 08:44:06', 68463692) 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-11-05 08:44:06', '2014-11-05 08:44:06', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:44:06', '2014-11-05 08:44:06', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:44:06', '2014-11-05 08:44:06', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:06', '2014-11-05 08:44:06', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:06', '2014-11-05 08:44:06', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:06', '2014-11-05 08:44:06', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:06', '2014-11-05 08:44:06', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:44:06', '2014-11-05 08:44:06', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:44:06', '2014-11-05 08:44:06', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:44:06', '2014-11-05 08:44:06', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:44:06.305022"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:06.325704"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:44:06.325422"], ["updated_at", "2014-11-05 08:44:06.325704"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.7ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "fogged_resources" 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-11-05 08:44:12', '2014-11-05 08:44:12', 517391740) Fixture Insert (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-11-05 08:44:12', '2014-11-05 08:44:12', 701625837) Fixture Insert (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-11-05 08:44:12', '2014-11-05 08:44:12', 819504217) Fixture Insert (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-11-05 08:44:12', '2014-11-05 08:44:12', 132093124) Fixture Insert (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-11-05 08:44:12', '2014-11-05 08:44:12', 431685987) 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-11-05 08:44:12', '2014-11-05 08:44:12', 68463692) 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-11-05 08:44:12', '2014-11-05 08:44:12', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:44:12', '2014-11-05 08:44:12', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:44:12', '2014-11-05 08:44:12', 153115190) Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:12', '2014-11-05 08:44:12', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:12', '2014-11-05 08:44:12', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:12', '2014-11-05 08:44:12', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:12', '2014-11-05 08:44:12', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:44:12', '2014-11-05 08:44:12', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:44:12', '2014-11-05 08:44:12', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:44:12', '2014-11-05 08:44:12', 948421225)  (1.6ms) commit transaction  (0.3ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 08:44:12.686161"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:44:12.698867"], ["name", "test"], ["updated_at", "2014-11-05 08:44:12.698867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:44:12.704059"], ["name", "test"], ["updated_at", "2014-11-05 08:44:12.704059"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:12.705104"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 08:44:12.705104"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:12.706016"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 08:44:12.706016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3b56093ac495f8493e664ab07b8ce6fc' LIMIT 1 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-11-05 08:44:12.728825"], ["extension", "png"], ["name", "Dummy"], ["token", "3b56093ac495f8493e664ab07b8ce6fc"], ["updated_at", "2014-11-05 08:44:12.728825"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" Fogged::Resource Load (0.5ms) 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]] 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]] 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]] Completed 200 OK in 15ms (Views: 1.4ms | ActiveRecord: 0.8ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '4762c33ef38f5834803881162368f428' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 08:44:12.783618"], ["extension", "txt"], ["name", "footest barish"], ["token", "4762c33ef38f5834803881162368f428"], ["updated_at", "2014-11-05 08:44:12.783618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:12.785732"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 08:44:12.785732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 08:44:12.831313"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:12.835310"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 08:44:12.835310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:44:12.837421"], ["name", "test"], ["updated_at", "2014-11-05 08:44:12.837421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:44:13.001728"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:44:13.019571"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:44:13.019282"], ["updated_at", "2014-11-05 08:44:13.019571"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:44:13', '2014-11-05 08:44:13', 517391740) Fixture Insert (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-11-05 08:44:13', '2014-11-05 08:44:13', 701625837) Fixture Insert (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-11-05 08:44:13', '2014-11-05 08:44:13', 819504217) Fixture Insert (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-11-05 08:44:13', '2014-11-05 08:44:13', 132093124) Fixture Insert (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-11-05 08:44:13', '2014-11-05 08:44:13', 431685987) 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-11-05 08:44:13', '2014-11-05 08:44:13', 68463692) 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-11-05 08:44:13', '2014-11-05 08:44:13', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:44:13', '2014-11-05 08:44:13', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:44:13', '2014-11-05 08:44:13', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:13', '2014-11-05 08:44:13', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:13', '2014-11-05 08:44:13', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:13', '2014-11-05 08:44:13', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:44:13', '2014-11-05 08:44:13', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:44:13', '2014-11-05 08:44:13', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:44:13', '2014-11-05 08:44:13', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:44:13', '2014-11-05 08:44:13', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 08:44:13.462232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 08:44:13.469913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 08:44:13.474958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 08:44:13.522224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 08:44:13.537810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5b3d34a830b8519e6e0f5a1fa79e187d' LIMIT 1 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-11-05 08:44:13.543657"], ["extension", "txt"], ["name", "Test"], ["token", "5b3d34a830b8519e6e0f5a1fa79e187d"], ["updated_at", "2014-11-05 08:44:13.543657"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a7a036287122aec71e33fd2100bbf881' LIMIT 1 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-11-05 08:44:13.546973"], ["extension", "txt"], ["name", "Test"], ["token", "a7a036287122aec71e33fd2100bbf881"], ["updated_at", "2014-11-05 08:44:13.546973"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '18bc02235315d7beb293aa147dcb0f65' LIMIT 1 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-11-05 08:44:13.552294"], ["extension", "txt"], ["name", "Test"], ["token", "18bc02235315d7beb293aa147dcb0f65"], ["updated_at", "2014-11-05 08:44:13.552294"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'ffcee8a6b902e59ec2eac7164383c745' LIMIT 1 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-11-05 08:44:13.555472"], ["extension", "txt"], ["name", "Test"], ["token", "ffcee8a6b902e59ec2eac7164383c745"], ["updated_at", "2014-11-05 08:44:13.555472"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '483a970c9cccaffc356e0d375f69311c' LIMIT 1 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-11-05 08:44:13.559706"], ["extension", "txt"], ["name", "Test"], ["token", "483a970c9cccaffc356e0d375f69311c"], ["updated_at", "2014-11-05 08:44:13.559706"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:46:20', '2014-11-05 08:46:20', 517391740) Fixture Insert (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-11-05 08:46:20', '2014-11-05 08:46:20', 701625837) Fixture Insert (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-11-05 08:46:20', '2014-11-05 08:46:20', 819504217) Fixture Insert (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-11-05 08:46:20', '2014-11-05 08:46:20', 132093124) Fixture Insert (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-11-05 08:46:20', '2014-11-05 08:46:20', 431685987) 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-11-05 08:46:20', '2014-11-05 08:46:20', 68463692) 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-11-05 08:46:20', '2014-11-05 08:46:20', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:46:20', '2014-11-05 08:46:20', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:46:20', '2014-11-05 08:46:20', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:46:20', '2014-11-05 08:46:20', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:46:20', '2014-11-05 08:46:20', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:46:20', '2014-11-05 08:46:20', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:46:20', '2014-11-05 08:46:20', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:46:20', '2014-11-05 08:46:20', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:46:20', '2014-11-05 08:46:20', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:46:20', '2014-11-05 08:46:20', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd3660120208c591f1140084fb5675996' LIMIT 1 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-11-05 08:46:20.619193"], ["extension", "txt"], ["name", "Test"], ["token", "d3660120208c591f1140084fb5675996"], ["updated_at", "2014-11-05 08:46:20.619193"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'beacf1e21532b29fd031f8a159cd692e' LIMIT 1 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-11-05 08:46:20.623621"], ["extension", "txt"], ["name", "Test"], ["token", "beacf1e21532b29fd031f8a159cd692e"], ["updated_at", "2014-11-05 08:46:20.623621"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6aa2b7667f7629def43960b9bacd51e1' LIMIT 1 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-11-05 08:46:20.630921"], ["extension", "txt"], ["name", "Test"], ["token", "6aa2b7667f7629def43960b9bacd51e1"], ["updated_at", "2014-11-05 08:46:20.630921"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a2658da82f9e799a0dc2d4157134db1e' LIMIT 1 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-11-05 08:46:20.633786"], ["extension", "txt"], ["name", "Test"], ["token", "a2658da82f9e799a0dc2d4157134db1e"], ["updated_at", "2014-11-05 08:46:20.633786"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b5b3ee3738ab95c76b109f8a5e49f975' LIMIT 1 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-11-05 08:46:20.637225"], ["extension", "txt"], ["name", "Test"], ["token", "b5b3ee3738ab95c76b109f8a5e49f975"], ["updated_at", "2014-11-05 08:46:20.637225"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:51:43', '2014-11-05 08:51:43', 517391740) Fixture Insert (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-11-05 08:51:43', '2014-11-05 08:51:43', 701625837) Fixture Insert (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-11-05 08:51:43', '2014-11-05 08:51:43', 819504217) Fixture Insert (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-11-05 08:51:43', '2014-11-05 08:51:43', 132093124) Fixture Insert (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-11-05 08:51:43', '2014-11-05 08:51:43', 431685987) 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-11-05 08:51:43', '2014-11-05 08:51:43', 68463692) 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-11-05 08:51:43', '2014-11-05 08:51:43', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:51:43', '2014-11-05 08:51:43', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:51:43', '2014-11-05 08:51:43', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:51:43', '2014-11-05 08:51:43', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:51:43', '2014-11-05 08:51:43', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:51:43', '2014-11-05 08:51:43', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:51:43', '2014-11-05 08:51:43', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:51:43', '2014-11-05 08:51:43', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:51:43', '2014-11-05 08:51:43', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:51:43', '2014-11-05 08:51:43', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'aedb540d6477a31df258b7f43fed2ffe' LIMIT 1 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-11-05 08:51:43.939651"], ["extension", "txt"], ["name", "Test"], ["token", "aedb540d6477a31df258b7f43fed2ffe"], ["updated_at", "2014-11-05 08:51:43.939651"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd15dcec37f1b8434b7e2a76ec316e1a9' LIMIT 1 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-11-05 08:51:43.945025"], ["extension", "txt"], ["name", "Test"], ["token", "d15dcec37f1b8434b7e2a76ec316e1a9"], ["updated_at", "2014-11-05 08:51:43.945025"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'eb29390cd81135150c59ea69366b0aed' LIMIT 1 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-11-05 08:51:43.950844"], ["extension", "txt"], ["name", "Test"], ["token", "eb29390cd81135150c59ea69366b0aed"], ["updated_at", "2014-11-05 08:51:43.950844"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd3e04d853f0f96026ae8fc2a424956c4' LIMIT 1 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-11-05 08:51:43.953491"], ["extension", "txt"], ["name", "Test"], ["token", "d3e04d853f0f96026ae8fc2a424956c4"], ["updated_at", "2014-11-05 08:51:43.953491"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '988f6a7d266b875c939b77b964b8b5d3' LIMIT 1 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-11-05 08:51:43.957635"], ["extension", "txt"], ["name", "Test"], ["token", "988f6a7d266b875c939b77b964b8b5d3"], ["updated_at", "2014-11-05 08:51:43.957635"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 08:51:43.974645"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (1.4ms) DELETE FROM "fogged_resources" 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-11-05 08:59:04', '2014-11-05 08:59:04', 517391740) Fixture Insert (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-11-05 08:59:04', '2014-11-05 08:59:04', 701625837) Fixture Insert (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-11-05 08:59:04', '2014-11-05 08:59:04', 819504217) Fixture Insert (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-11-05 08:59:04', '2014-11-05 08:59:04', 132093124) Fixture Insert (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-11-05 08:59:04', '2014-11-05 08:59:04', 431685987) 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-11-05 08:59:04', '2014-11-05 08:59:04', 68463692) 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-11-05 08:59:04', '2014-11-05 08:59:04', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:59:04', '2014-11-05 08:59:04', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:59:04', '2014-11-05 08:59:04', 153115190) Fixture Delete (0.3ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:04', '2014-11-05 08:59:04', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:04', '2014-11-05 08:59:04', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:04', '2014-11-05 08:59:04', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:04', '2014-11-05 08:59:04', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:59:04', '2014-11-05 08:59:04', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:59:04', '2014-11-05 08:59:04', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:59:04', '2014-11-05 08:59:04', 948421225)  (7.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7999bd363ec78832a9acbf5e7ad9c8e3' LIMIT 1 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-11-05 08:59:04.429763"], ["extension", "txt"], ["name", "Test"], ["token", "7999bd363ec78832a9acbf5e7ad9c8e3"], ["updated_at", "2014-11-05 08:59:04.429763"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '61c1ddcb9e0cbe43eab7a1034e68434e' LIMIT 1 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-11-05 08:59:04.433241"], ["extension", "txt"], ["name", "Test"], ["token", "61c1ddcb9e0cbe43eab7a1034e68434e"], ["updated_at", "2014-11-05 08:59:04.433241"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c3fc3d60abaeb98cef09dc8848739c37' LIMIT 1 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-11-05 08:59:04.438599"], ["extension", "txt"], ["name", "Test"], ["token", "c3fc3d60abaeb98cef09dc8848739c37"], ["updated_at", "2014-11-05 08:59:04.438599"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7d03bfb9d791d5b1f3b5f1f6bf2bd1fd' LIMIT 1 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-11-05 08:59:04.441676"], ["extension", "txt"], ["name", "Test"], ["token", "7d03bfb9d791d5b1f3b5f1f6bf2bd1fd"], ["updated_at", "2014-11-05 08:59:04.441676"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1e904e7f8261cf82ab088447137f8ab3' LIMIT 1 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-11-05 08:59:04.445500"], ["extension", "txt"], ["name", "Test"], ["token", "1e904e7f8261cf82ab088447137f8ab3"], ["updated_at", "2014-11-05 08:59:04.445500"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 08:59:04.458936"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:59:04.560258"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:04.582222"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:59:04.581894"], ["updated_at", "2014-11-05 08:59:04.582222"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 08:59:13', '2014-11-05 08:59:13', 517391740) Fixture Insert (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-11-05 08:59:13', '2014-11-05 08:59:13', 701625837) Fixture Insert (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-11-05 08:59:13', '2014-11-05 08:59:13', 819504217) Fixture Insert (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-11-05 08:59:13', '2014-11-05 08:59:13', 132093124) Fixture Insert (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-11-05 08:59:13', '2014-11-05 08:59:13', 431685987) 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-11-05 08:59:13', '2014-11-05 08:59:13', 68463692) 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-11-05 08:59:13', '2014-11-05 08:59:13', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:59:13', '2014-11-05 08:59:13', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:59:13', '2014-11-05 08:59:13', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:13', '2014-11-05 08:59:13', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:13', '2014-11-05 08:59:13', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:13', '2014-11-05 08:59:13', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:13', '2014-11-05 08:59:13', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:59:13', '2014-11-05 08:59:13', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:59:13', '2014-11-05 08:59:13', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:59:13', '2014-11-05 08:59:13', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 08:59:13.627376"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:59:13.638135"], ["name", "test"], ["updated_at", "2014-11-05 08:59:13.638135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:59:13.644661"], ["name", "test"], ["updated_at", "2014-11-05 08:59:13.644661"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:13.646054"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 08:59:13.646054"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:13.647306"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 08:59:13.647306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 08:59:13.671388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 08:59:13.675299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 08:59:13.678457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 08:59:13.681804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '801f3943551a5c21e7d79ba714f23aac' LIMIT 1 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-11-05 08:59:13.708687"], ["extension", "png"], ["name", "Dummy"], ["token", "801f3943551a5c21e7d79ba714f23aac"], ["updated_at", "2014-11-05 08:59:13.708687"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) 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]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f673ef6a2dc8713b26a47a3e06448855' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 08:59:13.754260"], ["extension", "txt"], ["name", "footest barish"], ["token", "f673ef6a2dc8713b26a47a3e06448855"], ["updated_at", "2014-11-05 08:59:13.754260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:13.756320"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 08:59:13.756320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 0ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 08:59:13.780053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 08:59:13.821445"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:13.825332"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 08:59:13.825332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 08:59:13.827400"], ["name", "test"], ["updated_at", "2014-11-05 08:59:13.827400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9c502210185371d3a28329cb0d3b7a39' LIMIT 1 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-11-05 08:59:13.830473"], ["extension", "txt"], ["name", "Test"], ["token", "9c502210185371d3a28329cb0d3b7a39"], ["updated_at", "2014-11-05 08:59:13.830473"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '06583a8fbb303c8f65204a50fc0ade6b' LIMIT 1 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-11-05 08:59:13.833344"], ["extension", "txt"], ["name", "Test"], ["token", "06583a8fbb303c8f65204a50fc0ade6b"], ["updated_at", "2014-11-05 08:59:13.833344"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a99fc8ce4f1457351203a4ac49c0a2a2' LIMIT 1 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-11-05 08:59:13.837884"], ["extension", "txt"], ["name", "Test"], ["token", "a99fc8ce4f1457351203a4ac49c0a2a2"], ["updated_at", "2014-11-05 08:59:13.837884"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9eafc2ee3bd83b513fe744a58fcd6f0c' LIMIT 1 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-11-05 08:59:13.840715"], ["extension", "txt"], ["name", "Test"], ["token", "9eafc2ee3bd83b513fe744a58fcd6f0c"], ["updated_at", "2014-11-05 08:59:13.840715"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e3a17dcb16dd9f7036beec1f7b5ba128' LIMIT 1 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-11-05 08:59:13.844039"], ["extension", "txt"], ["name", "Test"], ["token", "e3a17dcb16dd9f7036beec1f7b5ba128"], ["updated_at", "2014-11-05 08:59:13.844039"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 08:59:13.850364"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:59:13.945102"]]  (0.8ms) commit transaction  (0.4ms) begin transaction SQL (1.0ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:13.966861"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:59:13.966430"], ["updated_at", "2014-11-05 08:59:13.966861"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 08:59:14', '2014-11-05 08:59:14', 517391740) Fixture Insert (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-11-05 08:59:14', '2014-11-05 08:59:14', 701625837) Fixture Insert (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-11-05 08:59:14', '2014-11-05 08:59:14', 819504217) Fixture Insert (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-11-05 08:59:14', '2014-11-05 08:59:14', 132093124) Fixture Insert (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-11-05 08:59:14', '2014-11-05 08:59:14', 431685987) 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-11-05 08:59:14', '2014-11-05 08:59:14', 68463692) 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-11-05 08:59:14', '2014-11-05 08:59:14', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 08:59:14', '2014-11-05 08:59:14', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 08:59:14', '2014-11-05 08:59:14', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:14', '2014-11-05 08:59:14', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:14', '2014-11-05 08:59:14', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:14', '2014-11-05 08:59:14', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 08:59:14', '2014-11-05 08:59:14', 779853880, 245026679, 431685987) Fixture Delete (0.2ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 08:59:14', '2014-11-05 08:59:14', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 08:59:14', '2014-11-05 08:59:14', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 08:59:14', '2014-11-05 08:59:14', 948421225)  (0.9ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 08:59:14.213339"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 08:59:14.233833"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 08:59:14.233354"], ["updated_at", "2014-11-05 08:59:14.233833"]]  (0.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 517391740) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 701625837) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 819504217) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 132093124) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 431685987) 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-11-05 09:01:48', '2014-11-05 09:01:48', 68463692) 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-11-05 09:01:48', '2014-11-05 09:01:48', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 09:01:48.299198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '300b1c42b77750bc14687746d955dfc6' LIMIT 1 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-11-05 09:01:48.313844"], ["extension", "png"], ["name", "Dummy"], ["token", "300b1c42b77750bc14687746d955dfc6"], ["updated_at", "2014-11-05 09:01:48.313844"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 8ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3d3aeec2391b2e1fd2f219b6c62dc7c5' LIMIT 1 SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 09:01:48.378472"], ["extension", "txt"], ["name", "footest barish"], ["token", "3d3aeec2391b2e1fd2f219b6c62dc7c5"], ["updated_at", "2014-11-05 09:01:48.378472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:48.385894"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 09:01:48.385894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:01:48.408964"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5351f664587bd6399db4611b90d6d86b' LIMIT 1 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-11-05 09:01:48.417892"], ["extension", "txt"], ["name", "Test"], ["token", "5351f664587bd6399db4611b90d6d86b"], ["updated_at", "2014-11-05 09:01:48.417892"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6f56bc23e1e5e747073c6a783873d81f' LIMIT 1 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-11-05 09:01:48.420532"], ["extension", "txt"], ["name", "Test"], ["token", "6f56bc23e1e5e747073c6a783873d81f"], ["updated_at", "2014-11-05 09:01:48.420532"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5050f18f610f634ea16256f8549c85d8' LIMIT 1 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-11-05 09:01:48.424934"], ["extension", "txt"], ["name", "Test"], ["token", "5050f18f610f634ea16256f8549c85d8"], ["updated_at", "2014-11-05 09:01:48.424934"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '201f8545e994fb8faa7519642523933a' LIMIT 1 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-11-05 09:01:48.427354"], ["extension", "txt"], ["name", "Test"], ["token", "201f8545e994fb8faa7519642523933a"], ["updated_at", "2014-11-05 09:01:48.427354"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '3966a61d39f9fb6f41401471afba77e0' LIMIT 1 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-11-05 09:01:48.430287"], ["extension", "txt"], ["name", "Test"], ["token", "3966a61d39f9fb6f41401471afba77e0"], ["updated_at", "2014-11-05 09:01:48.430287"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:01:48.436228"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 09:01:48.547360"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:48.638616"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:01:48.638351"], ["updated_at", "2014-11-05 09:01:48.638616"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 517391740) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 701625837) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 819504217) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 132093124) Fixture Insert (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-11-05 09:01:48', '2014-11-05 09:01:48', 431685987) 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-11-05 09:01:48', '2014-11-05 09:01:48', 68463692) 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-11-05 09:01:48', '2014-11-05 09:01:48', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:48', '2014-11-05 09:01:48', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:01:48', '2014-11-05 09:01:48', 948421225)  (0.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 09:01:48.948788"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:48.967696"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:01:48.967348"], ["updated_at", "2014-11-05 09:01:48.967696"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:01:49', '2014-11-05 09:01:49', 517391740) Fixture Insert (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-11-05 09:01:49', '2014-11-05 09:01:49', 701625837) Fixture Insert (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-11-05 09:01:49', '2014-11-05 09:01:49', 819504217) Fixture Insert (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-11-05 09:01:49', '2014-11-05 09:01:49', 132093124) Fixture Insert (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-11-05 09:01:49', '2014-11-05 09:01:49', 431685987) 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-11-05 09:01:49', '2014-11-05 09:01:49', 68463692) 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-11-05 09:01:49', '2014-11-05 09:01:49', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:01:49', '2014-11-05 09:01:49', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:01:49', '2014-11-05 09:01:49', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:49', '2014-11-05 09:01:49', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:49', '2014-11-05 09:01:49', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:49', '2014-11-05 09:01:49', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:01:49', '2014-11-05 09:01:49', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:01:49', '2014-11-05 09:01:49', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:01:49', '2014-11-05 09:01:49', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:01:49', '2014-11-05 09:01:49', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 09:01:49.345312"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:49.350478"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 09:01:49.350478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:01:49.353032"], ["name", "test"], ["updated_at", "2014-11-05 09:01:49.353032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 09:01:49.414925"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:01:49.419597"], ["name", "test"], ["updated_at", "2014-11-05 09:01:49.419597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:01:49.424954"], ["name", "test"], ["updated_at", "2014-11-05 09:01:49.424954"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:49.425962"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 09:01:49.425962"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:01:49.427363"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 09:01:49.427363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:01:49.431601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:01:49.436470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:01:49.440146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:01:49.443935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:02:04', '2014-11-05 09:02:04', 517391740) Fixture Insert (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-11-05 09:02:04', '2014-11-05 09:02:04', 701625837) Fixture Insert (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-11-05 09:02:04', '2014-11-05 09:02:04', 819504217) Fixture Insert (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-11-05 09:02:04', '2014-11-05 09:02:04', 132093124) Fixture Insert (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-11-05 09:02:04', '2014-11-05 09:02:04', 431685987) 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-11-05 09:02:04', '2014-11-05 09:02:04', 68463692) 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-11-05 09:02:04', '2014-11-05 09:02:04', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:02:04', '2014-11-05 09:02:04', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:02:04', '2014-11-05 09:02:04', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:02:04', '2014-11-05 09:02:04', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:02:04', '2014-11-05 09:02:04', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:02:04', '2014-11-05 09:02:04', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:02:04', '2014-11-05 09:02:04', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:02:04', '2014-11-05 09:02:04', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:02:04', '2014-11-05 09:02:04', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:02:04', '2014-11-05 09:02:04', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:02:04.198795"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (Views: 1.1ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (1.2ms) DELETE FROM "fogged_resources" 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-11-05 09:08:22', '2014-11-05 09:08:22', 517391740) Fixture Insert (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-11-05 09:08:22', '2014-11-05 09:08:22', 701625837) Fixture Insert (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-11-05 09:08:22', '2014-11-05 09:08:22', 819504217) Fixture Insert (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-11-05 09:08:22', '2014-11-05 09:08:22', 132093124) Fixture Insert (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-11-05 09:08:22', '2014-11-05 09:08:22', 431685987) 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-11-05 09:08:22', '2014-11-05 09:08:22', 68463692) 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-11-05 09:08:22', '2014-11-05 09:08:22', 591498715) Fixture Delete (0.4ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:08:22', '2014-11-05 09:08:22', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:08:22', '2014-11-05 09:08:22', 153115190) Fixture Delete (1.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:22', '2014-11-05 09:08:22', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:22', '2014-11-05 09:08:22', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:22', '2014-11-05 09:08:22', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:22', '2014-11-05 09:08:22', 779853880, 245026679, 431685987) Fixture Delete (0.3ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:08:22', '2014-11-05 09:08:22', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:08:22', '2014-11-05 09:08:22', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:08:22', '2014-11-05 09:08:22', 948421225)  (0.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:08:22.675212"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.6ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ ArgumentError: prepare called on a closed database: SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "fogged_resources"  (0.7ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 2ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:08:35', '2014-11-05 09:08:35', 517391740) Fixture Insert (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-11-05 09:08:35', '2014-11-05 09:08:35', 701625837) Fixture Insert (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-11-05 09:08:35', '2014-11-05 09:08:35', 819504217) Fixture Insert (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-11-05 09:08:35', '2014-11-05 09:08:35', 132093124) Fixture Insert (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-11-05 09:08:35', '2014-11-05 09:08:35', 431685987) 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-11-05 09:08:35', '2014-11-05 09:08:35', 68463692) 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-11-05 09:08:35', '2014-11-05 09:08:35', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:08:35', '2014-11-05 09:08:35', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:08:35', '2014-11-05 09:08:35', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:35', '2014-11-05 09:08:35', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:35', '2014-11-05 09:08:35', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:35', '2014-11-05 09:08:35', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:08:35', '2014-11-05 09:08:35', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:08:35', '2014-11-05 09:08:35', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:08:35', '2014-11-05 09:08:35', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:08:35', '2014-11-05 09:08:35', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:08:35.853434"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.7ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:09:04', '2014-11-05 09:09:04', 517391740) Fixture Insert (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-11-05 09:09:04', '2014-11-05 09:09:04', 701625837) Fixture Insert (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-11-05 09:09:04', '2014-11-05 09:09:04', 819504217) Fixture Insert (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-11-05 09:09:04', '2014-11-05 09:09:04', 132093124) Fixture Insert (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-11-05 09:09:04', '2014-11-05 09:09:04', 431685987) 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-11-05 09:09:04', '2014-11-05 09:09:04', 68463692) 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-11-05 09:09:04', '2014-11-05 09:09:04', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:09:04', '2014-11-05 09:09:04', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:09:04', '2014-11-05 09:09:04', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:09:04', '2014-11-05 09:09:04', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:09:04', '2014-11-05 09:09:04', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:09:04', '2014-11-05 09:09:04', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:09:04', '2014-11-05 09:09:04', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:09:04', '2014-11-05 09:09:04', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:09:04', '2014-11-05 09:09:04', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:09:04', '2014-11-05 09:09:04', 948421225)  (5.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:09:04.681834"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.6ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-05 09:09:04.783798"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:09:04.802620"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:09:04.802272"], ["updated_at", "2014-11-05 09:09:04.802620"]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction Completed 200 OK in 32ms (Views: 1.8ms | ActiveRecord: 3.2ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:10:26', '2014-11-05 09:10:26', 517391740) Fixture Insert (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-11-05 09:10:26', '2014-11-05 09:10:26', 701625837) Fixture Insert (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-11-05 09:10:26', '2014-11-05 09:10:26', 819504217) Fixture Insert (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-11-05 09:10:26', '2014-11-05 09:10:26', 132093124) Fixture Insert (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-11-05 09:10:26', '2014-11-05 09:10:26', 431685987) 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-11-05 09:10:26', '2014-11-05 09:10:26', 68463692) 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-11-05 09:10:26', '2014-11-05 09:10:26', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:10:26', '2014-11-05 09:10:26', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:10:26', '2014-11-05 09:10:26', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:10:26', '2014-11-05 09:10:26', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:10:26', '2014-11-05 09:10:26', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:10:26', '2014-11-05 09:10:26', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:10:26', '2014-11-05 09:10:26', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:10:26', '2014-11-05 09:10:26', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:10:26', '2014-11-05 09:10:26', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:10:26', '2014-11-05 09:10:26', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:10:26.321209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:10:26.764444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:10:27.196736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:10:27.629967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:11:03', '2014-11-05 09:11:03', 517391740) Fixture Insert (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-11-05 09:11:03', '2014-11-05 09:11:03', 701625837) Fixture Insert (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-11-05 09:11:03', '2014-11-05 09:11:03', 819504217) Fixture Insert (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-11-05 09:11:03', '2014-11-05 09:11:03', 132093124) Fixture Insert (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-11-05 09:11:03', '2014-11-05 09:11:03', 431685987) 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-11-05 09:11:03', '2014-11-05 09:11:03', 68463692) 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-11-05 09:11:03', '2014-11-05 09:11:03', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:11:03', '2014-11-05 09:11:03', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:11:03', '2014-11-05 09:11:03', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:03', '2014-11-05 09:11:03', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:03', '2014-11-05 09:11:03', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:03', '2014-11-05 09:11:03', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:03', '2014-11-05 09:11:03', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:11:03', '2014-11-05 09:11:03', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:11:03', '2014-11-05 09:11:03', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:11:03', '2014-11-05 09:11:03', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:11:03.461232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.7ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:11:03.933716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.3ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:11:04.396077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:11:04.845380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 09:11:34', '2014-11-05 09:11:34', 517391740) Fixture Insert (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-11-05 09:11:34', '2014-11-05 09:11:34', 701625837) Fixture Insert (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-11-05 09:11:34', '2014-11-05 09:11:34', 819504217) Fixture Insert (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-11-05 09:11:34', '2014-11-05 09:11:34', 132093124) Fixture Insert (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-11-05 09:11:34', '2014-11-05 09:11:34', 431685987) 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-11-05 09:11:34', '2014-11-05 09:11:34', 68463692) 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-11-05 09:11:34', '2014-11-05 09:11:34', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:11:34', '2014-11-05 09:11:34', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:11:34', '2014-11-05 09:11:34', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:34', '2014-11-05 09:11:34', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:34', '2014-11-05 09:11:34', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:34', '2014-11-05 09:11:34', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:34', '2014-11-05 09:11:34', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:11:34', '2014-11-05 09:11:34', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:11:34', '2014-11-05 09:11:34', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:11:34', '2014-11-05 09:11:34', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 68463692 [["encoding_job_id", 1234567890], ["encoding_progress", 10], ["updated_at", "2014-11-05 09:11:34.083377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:11:58', '2014-11-05 09:11:58', 517391740) Fixture Insert (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-11-05 09:11:58', '2014-11-05 09:11:58', 701625837) Fixture Insert (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-11-05 09:11:58', '2014-11-05 09:11:58', 819504217) Fixture Insert (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-11-05 09:11:58', '2014-11-05 09:11:58', 132093124) Fixture Insert (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-11-05 09:11:58', '2014-11-05 09:11:58', 431685987) 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-11-05 09:11:58', '2014-11-05 09:11:58', 68463692) 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-11-05 09:11:58', '2014-11-05 09:11:58', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:11:58', '2014-11-05 09:11:58', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:11:58', '2014-11-05 09:11:58', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:58', '2014-11-05 09:11:58', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:58', '2014-11-05 09:11:58', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:58', '2014-11-05 09:11:58', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:11:58', '2014-11-05 09:11:58', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:11:58', '2014-11-05 09:11:58', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:11:58', '2014-11-05 09:11:58', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:11:58', '2014-11-05 09:11:58', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:11:58.136890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:12:47', '2014-11-05 09:12:47', 517391740) Fixture Insert (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-11-05 09:12:47', '2014-11-05 09:12:47', 701625837) Fixture Insert (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-11-05 09:12:47', '2014-11-05 09:12:47', 819504217) Fixture Insert (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-11-05 09:12:47', '2014-11-05 09:12:47', 132093124) Fixture Insert (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-11-05 09:12:47', '2014-11-05 09:12:47', 431685987) 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-11-05 09:12:47', '2014-11-05 09:12:47', 68463692) 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-11-05 09:12:47', '2014-11-05 09:12:47', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:12:47', '2014-11-05 09:12:47', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:12:47', '2014-11-05 09:12:47', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:12:47', '2014-11-05 09:12:47', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:12:47', '2014-11-05 09:12:47', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:12:47', '2014-11-05 09:12:47', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:12:47', '2014-11-05 09:12:47', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:12:47', '2014-11-05 09:12:47', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:12:47', '2014-11-05 09:12:47', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:12:47', '2014-11-05 09:12:47', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:12:47.923198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.4ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:14:06', '2014-11-05 09:14:06', 517391740) Fixture Insert (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-11-05 09:14:06', '2014-11-05 09:14:06', 701625837) Fixture Insert (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-11-05 09:14:06', '2014-11-05 09:14:06', 819504217) Fixture Insert (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-11-05 09:14:06', '2014-11-05 09:14:06', 132093124) Fixture Insert (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-11-05 09:14:06', '2014-11-05 09:14:06', 431685987) 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-11-05 09:14:06', '2014-11-05 09:14:06', 68463692) 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-11-05 09:14:06', '2014-11-05 09:14:06', 591498715) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:14:06', '2014-11-05 09:14:06', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:14:06', '2014-11-05 09:14:06', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:14:06', '2014-11-05 09:14:06', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:14:06', '2014-11-05 09:14:06', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:14:06', '2014-11-05 09:14:06', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:14:06', '2014-11-05 09:14:06', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:14:06', '2014-11-05 09:14:06', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:14:06', '2014-11-05 09:14:06', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:14:06', '2014-11-05 09:14:06', 948421225)  (0.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SAVEPOINT active_record_1 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", 10], ["updated_at", "2014-11-05 09:14:06.958234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:27:43', '2014-11-05 09:27:43', 517391740) Fixture Insert (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-11-05 09:27:43', '2014-11-05 09:27:43', 701625837) Fixture Insert (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-11-05 09:27:43', '2014-11-05 09:27:43', 819504217) Fixture Insert (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-11-05 09:27:43', '2014-11-05 09:27:43', 132093124) Fixture Insert (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-11-05 09:27:43', '2014-11-05 09:27:43', 431685987) 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-11-05 09:27:43', '2014-11-05 09:27:43', 68463692) 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-11-05 09:27:43', '2014-11-05 09:27:43', 591498715) 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-11-05 09:27:43', '2014-11-05 09:27:43', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:27:43', '2014-11-05 09:27:43', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:27:43', '2014-11-05 09:27:43', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:27:43', '2014-11-05 09:27:43', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:27:43', '2014-11-05 09:27:43', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:27:43', '2014-11-05 09:27:43', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:27:43', '2014-11-05 09:27:43', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:27:43', '2014-11-05 09:27:43', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:27:43', '2014-11-05 09:27:43', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:27:43', '2014-11-05 09:27:43', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:11', '2014-11-05 09:28:11', 517391740) Fixture Insert (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-11-05 09:28:11', '2014-11-05 09:28:11', 701625837) Fixture Insert (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-11-05 09:28:11', '2014-11-05 09:28:11', 819504217) Fixture Insert (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-11-05 09:28:11', '2014-11-05 09:28:11', 132093124) Fixture Insert (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-11-05 09:28:11', '2014-11-05 09:28:11', 431685987) 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-11-05 09:28:11', '2014-11-05 09:28:11', 68463692) 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-11-05 09:28:11', '2014-11-05 09:28:11', 591498715) 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-11-05 09:28:11', '2014-11-05 09:28:11', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:11', '2014-11-05 09:28:11', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:11', '2014-11-05 09:28:11', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:11', '2014-11-05 09:28:11', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:11', '2014-11-05 09:28:11', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:11', '2014-11-05 09:28:11', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:11', '2014-11-05 09:28:11', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:11', '2014-11-05 09:28:11', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:11', '2014-11-05 09:28:11', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:11', '2014-11-05 09:28:11', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 09:28:11.482401"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:11.508176"], ["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-11-05 09:28:11.000000000 Z\n updated_at: 2014-11-05 09:28:11.482401000 Z\n"], ["run_at", "2014-11-05 09:28:21.490085"], ["updated_at", "2014-11-05 09:28:11.508176"]]  (0.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-05 09:28:11.736846"], ["width", 800]]  (0.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 09:28:12.196513"]]  (5.2ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:12.228897"], ["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-11-05 09:28:11.000000000 Z\n updated_at: 2014-11-05 09:28:12.196513000 Z\n"], ["run_at", "2014-11-05 09:28:22.207456"], ["updated_at", "2014-11-05 09:28:12.228897"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:18', '2014-11-05 09:28:18', 517391740) Fixture Insert (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-11-05 09:28:18', '2014-11-05 09:28:18', 701625837) Fixture Insert (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-11-05 09:28:18', '2014-11-05 09:28:18', 819504217) Fixture Insert (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-11-05 09:28:18', '2014-11-05 09:28:18', 132093124) Fixture Insert (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-11-05 09:28:18', '2014-11-05 09:28:18', 431685987) 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-11-05 09:28:18', '2014-11-05 09:28:18', 68463692) 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-11-05 09:28:18', '2014-11-05 09:28:18', 591498715) 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-11-05 09:28:18', '2014-11-05 09:28:18', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:18', '2014-11-05 09:28:18', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:18', '2014-11-05 09:28:18', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:18', '2014-11-05 09:28:18', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:18', '2014-11-05 09:28:18', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:18', '2014-11-05 09:28:18', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:18', '2014-11-05 09:28:18', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:18', '2014-11-05 09:28:18', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:18', '2014-11-05 09:28:18', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:18', '2014-11-05 09:28:18', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 42ms (Views: 1.1ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.3ms) 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]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '454948c0beedd75671863008b761e11d' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 09:28:18.227113"], ["extension", "txt"], ["name", "footest barish"], ["token", "454948c0beedd75671863008b761e11d"], ["updated_at", "2014-11-05 09:28:18.227113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:18.236268"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 09:28:18.236268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 09:28:18.349154"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:18.369507"], ["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-11-05 09:28:18.000000000 Z\n updated_at: 2014-11-05 09:28:18.349154000 Z\n"], ["run_at", "2014-11-05 09:28:28.355072"], ["updated_at", "2014-11-05 09:28:18.369507"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-05 09:28:18.604408"], ["width", 800]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.8ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 09:28:19.075231"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:19.097487"], ["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-11-05 09:28:18.000000000 Z\n updated_at: 2014-11-05 09:28:19.075231000 Z\n"], ["run_at", "2014-11-05 09:28:29.081097"], ["updated_at", "2014-11-05 09:28:19.097487"]]  (1.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.3ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 517391740) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 701625837) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 819504217) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 132093124) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 431685987) 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-11-05 09:28:19', '2014-11-05 09:28:19', 68463692) 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-11-05 09:28:19', '2014-11-05 09:28:19', 591498715) 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-11-05 09:28:19', '2014-11-05 09:28:19', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 948421225)  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd9438d4b4e2e563fd40d4d583f6e2d5e' LIMIT 1 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-11-05 09:28:19.260678"], ["extension", "txt"], ["name", "Test"], ["token", "d9438d4b4e2e563fd40d4d583f6e2d5e"], ["updated_at", "2014-11-05 09:28:19.260678"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '9ac0cd5373fb79d2ab8795bf150228b3' LIMIT 1 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-11-05 09:28:19.265270"], ["extension", "txt"], ["name", "Test"], ["token", "9ac0cd5373fb79d2ab8795bf150228b3"], ["updated_at", "2014-11-05 09:28:19.265270"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'c37cfe8fc1e7600a4a8b6fedb775781a' LIMIT 1 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-11-05 09:28:19.271675"], ["extension", "txt"], ["name", "Test"], ["token", "c37cfe8fc1e7600a4a8b6fedb775781a"], ["updated_at", "2014-11-05 09:28:19.271675"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'fbc3f7e4243600bdb362782be3c083ee' LIMIT 1 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-11-05 09:28:19.274585"], ["extension", "txt"], ["name", "Test"], ["token", "fbc3f7e4243600bdb362782be3c083ee"], ["updated_at", "2014-11-05 09:28:19.274585"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f9d8fbffbea891d2418cffe327ee2bfa' LIMIT 1 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-11-05 09:28:19.278744"], ["extension", "txt"], ["name", "Test"], ["token", "f9d8fbffbea891d2418cffe327ee2bfa"], ["updated_at", "2014-11-05 09:28:19.278744"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:28:19.295111"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) begin transaction SQL (0.5ms) 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-11-05 09:28:19.390601"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:19.412907"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:28:19.412483"], ["updated_at", "2014-11-05 09:28:19.412907"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 517391740) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 701625837) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 819504217) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 132093124) Fixture Insert (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-11-05 09:28:19', '2014-11-05 09:28:19', 431685987) 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-11-05 09:28:19', '2014-11-05 09:28:19', 68463692) 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-11-05 09:28:19', '2014-11-05 09:28:19', 591498715) 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-11-05 09:28:19', '2014-11-05 09:28:19', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:19', '2014-11-05 09:28:19', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:19', '2014-11-05 09:28:19', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'b6e0b9a60261d84dfd29d7eed177bf0d' LIMIT 1 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-11-05 09:28:19.574739"], ["extension", "png"], ["name", "Dummy"], ["token", "b6e0b9a60261d84dfd29d7eed177bf0d"], ["updated_at", "2014-11-05 09:28:19.574739"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 09:28:19.772860"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:19.788303"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:28:19.788044"], ["updated_at", "2014-11-05 09:28:19.788303"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 517391740) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 701625837) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 819504217) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 132093124) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 431685987) 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-11-05 09:28:20', '2014-11-05 09:28:20', 68463692) 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-11-05 09:28:20', '2014-11-05 09:28:20', 591498715) 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-11-05 09:28:20', '2014-11-05 09:28:20', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 09:28:20.250382"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 1.0ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (1.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-05 09:28:20.353947"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:20.373051"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 09:28:20.372778"], ["updated_at", "2014-11-05 09:28:20.373051"]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Completed 200 OK in 30ms (Views: 2.7ms | ActiveRecord: 3.8ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 517391740) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 701625837) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 819504217) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 132093124) Fixture Insert (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-11-05 09:28:20', '2014-11-05 09:28:20', 431685987) 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-11-05 09:28:20', '2014-11-05 09:28:20', 68463692) 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-11-05 09:28:20', '2014-11-05 09:28:20', 591498715) 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-11-05 09:28:20', '2014-11-05 09:28:20', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 09:28:20', '2014-11-05 09:28:20', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 09:28:20', '2014-11-05 09:28:20', 948421225)  (1.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 09:28:20.546609"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:20.551429"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 09:28:20.551429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:28:20.553897"], ["name", "test"], ["updated_at", "2014-11-05 09:28:20.553897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 09:28:20.561429"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:28:20.565902"], ["name", "test"], ["updated_at", "2014-11-05 09:28:20.565902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 09:28:20.572597"], ["name", "test"], ["updated_at", "2014-11-05 09:28:20.572597"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:20.573909"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 09:28:20.573909"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 09:28:20.574862"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 09:28:20.574862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 09:28:20.583290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 517391740) Fixture Insert (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-11-05 10:35:22', '2014-11-05 10:35:22', 701625837) Fixture Insert (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-11-05 10:35:22', '2014-11-05 10:35:22', 819504217) Fixture Insert (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-11-05 10:35:22', '2014-11-05 10:35:22', 132093124) Fixture Insert (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-11-05 10:35:22', '2014-11-05 10:35:22', 431685987) 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-11-05 10:35:22', '2014-11-05 10:35:22', 68463692) 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-11-05 10:35:22', '2014-11-05 10:35:22', 591498715) 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-11-05 10:35:22', '2014-11-05 10:35:22', 538821867) Fixture Delete (0.4ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 153115190) Fixture Delete (0.9ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:22', '2014-11-05 10:35:22', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:22', '2014-11-05 10:35:22', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:22', '2014-11-05 10:35:22', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:22', '2014-11-05 10:35:22', 779853880, 245026679, 431685987) Fixture Delete (0.4ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:35:22', '2014-11-05 10:35:22', 948421225)  (0.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 10:35:23.025840"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:23.041010"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 10:35:23.041010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:35:23.043953"], ["name", "test"], ["updated_at", "2014-11-05 10:35:23.043953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 10:35:23.147327"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:23.168998"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:35:23.168436"], ["updated_at", "2014-11-05 10:35:23.168998"]]  (0.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 517391740) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 701625837) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 819504217) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 132093124) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 431685987) 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-11-05 10:35:23', '2014-11-05 10:35:23', 68463692) 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-11-05 10:35:23', '2014-11-05 10:35:23', 591498715) 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-11-05 10:35:23', '2014-11-05 10:35:23', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bb1d7b7474922c175dc7f121136eab30' LIMIT 1 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-11-05 10:35:23.576416"], ["extension", "png"], ["name", "Dummy"], ["token", "bb1d7b7474922c175dc7f121136eab30"], ["updated_at", "2014-11-05 10:35:23.576416"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 10:35:23.630684"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:35:23.635000"], ["name", "test"], ["updated_at", "2014-11-05 10:35:23.635000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:35:23.639471"], ["name", "test"], ["updated_at", "2014-11-05 10:35:23.639471"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:23.640442"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 10:35:23.640442"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:23.641824"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 10:35:23.641824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 10:35:23.649178"], ["width", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-05 10:35:23.744808"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:23.765790"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:35:23.765464"], ["updated_at", "2014-11-05 10:35:23.765790"]]  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Completed 200 OK in 32ms (Views: 1.9ms | ActiveRecord: 2.9ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 10:35:23', '2014-11-05 10:35:23', 517391740) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 701625837) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 819504217) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 132093124) Fixture Insert (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-11-05 10:35:23', '2014-11-05 10:35:23', 431685987) 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-11-05 10:35:23', '2014-11-05 10:35:23', 68463692) 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-11-05 10:35:23', '2014-11-05 10:35:23', 591498715) 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-11-05 10:35:23', '2014-11-05 10:35:23', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 153115190) Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:23', '2014-11-05 10:35:23', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:35:23', '2014-11-05 10:35:23', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '8729ef125b1c90f1e3671c46ff305540' LIMIT 1 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-11-05 10:35:23.956045"], ["extension", "txt"], ["name", "Test"], ["token", "8729ef125b1c90f1e3671c46ff305540"], ["updated_at", "2014-11-05 10:35:23.956045"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'efb7b5febc21c401c558b24f1969db8f' LIMIT 1 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-11-05 10:35:23.959137"], ["extension", "txt"], ["name", "Test"], ["token", "efb7b5febc21c401c558b24f1969db8f"], ["updated_at", "2014-11-05 10:35:23.959137"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '90fb130074763918d6d826f6d74f2e00' LIMIT 1 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-11-05 10:35:23.965194"], ["extension", "txt"], ["name", "Test"], ["token", "90fb130074763918d6d826f6d74f2e00"], ["updated_at", "2014-11-05 10:35:23.965194"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'bfc417770c3896ea1b93de70fb33c5dc' LIMIT 1 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-11-05 10:35:23.967735"], ["extension", "txt"], ["name", "Test"], ["token", "bfc417770c3896ea1b93de70fb33c5dc"], ["updated_at", "2014-11-05 10:35:23.967735"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'e6144e4899c165c1c149119c9d0e23a2' LIMIT 1 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-11-05 10:35:23.971095"], ["extension", "txt"], ["name", "Test"], ["token", "e6144e4899c165c1c149119c9d0e23a2"], ["updated_at", "2014-11-05 10:35:23.971095"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 10:35:23.978055"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) begin transaction 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-11-05 10:35:24.132921"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:24.149402"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:35:24.149070"], ["updated_at", "2014-11-05 10:35:24.149402"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-05 10:35:24', '2014-11-05 10:35:24', 517391740) Fixture Insert (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-11-05 10:35:24', '2014-11-05 10:35:24', 701625837) Fixture Insert (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-11-05 10:35:24', '2014-11-05 10:35:24', 819504217) Fixture Insert (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-11-05 10:35:24', '2014-11-05 10:35:24', 132093124) Fixture Insert (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-11-05 10:35:24', '2014-11-05 10:35:24', 431685987) 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-11-05 10:35:24', '2014-11-05 10:35:24', 68463692) 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-11-05 10:35:24', '2014-11-05 10:35:24', 591498715) 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-11-05 10:35:24', '2014-11-05 10:35:24', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:35:24', '2014-11-05 10:35:24', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:35:24', '2014-11-05 10:35:24', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:24', '2014-11-05 10:35:24', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:24', '2014-11-05 10:35:24', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:24', '2014-11-05 10:35:24', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:24', '2014-11-05 10:35:24', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:35:24', '2014-11-05 10:35:24', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:35:24', '2014-11-05 10:35:24', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:35:24', '2014-11-05 10:35:24', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 10:35:24.419654"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:24.440294"], ["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-11-05 10:35:24.000000000 Z\n updated_at: 2014-11-05 10:35:24.419654000 Z\n"], ["run_at", "2014-11-05 10:35:34.424088"], ["updated_at", "2014-11-05 10:35:24.440294"]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-05 10:35:24.675140"], ["width", 800]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 10:35:25.144382"]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:25.166922"], ["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-11-05 10:35:24.000000000 Z\n updated_at: 2014-11-05 10:35:25.144382000 Z\n"], ["run_at", "2014-11-05 10:35:35.152111"], ["updated_at", "2014-11-05 10:35:25.166922"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 10:35:25', '2014-11-05 10:35:25', 517391740) Fixture Insert (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-11-05 10:35:25', '2014-11-05 10:35:25', 701625837) 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-11-05 10:35:25', '2014-11-05 10:35:25', 819504217) Fixture Insert (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-11-05 10:35:25', '2014-11-05 10:35:25', 132093124) Fixture Insert (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-11-05 10:35:25', '2014-11-05 10:35:25', 431685987) 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-11-05 10:35:25', '2014-11-05 10:35:25', 68463692) 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-11-05 10:35:25', '2014-11-05 10:35:25', 591498715) 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-11-05 10:35:25', '2014-11-05 10:35:25', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:35:25', '2014-11-05 10:35:25', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:35:25', '2014-11-05 10:35:25', 153115190) Fixture Delete (0.2ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:25', '2014-11-05 10:35:25', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:25', '2014-11-05 10:35:25', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:25', '2014-11-05 10:35:25', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:35:25', '2014-11-05 10:35:25', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:35:25', '2014-11-05 10:35:25', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:35:25', '2014-11-05 10:35:25', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:35:25', '2014-11-05 10:35:25', 948421225)  (1.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 10:35:25.346343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.3ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) 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]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd417693945991e9bf5418e2b311c8b21' LIMIT 1 SQL (0.2ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 10:35:25.375952"], ["extension", "txt"], ["name", "footest barish"], ["token", "d417693945991e9bf5418e2b311c8b21"], ["updated_at", "2014-11-05 10:35:25.375952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:35:25.378344"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 10:35:25.378344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 517391740) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 701625837) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 819504217) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 132093124) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 431685987) 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-11-05 10:43:37', '2014-11-05 10:43:37', 68463692) 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-11-05 10:43:37', '2014-11-05 10:43:37', 591498715) 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-11-05 10:43:37', '2014-11-05 10:43:37', 538821867) Fixture Delete (0.3ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 153115190) Fixture Delete (0.8ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 779853880, 245026679, 431685987) Fixture Delete (0.4ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 948421225)  (0.9ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-05 10:43:37.226843"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:37.242897"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-05 10:43:37.242897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:43:37.245149"], ["name", "test"], ["updated_at", "2014-11-05 10:43:37.245149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 26ms (Views: 1.1ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms) 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a4677400d09e152aa6357ac29d034d6f' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-05 10:43:37.297801"], ["extension", "txt"], ["name", "footest barish"], ["token", "a4677400d09e152aa6357ac29d034d6f"], ["updated_at", "2014-11-05 10:43:37.297801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:37.304654"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-05 10:43:37.304654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '38d1d5235a38aefffe3335483125fbba' LIMIT 1 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-11-05 10:43:37.326777"], ["extension", "txt"], ["name", "Test"], ["token", "38d1d5235a38aefffe3335483125fbba"], ["updated_at", "2014-11-05 10:43:37.326777"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'f812ffe4d5f8d2ed101095f410150959' LIMIT 1 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-11-05 10:43:37.329728"], ["extension", "txt"], ["name", "Test"], ["token", "f812ffe4d5f8d2ed101095f410150959"], ["updated_at", "2014-11-05 10:43:37.329728"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'be1cc2f6bf880b2a0ff350d6d37280ac' LIMIT 1 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-11-05 10:43:37.334034"], ["extension", "txt"], ["name", "Test"], ["token", "be1cc2f6bf880b2a0ff350d6d37280ac"], ["updated_at", "2014-11-05 10:43:37.334034"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '92ae40368d83eb87ad29d19ae6542de4' LIMIT 1 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-11-05 10:43:37.336388"], ["extension", "txt"], ["name", "Test"], ["token", "92ae40368d83eb87ad29d19ae6542de4"], ["updated_at", "2014-11-05 10:43:37.336388"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '868ae300c2ce1411805b4513f325fbf2' LIMIT 1 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-11-05 10:43:37.339497"], ["extension", "txt"], ["name", "Test"], ["token", "868ae300c2ce1411805b4513f325fbf2"], ["updated_at", "2014-11-05 10:43:37.339497"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 10:43:37.346276"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (1.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction SQL (0.7ms) 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-11-05 10:43:37.455763"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:37.477511"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:43:37.476745"], ["updated_at", "2014-11-05 10:43:37.477511"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" 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-11-05 10:43:37', '2014-11-05 10:43:37', 517391740) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 701625837) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 819504217) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 132093124) Fixture Insert (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-11-05 10:43:37', '2014-11-05 10:43:37', 431685987) 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-11-05 10:43:37', '2014-11-05 10:43:37', 68463692) 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-11-05 10:43:37', '2014-11-05 10:43:37', 591498715) 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-11-05 10:43:37', '2014-11-05 10:43:37', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:37', '2014-11-05 10:43:37', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:43:37', '2014-11-05 10:43:37', 948421225)  (0.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-05 10:43:37.641858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 10:43:37.735746"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:37.759543"], ["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-11-05 10:43:37.000000000 Z\n updated_at: 2014-11-05 10:43:37.735746000 Z\n"], ["run_at", "2014-11-05 10:43:47.739514"], ["updated_at", "2014-11-05 10:43:37.759543"]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-05 10:43:37.984346"], ["width", 800]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-05 10:43:38.438986"]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:38.469703"], ["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-11-05 10:43:37.000000000 Z\n updated_at: 2014-11-05 10:43:38.438986000 Z\n"], ["run_at", "2014-11-05 10:43:48.447492"], ["updated_at", "2014-11-05 10:43:38.469703"]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 517391740) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 701625837) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 819504217) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 132093124) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 431685987) 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-11-05 10:43:38', '2014-11-05 10:43:38', 68463692) 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-11-05 10:43:38', '2014-11-05 10:43:38', 591498715) 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-11-05 10:43:38', '2014-11-05 10:43:38', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-05 10:43:38.627981"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-05 10:43:38.788025"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:38.804736"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:43:38.804401"], ["updated_at", "2014-11-05 10:43:38.804736"]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Completed 200 OK in 27ms (Views: 2.2ms | ActiveRecord: 3.1ms)  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 517391740) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 701625837) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 819504217) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 132093124) Fixture Insert (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-11-05 10:43:38', '2014-11-05 10:43:38', 431685987) 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-11-05 10:43:38', '2014-11-05 10:43:38', 68463692) 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-11-05 10:43:38', '2014-11-05 10:43:38', 591498715) 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-11-05 10:43:38', '2014-11-05 10:43:38', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:38', '2014-11-05 10:43:38', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:43:38', '2014-11-05 10:43:38', 948421225)  (1.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 42ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd114c770e89bdce133b92159f930de5c' LIMIT 1 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-11-05 10:43:39.031024"], ["extension", "png"], ["name", "Dummy"], ["token", "d114c770e89bdce133b92159f930de5c"], ["updated_at", "2014-11-05 10:43:39.031024"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 2ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-05 10:43:39.141784"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:39.162646"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-05 10:43:39.162356"], ["updated_at", "2014-11-05 10:43:39.162646"]]  (0.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.5ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-05 10:43:39', '2014-11-05 10:43:39', 517391740) Fixture Insert (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-11-05 10:43:39', '2014-11-05 10:43:39', 701625837) Fixture Insert (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-11-05 10:43:39', '2014-11-05 10:43:39', 819504217) Fixture Insert (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-11-05 10:43:39', '2014-11-05 10:43:39', 132093124) Fixture Insert (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-11-05 10:43:39', '2014-11-05 10:43:39', 431685987) 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-11-05 10:43:39', '2014-11-05 10:43:39', 68463692) 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-11-05 10:43:39', '2014-11-05 10:43:39', 591498715) 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-11-05 10:43:39', '2014-11-05 10:43:39', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-05 10:43:39', '2014-11-05 10:43:39', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-05 10:43:39', '2014-11-05 10:43:39', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:39', '2014-11-05 10:43:39', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:39', '2014-11-05 10:43:39', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:39', '2014-11-05 10:43:39', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-05 10:43:39', '2014-11-05 10:43:39', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-05 10:43:39', '2014-11-05 10:43:39', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-05 10:43:39', '2014-11-05 10:43:39', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-05 10:43:39', '2014-11-05 10:43:39', 948421225)  (5.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-05 10:43:39.563969"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:43:39.570025"], ["name", "test"], ["updated_at", "2014-11-05 10:43:39.570025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-05 10:43:39.576512"], ["name", "test"], ["updated_at", "2014-11-05 10:43:39.576512"]] SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:39.577680"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-05 10:43:39.577680"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-05 10:43:39.578707"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-05 10:43:39.578707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "fogged_resources" Fixture Insert (0.4ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 517391740) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 701625837) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 819504217) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 132093124) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 431685987) 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-11-06 08:23:01', '2014-11-06 08:23:01', 68463692) 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-11-06 08:23:01', '2014-11-06 08:23:01', 591498715) 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-11-06 08:23:01', '2014-11-06 08:23:01', 538821867) Fixture Delete (0.5ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 153115190) Fixture Delete (0.9ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 779853880, 245026679, 431685987) Fixture Delete (0.4ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 948421225)  (0.9ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a786246a11baeaf3e4de37ba8e24507b' LIMIT 1 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-11-06 08:23:01.438053"], ["extension", "txt"], ["name", "Test"], ["token", "a786246a11baeaf3e4de37ba8e24507b"], ["updated_at", "2014-11-06 08:23:01.438053"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '637e1fb9782291a8ae2a6db4a6606dc0' LIMIT 1 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-11-06 08:23:01.443620"], ["extension", "txt"], ["name", "Test"], ["token", "637e1fb9782291a8ae2a6db4a6606dc0"], ["updated_at", "2014-11-06 08:23:01.443620"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd82c75517baa589d3d3802b24ef42433' LIMIT 1 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-11-06 08:23:01.450226"], ["extension", "txt"], ["name", "Test"], ["token", "d82c75517baa589d3d3802b24ef42433"], ["updated_at", "2014-11-06 08:23:01.450226"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '494925f1e1ce57dd1063b63b606ebcd6' LIMIT 1 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-11-06 08:23:01.453690"], ["extension", "txt"], ["name", "Test"], ["token", "494925f1e1ce57dd1063b63b606ebcd6"], ["updated_at", "2014-11-06 08:23:01.453690"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1be61a8734576f2a1dc365602d05d62e' LIMIT 1 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-11-06 08:23:01.457775"], ["extension", "txt"], ["name", "Test"], ["token", "1be61a8734576f2a1dc365602d05d62e"], ["updated_at", "2014-11-06 08:23:01.457775"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-06 08:23:01.481415"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-06 08:23:01.589816"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:01.612897"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:23:01.612591"], ["updated_at", "2014-11-06 08:23:01.612897"]]  (1.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 517391740) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 701625837) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 819504217) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 132093124) Fixture Insert (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-11-06 08:23:01', '2014-11-06 08:23:01', 431685987) 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-11-06 08:23:01', '2014-11-06 08:23:01', 68463692) 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-11-06 08:23:01', '2014-11-06 08:23:01', 591498715) 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-11-06 08:23:01', '2014-11-06 08:23:01', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:01', '2014-11-06 08:23:01', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:23:01', '2014-11-06 08:23:01', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-06 08:23:01.819173"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:23:01.824087"], ["name", "test"], ["updated_at", "2014-11-06 08:23:01.824087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:23:01.828460"], ["name", "test"], ["updated_at", "2014-11-06 08:23:01.828460"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:01.829311"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-06 08:23:01.829311"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:01.830259"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-06 08:23:01.830259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-06 08:23:01.936262"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:01.955264"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:23:01.954960"], ["updated_at", "2014-11-06 08:23:01.955264"]]  (1.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 517391740) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 701625837) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 819504217) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 132093124) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 431685987) 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-11-06 08:23:02', '2014-11-06 08:23:02', 68463692) 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-11-06 08:23:02', '2014-11-06 08:23:02', 591498715) 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-11-06 08:23:02', '2014-11-06 08:23:02', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 948421225)  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-06 08:23:02.331558"], ["width", 800]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.7ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-06 08:23:02.422005"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:02.441963"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:23:02.441617"], ["updated_at", "2014-11-06 08:23:02.441963"]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Completed 200 OK in 31ms (Views: 2.2ms | ActiveRecord: 3.2ms)  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.5ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 517391740) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 701625837) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 819504217) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 132093124) Fixture Insert (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-11-06 08:23:02', '2014-11-06 08:23:02', 431685987) 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-11-06 08:23:02', '2014-11-06 08:23:02', 68463692) 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-11-06 08:23:02', '2014-11-06 08:23:02', 591498715) 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-11-06 08:23:02', '2014-11-06 08:23:02', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:23:02', '2014-11-06 08:23:02', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:23:02', '2014-11-06 08:23:02', 948421225)  (1.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-06 08:23:02.610247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-06 08:23:02.622044"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:02.627521"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-06 08:23:02.627521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:23:02.629876"], ["name", "test"], ["updated_at", "2014-11-06 08:23:02.629876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.4ms) Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) 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]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '7a9d4e9d155a8c27be4a6b9e4c9246f3' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-06 08:23:02.658296"], ["extension", "txt"], ["name", "footest barish"], ["token", "7a9d4e9d155a8c27be4a6b9e4c9246f3"], ["updated_at", "2014-11-06 08:23:02.658296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:02.660687"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-06 08:23:02.660687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '1bceea2ff92f54e1952e231996d4c131' LIMIT 1 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-11-06 08:23:02.727059"], ["extension", "png"], ["name", "Dummy"], ["token", "1bceea2ff92f54e1952e231996d4c131"], ["updated_at", "2014-11-06 08:23:02.727059"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 2ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 1ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-06 08:23:02.838301"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:02.857493"], ["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-11-06 08:23:02.000000000 Z\n updated_at: 2014-11-06 08:23:02.838301000 Z\n"], ["run_at", "2014-11-06 08:23:12.841688"], ["updated_at", "2014-11-06 08:23:02.857493"]]  (1.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-06 08:23:03.088766"], ["width", 800]]  (0.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-06 08:23:03.543304"]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:23:03.566018"], ["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-11-06 08:23:02.000000000 Z\n updated_at: 2014-11-06 08:23:03.543304000 Z\n"], ["run_at", "2014-11-06 08:23:13.551239"], ["updated_at", "2014-11-06 08:23:03.566018"]]  (0.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" 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-11-06 08:42:41', '2014-11-06 08:42:41', 517391740) Fixture Insert (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-11-06 08:42:41', '2014-11-06 08:42:41', 701625837) Fixture Insert (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-11-06 08:42:41', '2014-11-06 08:42:41', 819504217) Fixture Insert (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-11-06 08:42:41', '2014-11-06 08:42:41', 132093124) Fixture Insert (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-11-06 08:42:41', '2014-11-06 08:42:41', 431685987) 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-11-06 08:42:41', '2014-11-06 08:42:41', 68463692) 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-11-06 08:42:41', '2014-11-06 08:42:41', 591498715) 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-11-06 08:42:41', '2014-11-06 08:42:41', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:42:41', '2014-11-06 08:42:41', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:42:41', '2014-11-06 08:42:41', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:41', '2014-11-06 08:42:41', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:41', '2014-11-06 08:42:41', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:41', '2014-11-06 08:42:41', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:41', '2014-11-06 08:42:41', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:42:41', '2014-11-06 08:42:41', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:42:41', '2014-11-06 08:42:41', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:42:41', '2014-11-06 08:42:41', 948421225)  (5.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies ------------------------------------------------------------------------ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]] Completed 200 OK in 37ms (Views: 1.4ms | ActiveRecord: 0.5ms) Movie Load (0.2ms) SELECT "movies".* FROM "movies" 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]] 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]] 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie --------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301"} Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 0.3ms) 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]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name ----------------------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '12863bae7377fb3c93db3301e7abe4a5' LIMIT 1 SQL (0.3ms) INSERT INTO "fogged_resources" ("content_type", "created_at", "extension", "name", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content_type", "text/plain"], ["created_at", "2014-11-06 08:42:41.174624"], ["extension", "txt"], ["name", "footest barish"], ["token", "12863bae7377fb3c93db3301e7abe4a5"], ["updated_at", "2014-11-06 08:42:41.174624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:41.181839"], ["movie_id", 624739301], ["resource_id", 819504218], ["updated_at", "2014-11-06 08:42:41.181839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301) 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]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_for_movies -------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Movie Load (0.0ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]] 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]] 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]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679) 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]] 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]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id ------------------------------------------------------------------------------- Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]] Processing by Fogged::ResourcesController#index as HTML Parameters: {"type"=>"movie", "type_id"=>"1234567890"} Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (1234567890) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_processing ----------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-06 08:42:41.284878"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:41.305717"], ["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-11-06 08:42:41.000000000 Z\n updated_at: 2014-11-06 08:42:41.284878000 Z\n"], ["run_at", "2014-11-06 08:42:51.290188"], ["updated_at", "2014-11-06 08:42:41.305717"]]  (0.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.6ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_success -------------------------------------------------------------------------------- Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction 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-11-06 08:42:41.536506"], ["width", 800]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_unknown -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.4ms) begin transaction -------------------------------------------------------------------------------- Fogged::Resources::ZencoderPollJobTest: test_should_poll_job_with_status_waiting -------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 538821867 [["encoding_progress", 55], ["updated_at", "2014-11-06 08:42:41.994314"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.013579"], ["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-11-06 08:42:41.000000000 Z\n updated_at: 2014-11-06 08:42:41.994314000 Z\n"], ["run_at", "2014-11-06 08:42:51.999589"], ["updated_at", "2014-11-06 08:42:42.013579"]]  (0.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 538821867]]  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 517391740) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 701625837) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 819504217) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 132093124) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 431685987) 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-11-06 08:42:42', '2014-11-06 08:42:42', 68463692) 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-11-06 08:42:42', '2014-11-06 08:42:42', 591498715) 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-11-06 08:42:42', '2014-11-06 08:42:42', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 948421225)  (1.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------- Fogged::Resources::EncoderTest: test_should_aws_encoder ------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id -------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"1234567890", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerUpdateTest: test_should_update_resource ------------------------------------------------------------------ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#update as HTML Parameters: {"id"=>"591498715", "resource"=>{"name"=>"Update"}} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = 591498715 [["name", "Update"], ["updated_at", "2014-11-06 08:42:42.193230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.5ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- MovieTest: test_should_not_save_movie_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]] Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 431685987 [["updated_at", "2014-11-06 08:42:42.204402"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- MovieTest: test_should_save_movie_with_no_resources ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:42:42.214139"], ["name", "test"], ["updated_at", "2014-11-06 08:42:42.214139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- MovieTest: test_should_save_movie_with_several_resources -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "movies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:42:42.218890"], ["name", "test"], ["updated_at", "2014-11-06 08:42:42.218890"]] SQL (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.219804"], ["movie_id", 980190963], ["resource_id", 701625837], ["updated_at", "2014-11-06 08:42:42.219804"]] SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("created_at", "movie_id", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.220646"], ["movie_id", 980190963], ["resource_id", 819504217], ["updated_at", "2014-11-06 08:42:42.220646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Fogged::ResourceTest: test_resource_should_be_valid ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'a3e05d7115f06c6e9e0559c36a55a101' LIMIT 1 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-11-06 08:42:42.225165"], ["extension", "txt"], ["name", "Test"], ["token", "a3e05d7115f06c6e9e0559c36a55a101"], ["updated_at", "2014-11-06 08:42:42.225165"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd9176395483bebfd497ad0364396b7ff' LIMIT 1 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-11-06 08:42:42.227834"], ["extension", "txt"], ["name", "Test"], ["token", "d9176395483bebfd497ad0364396b7ff"], ["updated_at", "2014-11-06 08:42:42.227834"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 819504218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '6404b868e5d3ff7fe5719770417a7f36' LIMIT 1 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-11-06 08:42:42.233275"], ["extension", "txt"], ["name", "Test"], ["token", "6404b868e5d3ff7fe5719770417a7f36"], ["updated_at", "2014-11-06 08:42:42.233275"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- Fogged::ResourceTest: test_resource_should_have_an_upload_url -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd835408391e9ef864c2721180d2d584e' LIMIT 1 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-11-06 08:42:42.236005"], ["extension", "txt"], ["name", "Test"], ["token", "d835408391e9ef864c2721180d2d584e"], ["updated_at", "2014-11-06 08:42:42.236005"], ["uploading", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Fogged::ResourceTest: test_resource_should_have_an_url ------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = 'd5793ef2a12b7fdfbe0a2190c90f84c8' LIMIT 1 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-11-06 08:42:42.239374"], ["extension", "txt"], ["name", "Test"], ["token", "d5793ef2a12b7fdfbe0a2190c90f84c8"], ["updated_at", "2014-11-06 08:42:42.239374"], ["uploading", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_image -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-06 08:42:42.246238"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- Fogged::ResourceTest: test_should_process_resource_video -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled ------------------------------------------------------------------------------ Fogged::Resource Load (1.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) begin transaction 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-11-06 08:42:42.342107"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.365640"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:42:42.365315"], ["updated_at", "2014-11-06 08:42:42.365640"]]  (1.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 517391740) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 701625837) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 819504217) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 132093124) Fixture Insert (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-11-06 08:42:42', '2014-11-06 08:42:42', 431685987) 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-11-06 08:42:42', '2014-11-06 08:42:42', 68463692) 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-11-06 08:42:42', '2014-11-06 08:42:42', 591498715) 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-11-06 08:42:42', '2014-11-06 08:42:42', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:42', '2014-11-06 08:42:42', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:42:42', '2014-11-06 08:42:42', 948421225)  (1.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- ImageTest: test_should_not_save_image_with_uploading_resource ------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "fogged_resources" SET "updated_at" = ?, "uploading" = ? WHERE "fogged_resources"."id" = 701625837 [["updated_at", "2014-11-06 08:42:42.521891"], ["uploading", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ImageTest: test_should_save_image_with_uploaded_resource -------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "resource_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.528116"], ["name", "test"], ["resource_id", 701625837], ["updated_at", "2014-11-06 08:42:42.528116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ImageTest: test_should_save_image_without_resource --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "images" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 08:42:42.531114"], ["name", "test"], ["updated_at", "2014-11-06 08:42:42.531114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Fogged::ResourcesControllerCreateTest: test_should_create_resource ------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}  (0.0ms) SAVEPOINT active_record_1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = '5c5321da139cc2ea9f327ac31ff404a7' LIMIT 1 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-11-06 08:42:42.539872"], ["extension", "png"], ["name", "Dummy"], ["token", "5c5321da139cc2ea9f327ac31ff404a7"], ["updated_at", "2014-11-06 08:42:42.539872"], ["uploading", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1 Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename --------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 3ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type -------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}} Completed 400 Bad Request in 1ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name -----------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}} Completed 400 Bad Request in 0ms  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter -------------------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#create as HTML Completed 400 Bad Request in 0ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- FoggedTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_encode_video_file ---------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) begin transaction 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-11-06 08:42:42.718926"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:42.733471"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:42:42.733068"], ["updated_at", "2014-11-06 08:42:42.733471"]]  (1.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.6ms) begin transaction -------------------------------------------------------------------- Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file -------------------------------------------------------------------- Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Fogged::Resource Load (0.9ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 517391740) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 701625837) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 819504217) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 132093124) 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 4', 'qwertzuiop4', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 431685987) 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-11-06 08:42:43', '2014-11-06 08:42:43', 68463692) 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-11-06 08:42:43', '2014-11-06 08:42:43', 591498715) 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-11-06 08:42:43', '2014-11-06 08:42:43', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 579229346) Fixture Insert (0.0ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 624739301) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 245026679) Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 948421225)  (5.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id ---------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"1234567890"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_image_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_resource -------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"701625837"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerShowTest: test_should_show_video_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Processing by Fogged::ResourcesController#show as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]] Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "fogged_resources" SET "height" = ?, "updated_at" = ?, "width" = ? WHERE "fogged_resources"."id" = 591498715 [["height", 600], ["updated_at", "2014-11-06 08:42:43.224484"], ["width", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms) Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled ------------------------------------------------------------------------------------------------ Fogged::Resource Load (0.7ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"68463692"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.1ms) begin transaction 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-11-06 08:42:43.317836"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delayed_jobs" ("created_at", "handler", "run_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-06 08:42:43.333408"], ["handler", "--- !ruby/struct:Fogged::Resources::ZencoderPollJob\nresource_id: 68463692\n"], ["run_at", "2014-11-06 08:42:43.333066"], ["updated_at", "2014-11-06 08:42:43.333408"]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction Completed 200 OK in 25ms (Views: 2.1ms | ActiveRecord: 3.0ms)  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 68463692]]  (0.6ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id ---------------------------------------------------------------------------------------- Processing by Fogged::ResourcesController#confirm as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "fogged_resources" Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 517391740) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 701625837) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 819504217) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 132093124) Fixture Insert (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-11-06 08:42:43', '2014-11-06 08:42:43', 431685987) 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-11-06 08:42:43', '2014-11-06 08:42:43', 68463692) 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-11-06 08:42:43', '2014-11-06 08:42:43', 591498715) 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-11-06 08:42:43', '2014-11-06 08:42:43', 538821867) Fixture Delete (0.1ms) DELETE FROM "images" Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 579229346) Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 153115190) Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources" Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 419883833, 624739301, 701625837) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 849405871, 624739301, 819504217) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 98413728, 245026679, 784085492) Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2014-11-06 08:42:43', '2014-11-06 08:42:43', 779853880, 245026679, 431685987) Fixture Delete (0.1ms) DELETE FROM "movies" Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 624739301) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 245026679) Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2014-11-06 08:42:43', '2014-11-06 08:42:43', 948421225)  (0.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource -------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"591498715"} Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 591498715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id ---------------------------------------------------------------------------------------- Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 591498715]]  (0.1ms) SELECT COUNT(*) FROM "fogged_resources" Processing by Fogged::ResourcesController#destroy as HTML Parameters: {"id"=>"123456"} Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]] Completed 404 Not Found in 1ms  (0.0ms) SELECT COUNT(*) FROM "fogged_resources"  (0.0ms) rollback transaction