test/dummy/log/test.log in extface-0.3.0c vs test/dummy/log/test.log in extface-0.3.0

- old
+ new

@@ -5209,720 +5209,5 @@ ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction Completed in 7ms - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (199.6ms) DROP TABLE "extface_devices" -  (115.5ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime)  -  (106.3ms) DROP TABLE "extface_drivers" -  (107.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  -  (106.3ms) DROP TABLE "extface_jobs" -  (106.9ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  -  (0.2ms) select sqlite_version(*) -  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") -  (107.7ms) DROP TABLE "extface_serial_configs" -  (131.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  -  (131.0ms) DROP TABLE "shops" -  (132.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  -  (0.3ms) SELECT version FROM "schema_migrations" -  (0.1ms) begin transaction - Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_devices" - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962, 'Shop', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374, 'Shop', 980190962, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_drivers" - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 412842077) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_jobs" - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962) - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374) - Fixture Delete (0.1ms) DELETE FROM "shops" - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962) - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374) -  (130.4ms) commit transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------- - Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#create as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-17 22:18:54.644998"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-17 22:18:54.644998"]] - SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-17 22:18:54.652262"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "3c131956f1b49b7709ad9403e385727f"], ["updated_at", "2014-07-17 22:18:54.652262"], ["uuid", "3c131956f1b49b7709ad9403e385727f"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 25ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ----------------------------------------------------------- -Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#destroy as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - SQL (0.1ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Completed 500 Internal Server Error in 2ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ----------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#edit as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 11ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------------------------------------ -Extface::DevicesControllerTest: test_should_get_index ------------------------------------------------------ - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#index as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] -Completed 500 Internal Server Error in 7ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#new as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -Completed 500 Internal Server Error in 3ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction -------------------------------------------------------- -Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#show as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 4ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#update as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.0ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-17 22:18:54.713439"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 5ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------- -Extface::JobsControllerTest: test_should_show_job -------------------------------------------------- - Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------ -ExtfaceTest: test_truth ------------------------ -  (0.0ms) rollback transaction - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (111.5ms) DROP TABLE "extface_devices" -  (107.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime)  -  (106.4ms) DROP TABLE "extface_drivers" -  (115.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  -  (114.6ms) DROP TABLE "extface_jobs" -  (107.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  -  (0.3ms) select sqlite_version(*) -  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") -  (114.6ms) DROP TABLE "extface_serial_configs" -  (131.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  -  (139.3ms) DROP TABLE "shops" -  (123.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  -  (0.3ms) SELECT version FROM "schema_migrations" -  (0.1ms) begin transaction - Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_devices" - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962, 'Shop', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374, 'Shop', 980190962, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_drivers" - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 412842077) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_jobs" - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962) - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374) - Fixture Delete (0.1ms) DELETE FROM "shops" - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962) - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374) -  (126.1ms) commit transaction -  (0.1ms) begin transaction -------------------------------------------------- -Extface::JobsControllerTest: test_should_show_job -------------------------------------------------- - Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------- - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#create as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 10:32:32.496777"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 10:32:32.496777"]] - SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-18 10:32:32.503470"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "2e01a96126669b56d56b9f1a2ff03628"], ["updated_at", "2014-07-18 10:32:32.503470"], ["uuid", "2e01a96126669b56d56b9f1a2ff03628"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 23ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------------- -Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#destroy as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Completed 500 Internal Server Error in 2ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#edit as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 20ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------------------------------------ -Extface::DevicesControllerTest: test_should_get_index ------------------------------------------------------ - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#index as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] -Completed 500 Internal Server Error in 6ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#new as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -Completed 500 Internal Server Error in 3ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------------- -Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#show as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 4ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#update as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-18 10:32:32.565471"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 6ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------ -ExtfaceTest: test_truth ------------------------ -  (0.0ms) rollback transaction - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (191.0ms) DROP TABLE "extface_devices" -  (115.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime)  -  (106.4ms) DROP TABLE "extface_drivers" -  (107.0ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  -  (107.6ms) DROP TABLE "extface_jobs" -  (107.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  -  (0.1ms) select sqlite_version(*) -  (107.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") -  (114.5ms) DROP TABLE "extface_serial_configs" -  (115.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  -  (139.2ms) DROP TABLE "shops" -  (123.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  -  (0.3ms) SELECT version FROM "schema_migrations" -  (0.1ms) begin transaction - Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_devices" - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962, 'Shop', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374, 'Shop', 980190962, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_drivers" - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 412842077) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_jobs" - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962) - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374) - Fixture Delete (0.1ms) DELETE FROM "shops" - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962) - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374) -  (127.0ms) commit transaction -  (0.1ms) begin transaction -------------------------------------------------- -Extface::JobsControllerTest: test_should_show_job -------------------------------------------------- - Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------ -ExtfaceTest: test_truth ------------------------ -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------- - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#create as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 12:44:45.172626"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 12:44:45.172626"]] - SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-18 12:44:45.179600"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "50bd03ba39a62e88276c5271c40f6e03"], ["updated_at", "2014-07-18 12:44:45.179600"], ["uuid", "50bd03ba39a62e88276c5271c40f6e03"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 26ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ----------------------------------------------------------- -Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#destroy as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Completed 500 Internal Server Error in 2ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#edit as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 17ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ------------------------------------------------------ -Extface::DevicesControllerTest: test_should_get_index ------------------------------------------------------ - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#index as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] -Completed 500 Internal Server Error in 4ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ---------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#new as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -Completed 500 Internal Server Error in 3ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------------- -Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#show as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 5ms -  (0.1ms) rollback transaction -  (0.0ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#update as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-18 12:44:45.234785"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 6ms -  (0.1ms) rollback transaction - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (163.2ms) DROP TABLE "extface_devices" -  (106.8ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime)  -  (114.6ms) DROP TABLE "extface_drivers" -  (107.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  -  (106.4ms) DROP TABLE "extface_jobs" -  (107.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  -  (0.2ms) select sqlite_version(*) -  (106.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") -  (337.0ms) DROP TABLE "extface_serial_configs" -  (115.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  -  (122.6ms) DROP TABLE "shops" -  (140.3ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  -  (0.3ms) SELECT version FROM "schema_migrations" -  (0.1ms) begin transaction - Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_devices" - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962, 'Shop', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374, 'Shop', 980190962, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_drivers" - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 412842077) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_jobs" - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962) - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374) - Fixture Delete (0.1ms) DELETE FROM "shops" - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962) - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374) -  (126.6ms) commit transaction -  (0.2ms) begin transaction ------------------------ -ExtfaceTest: test_truth ------------------------ -  (0.0ms) rollback transaction -  (0.0ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------- - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#create as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:04.499951"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 19:39:04.499951"]] - SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-18 19:39:04.507355"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "0bf2b4baa741ae713aff8c84b8ac723d"], ["updated_at", "2014-07-18 19:39:04.507355"], ["uuid", "0bf2b4baa741ae713aff8c84b8ac723d"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 24ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------------- -Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#destroy as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Completed 500 Internal Server Error in 2ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#edit as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 9ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------------------------------------ -Extface::DevicesControllerTest: test_should_get_index ------------------------------------------------------ - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#index as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] -Completed 500 Internal Server Error in 4ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#new as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -Completed 500 Internal Server Error in 10ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------------- -Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#show as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 4ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#update as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-18 19:39:04.562945"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 6ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------- -Extface::JobsControllerTest: test_should_show_job -------------------------------------------------- - Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) rollback transaction - ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (134.4ms) DROP TABLE "extface_devices" -  (107.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime)  -  (106.2ms) DROP TABLE "extface_drivers" -  (107.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  -  (107.2ms) DROP TABLE "extface_jobs" -  (107.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  -  (0.3ms) select sqlite_version(*) -  (122.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") -  (130.9ms) DROP TABLE "extface_serial_configs" -  (140.0ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  -  (122.6ms) DROP TABLE "shops" -  (123.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  -  (0.3ms) SELECT version FROM "schema_migrations" -  (0.1ms) begin transaction - Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" - Fixture Insert (0.2ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374, 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_devices" - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962, 'Shop', 980190962, 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374, 'Shop', 980190962, 599072141) - Fixture Delete (0.2ms) DELETE FROM "extface_drivers" - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 258259918) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 412842077) - Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 599072141) - Fixture Delete (0.1ms) DELETE FROM "extface_jobs" - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962) - Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374) - Fixture Delete (0.1ms) DELETE FROM "shops" - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962) - Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374) -  (127.7ms) commit transaction -  (0.1ms) begin transaction -------------------------------------------------- -Extface::JobsControllerTest: test_should_show_job -------------------------------------------------- - Extface::Job Load (0.5ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.2ms) rollback transaction -  (0.1ms) begin transaction ------------------------ -ExtfaceTest: test_truth ------------------------ -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------- - Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#create as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}} - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.4ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-31 12:14:44.062806"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-31 12:14:44.062806"]] - SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-31 12:14:44.075855"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "7b75ae09c644bca9b9e8ca6a0de5c64e"], ["updated_at", "2014-07-31 12:14:44.075855"], ["uuid", "7b75ae09c644bca9b9e8ca6a0de5c64e"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 55ms -  (0.2ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------------- -Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] -  (0.1ms) SELECT COUNT(*) FROM "extface_devices" - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#destroy as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Completed 500 Internal Server Error in 3ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ----------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#edit as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 30ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ------------------------------------------------------ -Extface::DevicesControllerTest: test_should_get_index ------------------------------------------------------ - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#index as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] -Completed 500 Internal Server Error in 5ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------- -Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#new as HTML - Parameters: {"shop_id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 -Completed 500 Internal Server Error in 3ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction -------------------------------------------------------- -Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#show as HTML - Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -Completed 500 Internal Server Error in 5ms -  (0.1ms) rollback transaction -  (0.1ms) begin transaction ---------------------------------------------------------- -Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------- - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] - Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] -Processing by Extface::DevicesController#update as HTML - Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} - Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 - Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]] -  (0.1ms) SAVEPOINT active_record_1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 - SQL (0.2ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-31 12:14:44.155806"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Redirected to -Completed 500 Internal Server Error in 6ms -  (0.2ms) rollback transaction