(92.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), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.5ms) 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)  (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.1ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.2ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)   (81.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (81.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (90.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (82.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140221203517')  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')  (82.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')  (91.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')  (99.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')  (82.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) 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-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374)  (100.2ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth ----------------------- NoMethodError (undefined method `call_on_error' for #): /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:136:in `rescue in block in process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:145:in `block in process'  (0.1ms) rollback transaction NoMethodError (undefined method `i_extra_module' for nil:NilClass): /home/alex/workspace/extface/app/controllers/extface/application_controller.rb:18:in `include_extra_module' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:377:in `_run__1475572450997275054__process_action__callbacks' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:80:in `run_callbacks' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/rescue.rb:29:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications.rb:159:in `block in instrument' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications.rb:159:in `instrument' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/params_wrapper.rb:245:in `process_action' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:136:in `process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/rendering.rb:44:in `process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:132:in `block in process'  (104.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.0ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.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)  (92.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (89.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)   (81.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (80.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (90.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (90.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140221203517')  (82.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')  (82.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')  (74.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')  (92.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')  (82.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) 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-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374)  (85.9ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Completed 500 Internal Server Error in 0ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction NoMethodError (undefined method `call_on_error' for #): /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:136:in `rescue in block in process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:145:in `block in process' NoMethodError (undefined method `i_extra_module' for nil:NilClass): /home/alex/workspace/extface/app/controllers/extface/application_controller.rb:18:in `include_extra_module' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:377:in `_run__3232243845517274261__process_action__callbacks' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:80:in `run_callbacks' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/rescue.rb:29:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications.rb:159:in `block in instrument' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/notifications.rb:159:in `instrument' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/params_wrapper.rb:245:in `process_action' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:136:in `process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/abstract_controller/rendering.rb:44:in `process' /usr/local/share/gems/gems/actionpack-4.0.3/lib/action_controller/metal/live.rb:132:in `block in process'  (124.5ms) DROP TABLE "extface_devices"  (91.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (106.4ms) DROP TABLE "extface_fiscal_print_drivers"  (90.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (106.1ms) DROP TABLE "extface_jobs"  (92.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)   (82.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.8ms) DROP TABLE "extface_pos_print_drivers"  (82.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) DROP TABLE "extface_raw_drivers"  (82.4ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (123.8ms) DROP TABLE "extface_serial_configs"  (106.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)  (106.9ms) DROP TABLE "shops"  (98.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) 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-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374)  (80.1ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} 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 (13.0ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:26:38 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Mon, 03 Mar 2014 09:26:38 UTC +00:00]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:26:38 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "9eecbc8e06506a1aa4fd74650ad88bf7"], ["updated_at", Mon, 03 Mar 2014 09:26:38 UTC +00:00], ["uuid", "9eecbc8e06506a1aa4fd74650ad88bf7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 37ms (ActiveRecord: 13.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (10.6ms) Completed 200 OK in 221ms (Views: 219.2ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 32ms (Views: 29.7ms | ActiveRecord: 0.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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.9ms)  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 09:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Extface::Job Load (0.1ms) 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 Completed in 7ms  (112.7ms) DROP TABLE "extface_devices"  (91.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), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.2ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.4ms) DROP TABLE "extface_fiscal_print_drivers"  (82.8ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (90.1ms) DROP TABLE "extface_jobs"  (98.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)   (90.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (91.4ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.9ms) DROP TABLE "extface_raw_drivers"  (90.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.2ms) DROP TABLE "extface_serial_configs"  (82.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)  (90.3ms) DROP TABLE "shops"  (99.1ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) 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-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374)  (83.2ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} 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.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:31:17 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Mon, 03 Mar 2014 09:31:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:31:17 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "cc03afbb6e8f1b94ea67c6ec6c1be9be"], ["updated_at", Mon, 03 Mar 2014 09:31:17 UTC +00:00], ["uuid", "cc03afbb6e8f1b94ea67c6ec6c1be9be"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.7ms) Completed 200 OK in 90ms (Views: 88.0ms | ActiveRecord: 0.3ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.7ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 33.4ms | ActiveRecord: 0.1ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.9ms)  (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" = ? ORDER BY "shops"."id" ASC 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 09:31:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (125.1ms) DROP TABLE "extface_devices"  (98.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), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (148.4ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (74.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (74.1ms) DROP TABLE "extface_jobs"  (84.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)  (107.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.4ms) DROP TABLE "extface_serial_configs"  (82.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)   (99.0ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (81.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303113217')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303112124') Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
'  (393.1ms) DROP TABLE "extface_devices"  (82.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (106.7ms) DROP TABLE "extface_drivers"  (90.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (82.1ms) DROP TABLE "extface_jobs"  (82.6ms) 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)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_serial_configs"  (98.8ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)  (81.7ms) DROP TABLE "shops"  (100.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations" Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
'  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarScp700') Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarTsp700') Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 12:09:06', '2014-03-03 12:09:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 12:09:06', '2014-03-03 12:09:06', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 12:09:06', '2014-03-03 12:09:06', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 12:09:06', '2014-03-03 12:09:06', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial') Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial') Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL) 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-03-03 12:09:06', '2014-03-03 12:09:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:09:06', '2014-03-03 12:09:06', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:09:06', '2014-03-03 12:09:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:09:06', '2014-03-03 12:09:06', 298486374)  (86.5ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (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" = ? ORDER BY "shops"."id" ASC 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.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 64ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 11ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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.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.8ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:09:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 9ms  (186.8ms) DROP TABLE "extface_devices"  (82.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.3ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.9ms) DROP TABLE "extface_drivers"  (90.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (82.4ms) DROP TABLE "extface_jobs"  (82.5ms) 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)   (83.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.6ms) DROP TABLE "extface_serial_configs"  (82.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)  (98.1ms) DROP TABLE "shops"  (82.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations" Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pos_print_driver, underlying cause No such file to load -- extface/pos_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/pbx_cdr_driver, underlying cause No such file to load -- extface/pbx_cdr_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/raw_driver, underlying cause No such file to load -- extface/raw_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
' Unable to load extface/fiscal_print_driver, underlying cause No such file to load -- extface/fiscal_print_driver /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:330:in `require_or_load' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:289:in `depend_on' /usr/local/share/gems/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:207:in `require_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `each' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /usr/local/share/gems/gems/activerecord-4.0.3/lib/active_record/fixtures.rb:768:in `fixtures' /home/alex/workspace/extface/test/test_helper.rb:21:in `' /home/alex/workspace/extface/test/test_helper.rb:16:in `' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `require' /home/alex/workspace/extface/test/controllers/extface/devices_controller_test.rb:1:in `' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `require' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `each' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:9:in `block in
' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `select' /home/alex/.gem/ruby/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in `
'  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarScp700') Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarTsp700') Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL) Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 12:10:04', '2014-03-03 12:10:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-03-03 12:10:04', '2014-03-03 12:10:04', 298486374) 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", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 12:10:04', '2014-03-03 12:10:04', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-03-03 12:10:04', '2014-03-03 12:10:04', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial') Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial') Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL) Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL) 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-03-03 12:10:04', '2014-03-03 12:10:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:10:04', '2014-03-03 12:10:04', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:10:04', '2014-03-03 12:10:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:10:04', '2014-03-03 12:10:04', 298486374)  (83.1ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 45ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.2ms) 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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 11ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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.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.8ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:10:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 8ms  (114.7ms) DROP TABLE "extface_devices"  (90.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)  (81.9ms) DROP TABLE "extface_drivers"  (82.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_jobs"  (91.7ms) 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)  (123.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.5ms) DROP TABLE "extface_serial_configs"  (82.6ms) 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)   (90.3ms) DROP TABLE "shops"  (91.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (96.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303123022')  (83.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303122506')  (114.1ms) DROP TABLE "extface_devices"  (82.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)  (90.2ms) DROP TABLE "extface_drivers"  (82.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (98.9ms) DROP TABLE "extface_jobs"  (82.4ms) 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)  (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_serial_configs"  (90.6ms) 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)   (81.7ms) DROP TABLE "shops"  (90.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 599072141) Fixture Delete (0.0ms) 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 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-03-03 12:37:38', '2014-03-03 12:37:38', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (108.2ms) 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)   (73.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.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)   (74.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.9ms) 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)   (73.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (72.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (73.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (82.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303123022')  (76.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')  (74.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303112124')  (74.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')  (74.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303113217')  (91.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303122506')  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:50', '2014-03-03 12:51:50', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 599072141) Fixture Delete (0.0ms) 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 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-03-03 12:51:51', '2014-03-03 12:51:51', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (109.2ms) 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)   (73.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (81.7ms) 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)   (74.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (89.8ms) 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)   (81.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (80.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (82.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (83.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303123022')  (91.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')  (99.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')  (90.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303112124')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303113217')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303122506')  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.2ms) rollback transaction  (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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 599072141) Fixture Delete (0.0ms) 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-03-03 12:52:30', '2014-03-03 12:52:30', 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-03-03 12:52:30', '2014-03-03 12:52:30', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 298486374, 599072141) Fixture Delete (0.0ms) 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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 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-03-03 12:52:31', '2014-03-03 12:52:31', 298486374, 'Shop', 980190962, 599072141)  (0.1ms) rollback transaction  (113.1ms) DROP TABLE "extface_devices"  (82.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)  (82.2ms) DROP TABLE "extface_drivers"  (74.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_jobs"  (74.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)  (75.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (89.9ms) DROP TABLE "extface_serial_configs"  (82.3ms) 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)   (90.1ms) DROP TABLE "shops"  (107.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:54:06', '2014-03-03 12:54:06', 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-03-03 12:54:06', '2014-03-03 12:54:06', 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-03-03 12:54:06', '2014-03-03 12:54:06', 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-03-03 12:54:06', '2014-03-03 12:54:06', 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-03-03 12:54:06', '2014-03-03 12:54:06', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:54:06', '2014-03-03 12:54:06', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:54:06', '2014-03-03 12:54:06', 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-03-03 12:54:06', '2014-03-03 12:54:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:54:06', '2014-03-03 12:54:06', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:54:06', '2014-03-03 12:54:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:54:06', '2014-03-03 12:54:06', 298486374)  (81.1ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms) Completed 500 Internal Server Error in 70ms  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] 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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 5ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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.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.8ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:54:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 28ms  (102.8ms) DROP TABLE "extface_devices"  (82.6ms) 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)  (73.2ms) DROP TABLE "extface_drivers"  (82.9ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (74.0ms) DROP TABLE "extface_jobs"  (74.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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.8ms) DROP TABLE "extface_serial_configs"  (98.9ms) 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)   (106.6ms) DROP TABLE "shops"  (82.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:55:37', '2014-03-03 12:55:37', 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-03-03 12:55:37', '2014-03-03 12:55:37', 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-03-03 12:55:37', '2014-03-03 12:55:37', 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-03-03 12:55:37', '2014-03-03 12:55:37', 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-03-03 12:55:37', '2014-03-03 12:55:37', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:55:37', '2014-03-03 12:55:37', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:55:37', '2014-03-03 12:55:37', 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-03-03 12:55:37', '2014-03-03 12:55:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:55:37', '2014-03-03 12:55:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:55:37', '2014-03-03 12:55:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:55:37', '2014-03-03 12:55:37', 298486374)  (95.1ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver_type"=>"Extface::Driver::GenericPos"}} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Unpermitted parameters: driver_type  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:55:38 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "6a0facc03d1f985f491444d0fb4787d4"], ["updated_at", Mon, 03 Mar 2014 12:55:38 UTC +00:00], ["uuid", "6a0facc03d1f985f491444d0fb4787d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 18ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 45ms  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 6ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:55:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 8ms  (104.4ms) DROP TABLE "extface_devices"  (84.7ms) 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)  (73.7ms) DROP TABLE "extface_drivers"  (74.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_jobs"  (252.2ms) 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)  (85.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.0ms) DROP TABLE "extface_serial_configs"  (90.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)   (65.5ms) DROP TABLE "shops"  (90.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:57:15', '2014-03-03 12:57:15', 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-03-03 12:57:15', '2014-03-03 12:57:15', 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-03-03 12:57:15', '2014-03-03 12:57:15', 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-03-03 12:57:15', '2014-03-03 12:57:15', 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-03-03 12:57:15', '2014-03-03 12:57:15', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:57:15', '2014-03-03 12:57:15', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:57:15', '2014-03-03 12:57:15', 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-03-03 12:57:15', '2014-03-03 12:57:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:57:15', '2014-03-03 12:57:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:57:15', '2014-03-03 12:57:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:57:15', '2014-03-03 12:57:15', 298486374)  (78.9ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.9ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:57:16 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "d8f845519339cdb403cbc1acebe323fb"], ["updated_at", Mon, 03 Mar 2014 12:57:16 UTC +00:00], ["uuid", "d8f845519339cdb403cbc1acebe323fb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 18ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 46ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 9ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 5ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:57:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (116.0ms) DROP TABLE "extface_devices"  (82.6ms) 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)  (73.9ms) DROP TABLE "extface_drivers"  (75.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (82.1ms) DROP TABLE "extface_jobs"  (82.7ms) 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)  (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.6ms) DROP TABLE "extface_serial_configs"  (82.8ms) 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)   (98.3ms) DROP TABLE "shops"  (90.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:58:20', '2014-03-03 12:58:20', 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-03-03 12:58:20', '2014-03-03 12:58:20', 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-03-03 12:58:20', '2014-03-03 12:58:20', 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-03-03 12:58:20', '2014-03-03 12:58:20', 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-03-03 12:58:20', '2014-03-03 12:58:20', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:58:20', '2014-03-03 12:58:20', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:58:20', '2014-03-03 12:58:20', 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-03-03 12:58:20', '2014-03-03 12:58:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:58:20', '2014-03-03 12:58:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:20', '2014-03-03 12:58:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:20', '2014-03-03 12:58:20', 298486374)  (82.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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:58:20 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "1b50c848e925f6879089004680a212c0"], ["updated_at", Mon, 03 Mar 2014 12:58:20 UTC +00:00], ["uuid", "1b50c848e925f6879089004680a212c0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Completed 500 Internal Server Error in 44ms  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 5ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:58:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.2ms) rollback transaction Completed in 7ms  (121.8ms) DROP TABLE "extface_devices"  (74.2ms) 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)  (82.0ms) DROP TABLE "extface_drivers"  (82.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (90.0ms) DROP TABLE "extface_jobs"  (90.6ms) 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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_serial_configs"  (82.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)   (82.2ms) DROP TABLE "shops"  (90.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:58:43', '2014-03-03 12:58: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-03-03 12:58:43', '2014-03-03 12:58: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-03-03 12:58:43', '2014-03-03 12:58: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-03-03 12:58:43', '2014-03-03 12:58:43', 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-03-03 12:58:43', '2014-03-03 12:58:43', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:58:43', '2014-03-03 12:58:43', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:58:43', '2014-03-03 12:58: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-03-03 12:58:43', '2014-03-03 12:58:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:58:43', '2014-03-03 12:58:43', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:43', '2014-03-03 12:58:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:43', '2014-03-03 12:58:43', 298486374)  (87.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) 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" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.9ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:58:43 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "304634c1afb6da2297cba3fe1717202a"], ["updated_at", Mon, 03 Mar 2014 12:58:43 UTC +00:00], ["uuid", "304634c1afb6da2297cba3fe1717202a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 19ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 47ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 5ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (101.5ms) DROP TABLE "extface_devices"  (90.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)  (73.8ms) DROP TABLE "extface_drivers"  (74.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_jobs"  (90.7ms) 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)  (82.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.9ms) DROP TABLE "extface_serial_configs"  (74.1ms) 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)   (73.9ms) DROP TABLE "shops"  (84.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.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-03-03 12:58:55', '2014-03-03 12:58:55', 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-03-03 12:58:55', '2014-03-03 12:58:55', 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-03-03 12:58:55', '2014-03-03 12:58:55', 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-03-03 12:58:55', '2014-03-03 12:58:55', 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-03-03 12:58:55', '2014-03-03 12:58:55', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:58:55', '2014-03-03 12:58:55', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:58:55', '2014-03-03 12:58:55', 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-03-03 12:58:55', '2014-03-03 12:58:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:58:55', '2014-03-03 12:58:55', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:55', '2014-03-03 12:58:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:55', '2014-03-03 12:58:55', 298486374)  (81.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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:58:55 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "b0708fcdfbfe03a54b21bc9726a40855"], ["updated_at", Mon, 03 Mar 2014 12:58:55 UTC +00:00], ["uuid", "b0708fcdfbfe03a54b21bc9726a40855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 44ms  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 5ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 8ms  (116.0ms) DROP TABLE "extface_devices"  (82.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)  (73.4ms) DROP TABLE "extface_drivers"  (74.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (74.1ms) DROP TABLE "extface_jobs"  (74.2ms) 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)  (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (99.6ms) DROP TABLE "extface_serial_configs"  (66.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)   (81.8ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 12:59:40', '2014-03-03 12:59:40', 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-03-03 12:59:40', '2014-03-03 12:59:40', 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-03-03 12:59:40', '2014-03-03 12:59:40', 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-03-03 12:59:40', '2014-03-03 12:59:40', 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-03-03 12:59:40', '2014-03-03 12:59:40', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 12:59:40', '2014-03-03 12:59:40', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 12:59:40', '2014-03-03 12:59:40', 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-03-03 12:59:40', '2014-03-03 12:59:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 12:59:40', '2014-03-03 12:59:40', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:59:40', '2014-03-03 12:59:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:59:40', '2014-03-03 12:59:40', 298486374)  (84.0ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 12:59:40 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "0adfa5bbef7b6392ceb566edb42dfd70"], ["updated_at", Mon, 03 Mar 2014 12:59:40 UTC +00:00], ["uuid", "0adfa5bbef7b6392ceb566edb42dfd70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 18ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 55ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 9ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:59:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (113.2ms) DROP TABLE "extface_devices"  (75.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)  (90.3ms) DROP TABLE "extface_drivers"  (82.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (82.0ms) DROP TABLE "extface_jobs"  (74.2ms) 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)  (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.8ms) DROP TABLE "extface_serial_configs"  (82.6ms) 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)   (81.9ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-03-03 13:00:43', '2014-03-03 13:00: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-03-03 13:00:43', '2014-03-03 13:00: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-03-03 13:00:43', '2014-03-03 13:00: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-03-03 13:00:43', '2014-03-03 13:00:43', 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-03-03 13:00:43', '2014-03-03 13:00:43', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:00:43', '2014-03-03 13:00:43', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:00:43', '2014-03-03 13:00: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-03-03 13:00:43', '2014-03-03 13:00:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:00:43', '2014-03-03 13:00:43', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:00:43', '2014-03-03 13:00:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:00:43', '2014-03-03 13:00:43', 298486374)  (80.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) 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" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:00:43 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "34d2c662d96a5d5d6bf6aa4aa30f699f"], ["updated_at", Mon, 03 Mar 2014 13:00:43 UTC +00:00], ["uuid", "34d2c662d96a5d5d6bf6aa4aa30f699f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 17ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 55ms  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 9ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 9ms  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:00:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 8ms  (106.9ms) DROP TABLE "extface_devices"  (74.2ms) 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)  (81.7ms) DROP TABLE "extface_drivers"  (74.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_jobs"  (82.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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_serial_configs"  (82.4ms) 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)   (82.0ms) DROP TABLE "shops"  (123.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:01:41', '2014-03-03 13:01:41', 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-03-03 13:01:41', '2014-03-03 13:01:41', 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-03-03 13:01:41', '2014-03-03 13:01:41', 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-03-03 13:01:41', '2014-03-03 13:01:41', 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-03-03 13:01:41', '2014-03-03 13:01:41', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:01:41', '2014-03-03 13:01:41', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:01:41', '2014-03-03 13:01:41', 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-03-03 13:01:41', '2014-03-03 13:01:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:01:41', '2014-03-03 13:01:41', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:01:41', '2014-03-03 13:01:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:01:41', '2014-03-03 13:01:41', 298486374)  (77.9ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:01:41 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "73759bb044edc9874742c37dcb03d82e"], ["updated_at", Mon, 03 Mar 2014 13:01:41 UTC +00:00], ["uuid", "73759bb044edc9874742c37dcb03d82e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 17ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 68ms (Views: 66.4ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 9ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 30ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:01:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (102.9ms) DROP TABLE "extface_devices"  (82.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)  (98.5ms) DROP TABLE "extface_drivers"  (75.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_jobs"  (90.8ms) 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)  (82.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_serial_configs"  (82.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)   (81.9ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:02:40', '2014-03-03 13:02:40', 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-03-03 13:02:40', '2014-03-03 13:02:40', 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-03-03 13:02:40', '2014-03-03 13:02:40', 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-03-03 13:02:40', '2014-03-03 13:02:40', 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-03-03 13:02:40', '2014-03-03 13:02:40', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:02:40', '2014-03-03 13:02:40', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:02:40', '2014-03-03 13:02:40', 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-03-03 13:02:40', '2014-03-03 13:02:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:02:40', '2014-03-03 13:02:40', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:02:40', '2014-03-03 13:02:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:02:40', '2014-03-03 13:02:40', 298486374)  (81.7ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:02:40 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "1c95f6f1e0bf9a6eb4b6fc03ea380787"], ["updated_at", Mon, 03 Mar 2014 13:02:40 UTC +00:00], ["uuid", "1c95f6f1e0bf9a6eb4b6fc03ea380787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 17ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.0ms) Completed 200 OK in 68ms (Views: 66.2ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 33ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 8ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.4ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:02:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (95.5ms) DROP TABLE "extface_devices"  (98.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)  (81.7ms) DROP TABLE "extface_drivers"  (74.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_jobs"  (74.4ms) 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)  (74.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.9ms) DROP TABLE "extface_serial_configs"  (84.2ms) 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)   (82.2ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.1ms) 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-03-03 13:03:37', '2014-03-03 13:03:37', 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-03-03 13:03:37', '2014-03-03 13:03:37', 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-03-03 13:03:37', '2014-03-03 13:03:37', 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-03-03 13:03:37', '2014-03-03 13:03:37', 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-03-03 13:03:37', '2014-03-03 13:03:37', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:03:37', '2014-03-03 13:03:37', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:03:37', '2014-03-03 13:03:37', 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-03-03 13:03:37', '2014-03-03 13:03:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:03:37', '2014-03-03 13:03:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:03:37', '2014-03-03 13:03:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:03:37', '2014-03-03 13:03:37', 298486374)  (121.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:03:37 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "95d77e1fb86e4914e976670d51604cfe"], ["updated_at", Mon, 03 Mar 2014 13:03:37 UTC +00:00], ["uuid", "95d77e1fb86e4914e976670d51604cfe"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 19ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 70ms (Views: 67.8ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 32ms  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:03:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (106.6ms) DROP TABLE "extface_devices"  (82.3ms) 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)  (81.8ms) DROP TABLE "extface_drivers"  (74.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_jobs"  (74.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)  (82.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.8ms) DROP TABLE "extface_serial_configs"  (90.6ms) 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)   (82.2ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:06:37', '2014-03-03 13:06:37', 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-03-03 13:06:37', '2014-03-03 13:06:37', 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-03-03 13:06:37', '2014-03-03 13:06:37', 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-03-03 13:06:37', '2014-03-03 13:06:37', 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-03-03 13:06:37', '2014-03-03 13:06:37', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:06:37', '2014-03-03 13:06:37', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:06:37', '2014-03-03 13:06:37', 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-03-03 13:06:37', '2014-03-03 13:06:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:06:37', '2014-03-03 13:06:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:37', '2014-03-03 13:06:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:37', '2014-03-03 13:06:37', 298486374)  (101.2ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:06:37 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "1fbecaa3499a1b17d5d43418a1393bb8"], ["updated_at", Mon, 03 Mar 2014 13:06:37 UTC +00:00], ["uuid", "1fbecaa3499a1b17d5d43418a1393bb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 66ms (Views: 64.3ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 32ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 9ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.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 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:06:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (130.4ms) DROP TABLE "extface_devices"  (74.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)  (73.5ms) DROP TABLE "extface_drivers"  (74.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_jobs"  (74.4ms) 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)  (82.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_serial_configs"  (82.3ms) 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)   (82.0ms) DROP TABLE "shops"  (82.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.3ms) 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-03-03 13:06:44', '2014-03-03 13:06: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-03-03 13:06:44', '2014-03-03 13:06: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-03-03 13:06:44', '2014-03-03 13:06: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-03-03 13:06:44', '2014-03-03 13:06:44', 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-03-03 13:06:44', '2014-03-03 13:06:44', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:06:44', '2014-03-03 13:06:44', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:06:44', '2014-03-03 13:06: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-03-03 13:06:44', '2014-03-03 13:06:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:06:44', '2014-03-03 13:06:44', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:44', '2014-03-03 13:06:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:44', '2014-03-03 13:06:44', 298486374)  (260.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.9ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:06:44 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "d0d7203c7516f9cd9bcda1e71bcb3ddc"], ["updated_at", Mon, 03 Mar 2014 13:06:44 UTC +00:00], ["uuid", "d0d7203c7516f9cd9bcda1e71bcb3ddc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 21ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 72ms (Views: 70.2ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 32ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 9ms  (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" = ? ORDER BY "shops"."id" ASC 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.4ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:06:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (100.5ms) DROP TABLE "extface_devices"  (74.3ms) 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)  (370.0ms) DROP TABLE "extface_drivers"  (82.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_jobs"  (74.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)  (82.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.8ms) DROP TABLE "extface_serial_configs"  (82.3ms) 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)   (83.2ms) DROP TABLE "shops"  (98.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:07:20', '2014-03-03 13:07:20', 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-03-03 13:07:20', '2014-03-03 13:07:20', 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-03-03 13:07:20', '2014-03-03 13:07:20', 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-03-03 13:07:20', '2014-03-03 13:07:20', 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-03-03 13:07:20', '2014-03-03 13:07:20', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:07:20', '2014-03-03 13:07:20', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:07:20', '2014-03-03 13:07:20', 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-03-03 13:07:20', '2014-03-03 13:07:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:07:20', '2014-03-03 13:07:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:07:20', '2014-03-03 13:07:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:07:20', '2014-03-03 13:07:20', 298486374)  (101.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) 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" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.9ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:07:20 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "94d4878fb4665ebaa263fbc2511a53d6"], ["updated_at", Mon, 03 Mar 2014 13:07:20 UTC +00:00], ["uuid", "94d4878fb4665ebaa263fbc2511a53d6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 20ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.9ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 72ms (Views: 69.6ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.1ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 500 Internal Server Error in 8ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:07:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (124.0ms) DROP TABLE "extface_devices"  (92.2ms) 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)  (98.1ms) DROP TABLE "extface_drivers"  (90.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_jobs"  (74.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)  (74.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.2ms) DROP TABLE "extface_serial_configs"  (82.4ms) 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)   (81.9ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:08:30', '2014-03-03 13:08:30', 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-03-03 13:08:30', '2014-03-03 13:08:30', 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-03-03 13:08:30', '2014-03-03 13:08:30', 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-03-03 13:08:30', '2014-03-03 13:08:30', 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-03-03 13:08:30', '2014-03-03 13:08:30', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:08:30', '2014-03-03 13:08:30', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:08:30', '2014-03-03 13:08:30', 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-03-03 13:08:30', '2014-03-03 13:08:30', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:08:30', '2014-03-03 13:08:30', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:08:30', '2014-03-03 13:08:30', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:08:30', '2014-03-03 13:08:30', 298486374)  (86.6ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:08:30 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "a15532fb7a111ebec0ace06bbef4ba50"], ["updated_at", Mon, 03 Mar 2014 13:08:30 UTC +00:00], ["uuid", "a15532fb7a111ebec0ace06bbef4ba50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 17ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.8ms) Completed 200 OK in 68ms (Views: 66.5ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.1ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Completed 500 Internal Server Error in 15ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:08:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms  (107.9ms) DROP TABLE "extface_devices"  (74.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)  (90.3ms) DROP TABLE "extface_drivers"  (74.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (98.4ms) DROP TABLE "extface_jobs"  (90.5ms) 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)  (75.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.3ms) DROP TABLE "extface_serial_configs"  (82.3ms) 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)   (82.0ms) DROP TABLE "shops"  (156.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-03-03 13:09:55', '2014-03-03 13:09:55', 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-03-03 13:09:55', '2014-03-03 13:09:55', 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-03-03 13:09:55', '2014-03-03 13:09:55', 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-03-03 13:09:55', '2014-03-03 13:09:55', 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-03-03 13:09:55', '2014-03-03 13:09:55', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:09:55', '2014-03-03 13:09:55', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:09:55', '2014-03-03 13:09:55', 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-03-03 13:09:55', '2014-03-03 13:09:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:09:55', '2014-03-03 13:09:55', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:09:55', '2014-03-03 13:09:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:09:55', '2014-03-03 13:09:55', 298486374)  (83.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) 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" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.9ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:09:55 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "b0a6dafeea979913535b5452fe39fa44"], ["updated_at", Mon, 03 Mar 2014 13:09:55 UTC +00:00], ["uuid", "b0a6dafeea979913535b5452fe39fa44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 20ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 69ms (Views: 67.3ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.1ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Completed 500 Internal Server Error in 15ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:09:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (99.9ms) DROP TABLE "extface_devices"  (74.2ms) 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)  (83.0ms) DROP TABLE "extface_drivers"  (74.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_jobs"  (74.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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.3ms) DROP TABLE "extface_serial_configs"  (90.8ms) 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)   (82.1ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) 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-03-03 13:10:32', '2014-03-03 13:10: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-03-03 13:10:32', '2014-03-03 13:10: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-03-03 13:10:32', '2014-03-03 13:10: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-03-03 13:10:32', '2014-03-03 13:10: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-03-03 13:10:32', '2014-03-03 13:10:32', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:10:32', '2014-03-03 13:10:32', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:10:32', '2014-03-03 13:10: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-03-03 13:10:32', '2014-03-03 13:10:32', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:10:32', '2014-03-03 13:10:32', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:10:32', '2014-03-03 13:10:32', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:10:32', '2014-03-03 13:10:32', 298486374)  (94.3ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:10:32 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "5b8b73cacc789f4019de3cdc04031b93"], ["updated_at", Mon, 03 Mar 2014 13:10:32 UTC +00:00], ["uuid", "5b8b73cacc789f4019de3cdc04031b93"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 68ms (Views: 65.9ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.1ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.9ms)  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:10:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (110.1ms) DROP TABLE "extface_devices"  (74.2ms) 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)  (73.7ms) DROP TABLE "extface_drivers"  (74.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_jobs"  (99.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)  (98.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (89.9ms) DROP TABLE "extface_serial_configs"  (73.9ms) 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)   (82.4ms) DROP TABLE "shops"  (92.2ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:11:34', '2014-03-03 13:11:34', 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-03-03 13:11:34', '2014-03-03 13:11:34', 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-03-03 13:11:34', '2014-03-03 13:11:34', 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-03-03 13:11:34', '2014-03-03 13:11:34', 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-03-03 13:11:34', '2014-03-03 13:11:34', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:11:34', '2014-03-03 13:11:34', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:11:34', '2014-03-03 13:11:34', 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-03-03 13:11:34', '2014-03-03 13:11:34', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:11:34', '2014-03-03 13:11:34', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:11:34', '2014-03-03 13:11:34', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:11:34', '2014-03-03 13:11:34', 298486374)  (85.1ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.7ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:11:34 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "e96ee71125174f83f1ff738959195c99"], ["updated_at", Mon, 03 Mar 2014 13:11:34 UTC +00:00], ["uuid", "e96ee71125174f83f1ff738959195c99"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.8ms) Completed 200 OK in 66ms (Views: 63.7ms | ActiveRecord: 0.4ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.2ms) 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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Completed 500 Internal Server Error in 15ms  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:11:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (106.0ms) DROP TABLE "extface_devices"  (90.6ms) 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)  (73.8ms) DROP TABLE "extface_drivers"  (74.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (74.0ms) DROP TABLE "extface_jobs"  (75.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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.8ms) DROP TABLE "extface_serial_configs"  (90.6ms) 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)   (82.2ms) DROP TABLE "shops"  (90.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:12:07', '2014-03-03 13:12:07', 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-03-03 13:12:07', '2014-03-03 13:12:07', 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-03-03 13:12:07', '2014-03-03 13:12:07', 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-03-03 13:12:07', '2014-03-03 13:12:07', 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-03-03 13:12:07', '2014-03-03 13:12:07', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:12:07', '2014-03-03 13:12:07', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:12:07', '2014-03-03 13:12:07', 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-03-03 13:12:07', '2014-03-03 13:12:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:12:07', '2014-03-03 13:12:07', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:12:07', '2014-03-03 13:12:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:12:07', '2014-03-03 13:12:07', 298486374)  (89.4ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.7ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:12:07 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "f4c4c3f9e9c72a61aef45ccd8e164811"], ["updated_at", Mon, 03 Mar 2014 13:12:07 UTC +00:00], ["uuid", "f4c4c3f9e9c72a61aef45ccd8e164811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.0ms) Completed 200 OK in 68ms (Views: 66.0ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.2ms | ActiveRecord: 0.1ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.9ms)  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:12:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (104.2ms) DROP TABLE "extface_devices"  (74.0ms) 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)  (73.3ms) DROP TABLE "extface_drivers"  (74.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (98.5ms) DROP TABLE "extface_jobs"  (92.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)  (98.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (98.1ms) DROP TABLE "extface_serial_configs"  (82.4ms) 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)   (90.4ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (105.1ms) DROP TABLE "extface_devices"  (82.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)  (81.5ms) DROP TABLE "extface_drivers"  (74.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_jobs"  (82.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)  (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.9ms) DROP TABLE "extface_serial_configs"  (107.1ms) 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)   (98.1ms) DROP TABLE "shops"  (92.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 13:51:13', '2014-03-03 13:51:13', 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-03-03 13:51:13', '2014-03-03 13:51:13', 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-03-03 13:51:13', '2014-03-03 13:51:13', 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-03-03 13:51:13', '2014-03-03 13:51:13', 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-03-03 13:51:13', '2014-03-03 13:51:13', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 13:51:13', '2014-03-03 13:51:13', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 13:51:13', '2014-03-03 13:51:13', 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-03-03 13:51:13', '2014-03-03 13:51:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 13:51:13', '2014-03-03 13:51:13', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:51:13', '2014-03-03 13:51:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:51:13', '2014-03-03 13:51:13', 298486374)  (93.4ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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 Unpermitted parameters: driver_class  (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.8ms) INSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 13:51:13 UTC +00:00], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "24f071e105b082d7ab5d3a272006405b"], ["updated_at", Mon, 03 Mar 2014 13:51:13 UTC +00:00], ["uuid", "24f071e105b082d7ab5d3a272006405b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 16ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.8ms) Completed 200 OK in 66ms (Views: 64.4ms | ActiveRecord: 0.3ms)  (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" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.9ms)  (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" = ? ORDER BY "shops"."id" ASC 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:51:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms  (99.6ms) DROP TABLE "extface_devices"  (90.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)  (89.9ms) DROP TABLE "extface_drivers"  (90.9ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_jobs"  (74.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)  (73.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.8ms) DROP TABLE "extface_serial_configs"  (82.3ms) 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)   (81.8ms) DROP TABLE "shops"  (90.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-03-03 14:25:19', '2014-03-03 14:25:19', 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-03-03 14:25:19', '2014-03-03 14:25:19', 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-03-03 14:25:19', '2014-03-03 14:25:19', 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-03-03 14:25:19', '2014-03-03 14:25:19', 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-03-03 14:25:19', '2014-03-03 14:25:19', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-03-03 14:25:19', '2014-03-03 14:25:19', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-03-03 14:25:19', '2014-03-03 14:25:19', 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-03-03 14:25:19', '2014-03-03 14:25:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-03-03 14:25:19', '2014-03-03 14:25:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 14:25:19', '2014-03-03 14:25:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 14:25:19', '2014-03-03 14:25:19', 298486374)  (85.6ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.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.8ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00], ["type", "Extface::Driver::GenericPos"], ["updated_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "7b629621297e640ef686800d82653a60"], ["updated_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00], ["uuid", "7b629621297e640ef686800d82653a60"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 28ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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" = ? ORDER BY "shops"."id" ASC 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.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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.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"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.1ms) Completed 200 OK in 82ms (Views: 80.4ms | ActiveRecord: 0.4ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC 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"]] 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]] Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.6ms)  (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" = ? ORDER BY "shops"."id" ASC 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 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (21.5ms) 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" = ? ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]] Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 1.0ms)  (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" = ? ORDER BY "shops"."id" ASC 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (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]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} 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.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 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (128.8ms) DROP TABLE "extface_devices"  (106.9ms) 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.1ms) 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)   (106.1ms) 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(*)  (114.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (130.9ms) DROP TABLE "extface_serial_configs"  (108.3ms) 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)   (106.5ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) SELECT version FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.6ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (105.9ms) DROP TABLE "extface_drivers"  (123.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (90.9ms) 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.4ms) select sqlite_version(*)  (105.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.6ms) DROP TABLE "extface_serial_configs"  (125.3ms) 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)   (114.8ms) DROP TABLE "shops"  (115.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.1ms) 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-08-09 14:26:16', '2014-08-09 14:26:16', 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-08-09 14:26:16', '2014-08-09 14:26:16', 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-08-09 14:26:16', '2014-08-09 14:26:16', 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-08-09 14:26:16', '2014-08-09 14:26:16', 298486374, 'Shop', 980190962, 599072141)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.7ms) DROP TABLE "extface_devices"  (123.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.2ms) 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)   (106.2ms) 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.2ms) select sqlite_version(*)  (114.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (123.9ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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.4ms) DROP TABLE "shops"  (115.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) 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-08-09 14:29:39', '2014-08-09 14:29:39', 980190962, 258259918) 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-08-09 14:29:39', '2014-08-09 14:29:39', 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-08-09 14:29:39', '2014-08-09 14:29:39', 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-08-09 14:29:39', '2014-08-09 14:29:39', 298486374, 'Shop', 980190962, 599072141)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.1ms) 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)   (107.5ms) 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)   (106.6ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (108.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.8ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (106.4ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) 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-08-09 14:35:40', '2014-08-09 14:35:40', 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-08-09 14:35:40', '2014-08-09 14:35:40', 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-08-09 14:35:40', '2014-08-09 14:35:40', 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-08-09 14:35:40', '2014-08-09 14:35:40', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:35:40', '2014-08-09 14:35:40', 135473084, 'Shop', 980190962, 135473084)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.4ms) DROP TABLE "extface_devices"  (106.9ms) 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.1ms) 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)   (106.1ms) 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(*)  (114.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (122.6ms) DROP TABLE "extface_serial_configs"  (115.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)   (114.5ms) DROP TABLE "shops"  (115.3ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-09 14:37:40', '2014-08-09 14:37:40', 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-08-09 14:37:40', '2014-08-09 14:37:40', 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-08-09 14:37:40', '2014-08-09 14:37:40', 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-08-09 14:37:40', '2014-08-09 14:37:40', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:37:40', '2014-08-09 14:37:40', 135473084, 'Shop', 980190962, 135473084)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (161.0ms) 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)   (122.5ms) 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)   (106.3ms) 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.2ms) select sqlite_version(*)  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.3ms) 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.2ms) DROP TABLE "shops"  (115.5ms) 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-08-09 14:38:10', '2014-08-09 14:38:10', 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-08-09 14:38:10', '2014-08-09 14:38:10', 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-08-09 14:38:10', '2014-08-09 14:38:10', 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-08-09 14:38:10', '2014-08-09 14:38:10', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:38:10', '2014-08-09 14:38:10', 135473084, 'Shop', 980190962, 135473084)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.3ms) DROP TABLE "extface_devices"  (107.0ms) 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.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)   (106.1ms) DROP TABLE "extface_jobs"  (106.8ms) 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(*)  (122.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (122.7ms) DROP TABLE "extface_serial_configs"  (108.3ms) 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)   (114.6ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-09 14:38:59', '2014-08-09 14:38:59', 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-08-09 14:38:59', '2014-08-09 14:38:59', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 135473084, 'Shop', 980190962, 135473084) 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-08-09 14:38:59', '2014-08-09 14:38:59', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 599072141) Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 229906743) SQLite3::SQLException: table extface_drivers has no column named device: INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:38:59', '2014-08-09 14:38:59', 229906743)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (115.1ms) DROP TABLE "extface_devices"  (106.9ms) 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.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.3ms) select sqlite_version(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (97.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.9ms) DROP TABLE "shops"  (107.1ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-09 14:40:31', '2014-08-09 14:40:31', 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-08-09 14:40:31', '2014-08-09 14:40:31', 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-08-09 14:40:31', '2014-08-09 14:40:31', 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-08-09 14:40:31', '2014-08-09 14:40:31', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:40:31', '2014-08-09 14:40:31', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:40:31', '2014-08-09 14:40:31', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:40:31', '2014-08-09 14:40:31', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:40:31', '2014-08-09 14:40:31', 599072141) Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:40:31', '2014-08-09 14:40:31', 229906743) SQLite3::SQLException: table extface_drivers has no column named device: INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:40:31', '2014-08-09 14:40:31', 229906743)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.9ms) DROP TABLE "extface_devices"  (106.7ms) 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.1ms) 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.5ms) DROP TABLE "extface_serial_configs"  (116.8ms) 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)   (114.5ms) DROP TABLE "shops"  (115.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.2ms) 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-08-09 14:42:10', '2014-08-09 14:42:10', 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-08-09 14:42:10', '2014-08-09 14:42:10', 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-08-09 14:42:10', '2014-08-09 14:42:10', 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-08-09 14:42:10', '2014-08-09 14:42:10', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:42:10', '2014-08-09 14:42:10', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:42:10', '2014-08-09 14:42:10', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:42:10', '2014-08-09 14:42:10', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:42:10', '2014-08-09 14:42:10', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:42:10', '2014-08-09 14:42:10', 229906743) SQLite3::SQLException: table extface_drivers has no column named device: INSERT INTO "extface_drivers" ("device", "type", "created_at", "updated_at", "id") VALUES ('datecs_fp550', 'Extface::Driver::Datecs::Fp550', '2014-08-09 14:42:10', '2014-08-09 14:42:10', 229906743)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (154.3ms) 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.4ms) DROP TABLE "extface_drivers"  (108.7ms) 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.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.2ms) select sqlite_version(*)  (106.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.7ms) DROP TABLE "extface_serial_configs"  (107.2ms) 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)   (114.5ms) DROP TABLE "shops"  (115.5ms) 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-08-09 14:44:08', '2014-08-09 14:44:08', 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-08-09 14:44:08', '2014-08-09 14:44:08', 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-08-09 14:44:08', '2014-08-09 14:44:08', 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-08-09 14:44:08', '2014-08-09 14:44:08', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:44:08', '2014-08-09 14:44:08', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:44:08', '2014-08-09 14:44:08', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:44:08', '2014-08-09 14:44:08', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:44:08', '2014-08-09 14:44:08', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:44:08', '2014-08-09 14:44:08', 229906743) 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-08-09 14:44:08', '2014-08-09 14:44:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:44:08', '2014-08-09 14:44:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:44:08', '2014-08-09 14:44:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:44:08', '2014-08-09 14:44:08', 298486374)  (117.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (156.4ms) 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)   (106.0ms) DROP TABLE "extface_drivers"  (116.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.2ms) select sqlite_version(*)  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.1ms) DROP TABLE "extface_serial_configs"  (98.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)   (114.6ms) DROP TABLE "shops"  (115.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.2ms) 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-08-09 14:45:37', '2014-08-09 14:45:37', 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-08-09 14:45:37', '2014-08-09 14:45:37', 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-08-09 14:45:37', '2014-08-09 14:45:37', 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-08-09 14:45:37', '2014-08-09 14:45:37', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:45:37', '2014-08-09 14:45:37', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:45:37', '2014-08-09 14:45:37', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:45:37', '2014-08-09 14:45:37', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:45:37', '2014-08-09 14:45:37', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:45:37', '2014-08-09 14:45:37', 229906743) 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-08-09 14:45:37', '2014-08-09 14:45:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:45:37', '2014-08-09 14:45:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:45:37', '2014-08-09 14:45:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:45:37', '2014-08-09 14:45:37', 298486374)  (118.1ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]]  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (145.6ms) DROP TABLE "extface_devices"  (108.3ms) 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)   (105.5ms) DROP TABLE "extface_drivers"  (115.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.3ms) select sqlite_version(*)  (105.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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.5ms) DROP TABLE "shops"  (107.1ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-09 14:45:54', '2014-08-09 14:45: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-08-09 14:45:54', '2014-08-09 14:45: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-08-09 14:45:54', '2014-08-09 14:45: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-08-09 14:45:54', '2014-08-09 14:45:54', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:45:54', '2014-08-09 14:45:54', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:45:54', '2014-08-09 14:45:54', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:45:54', '2014-08-09 14:45:54', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:45:54', '2014-08-09 14:45:54', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:45:54', '2014-08-09 14:45:54', 229906743) 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-08-09 14:45:54', '2014-08-09 14:45:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:45:54', '2014-08-09 14:45:54', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:45:54', '2014-08-09 14:45:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:45:54', '2014-08-09 14:45:54', 298486374)  (110.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]]  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (143.3ms) DROP TABLE "extface_devices"  (107.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.1ms) 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)   (105.9ms) 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.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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)   (114.4ms) 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.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-09 14:46:33', '2014-08-09 14:46:33', 980190962, 258259918) 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-08-09 14:46:33', '2014-08-09 14:46:33', 298486374, 599072141) Fixture Delete (0.2ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 229906743, 'Shop', 980190962, 135473084) 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-08-09 14:46:33', '2014-08-09 14:46:33', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:46:33', '2014-08-09 14:46:33', 229906743) 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-08-09 14:46:33', '2014-08-09 14:46:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:46:33', '2014-08-09 14:46:33', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:46:33', '2014-08-09 14:46:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:46:33', '2014-08-09 14:46:33', 298486374)  (116.1ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (142.4ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (105.9ms) 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)   (106.0ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (115.8ms) DROP TABLE "extface_serial_configs"  (123.3ms) 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.8ms) DROP TABLE "shops"  (107.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.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-08-09 14:47:44', '2014-08-09 14:47:44', 980190962, 258259918) 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-08-09 14:47:44', '2014-08-09 14:47: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-08-09 14:47:44', '2014-08-09 14:47: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-08-09 14:47:44', '2014-08-09 14:47:44', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:47:44', '2014-08-09 14:47:44', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:47:44', '2014-08-09 14:47:44', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:47:44', '2014-08-09 14:47:44', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:47:44', '2014-08-09 14:47:44', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:47:44', '2014-08-09 14:47:44', 229906743) 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-08-09 14:47:44', '2014-08-09 14:47:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:47:44', '2014-08-09 14:47:44', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:47:44', '2014-08-09 14:47:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:47:44', '2014-08-09 14:47:44', 298486374)  (104.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.3ms) DROP TABLE "extface_devices"  (107.6ms) 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.1ms) 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)   (106.1ms) 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.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.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)   (114.5ms) DROP TABLE "shops"  (115.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.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-09 14:49:20', '2014-08-09 14:49:20', 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-08-09 14:49:20', '2014-08-09 14:49:20', 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-08-09 14:49:20', '2014-08-09 14:49:20', 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-08-09 14:49:20', '2014-08-09 14:49:20', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:49:20', '2014-08-09 14:49:20', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:49:20', '2014-08-09 14:49:20', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:49:20', '2014-08-09 14:49:20', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:49:20', '2014-08-09 14:49:20', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:49:20', '2014-08-09 14:49:20', 229906743) 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-08-09 14:49:20', '2014-08-09 14:49:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:49:20', '2014-08-09 14:49:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:49:20', '2014-08-09 14:49:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:49:20', '2014-08-09 14:49:20', 298486374)  (114.8ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (480.1ms) DROP TABLE "extface_devices"  (115.0ms) 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)   (105.9ms) 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)   (106.1ms) 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.2ms) select sqlite_version(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.2ms) DROP TABLE "extface_serial_configs"  (107.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)   (115.8ms) DROP TABLE "shops"  (98.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-09 14:50:07', '2014-08-09 14:50:07', 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-08-09 14:50:07', '2014-08-09 14:50:07', 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-08-09 14:50:07', '2014-08-09 14:50:07', 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-08-09 14:50:07', '2014-08-09 14:50:07', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:50:07', '2014-08-09 14:50:07', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:50:07', '2014-08-09 14:50:07', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:50:07', '2014-08-09 14:50:07', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:50:07', '2014-08-09 14:50:07', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:50:07', '2014-08-09 14:50:07', 229906743) 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-08-09 14:50:07', '2014-08-09 14:50:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:50:07', '2014-08-09 14:50:07', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:50:07', '2014-08-09 14:50:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:50:07', '2014-08-09 14:50:07', 298486374)  (103.2ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (173.2ms) DROP TABLE "extface_devices"  (106.9ms) 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.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.1ms) DROP TABLE "extface_jobs"  (123.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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (123.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)   (106.1ms) DROP TABLE "shops"  (115.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-09 14:54:19', '2014-08-09 14:54:19', 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-08-09 14:54:19', '2014-08-09 14:54:19', 298486374, 599072141) Fixture Delete (0.2ms) 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-08-09 14:54:19', '2014-08-09 14:54:19', 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-08-09 14:54:19', '2014-08-09 14:54:19', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:54:19', '2014-08-09 14:54:19', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:54:19', '2014-08-09 14:54:19', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:54:19', '2014-08-09 14:54:19', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:54:19', '2014-08-09 14:54:19', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:54:19', '2014-08-09 14:54:19', 229906743) 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-08-09 14:54:19', '2014-08-09 14:54:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:54:19', '2014-08-09 14:54:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:54:19', '2014-08-09 14:54:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:54:19', '2014-08-09 14:54:19', 298486374)  (114.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.1ms) DROP TABLE "extface_devices"  (106.7ms) 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"  (106.9ms) 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"  (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(*)  (114.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.3ms) 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)   (114.5ms) DROP TABLE "shops"  (115.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.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-08-09 14:54:55', '2014-08-09 14:54:55', 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-08-09 14:54:55', '2014-08-09 14:54:55', 298486374, 599072141) Fixture Delete (0.2ms) 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-08-09 14:54:55', '2014-08-09 14:54:55', 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-08-09 14:54:55', '2014-08-09 14:54:55', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:54:55', '2014-08-09 14:54:55', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:54:55', '2014-08-09 14:54:55', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:54:55', '2014-08-09 14:54:55', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:54:55', '2014-08-09 14:54:55', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:54:55', '2014-08-09 14:54:55', 229906743) 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-08-09 14:54:55', '2014-08-09 14:54:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:54:55', '2014-08-09 14:54:55', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:54:55', '2014-08-09 14:54:55', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:54:55', '2014-08-09 14:54:55', 298486374)  (110.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (126.9ms) DROP TABLE "extface_devices"  (106.7ms) 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.1ms) DROP TABLE "extface_drivers"  (98.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (97.6ms) 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.3ms) select sqlite_version(*)  (107.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.5ms) DROP TABLE "shops"  (123.5ms) 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-08-09 14:56:00', '2014-08-09 14:56:00', 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-08-09 14:56:00', '2014-08-09 14:56:00', 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-08-09 14:56:00', '2014-08-09 14:56:00', 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-08-09 14:56:00', '2014-08-09 14:56:00', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:56:00', '2014-08-09 14:56:00', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:56:00', '2014-08-09 14:56:00', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:56:00', '2014-08-09 14:56:00', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:56:00', '2014-08-09 14:56:00', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:56:00', '2014-08-09 14:56:00', 229906743) 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-08-09 14:56:00', '2014-08-09 14:56:00', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:56:00', '2014-08-09 14:56:00', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:56:00', '2014-08-09 14:56:00', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:56:00', '2014-08-09 14:56:00', 298486374)  (118.0ms) commit transaction  (0.3ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (140.4ms) DROP TABLE "extface_devices"  (106.9ms) 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)   (105.8ms) 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)   (114.2ms) 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.3ms) select sqlite_version(*)  (107.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (122.8ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (114.2ms) DROP TABLE "shops"  (115.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-09 14:56:44', '2014-08-09 14:56: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-08-09 14:56:44', '2014-08-09 14:56: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-08-09 14:56:44', '2014-08-09 14:56: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-08-09 14:56:44', '2014-08-09 14:56:44', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:56:44', '2014-08-09 14:56:44', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:56:44', '2014-08-09 14:56:44', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:56:44', '2014-08-09 14:56:44', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:56:44', '2014-08-09 14:56:44', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:56:44', '2014-08-09 14:56:44', 229906743) 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-08-09 14:56:44', '2014-08-09 14:56:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:56:44', '2014-08-09 14:56:44', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:56:44', '2014-08-09 14:56:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:56:44', '2014-08-09 14:56:44', 298486374)  (119.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (133.3ms) 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)   (106.1ms) 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)   (106.0ms) DROP TABLE "extface_jobs"  (106.8ms) 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")  (114.4ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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)   (114.4ms) DROP TABLE "shops"  (125.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.2ms) 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-08-09 14:58:36', '2014-08-09 14:58:36', 980190962, 258259918) 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-08-09 14:58:36', '2014-08-09 14:58:36', 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-08-09 14:58:36', '2014-08-09 14:58:36', 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-08-09 14:58:36', '2014-08-09 14:58:36', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:58:36', '2014-08-09 14:58:36', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:58:36', '2014-08-09 14:58:36', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:58:36', '2014-08-09 14:58:36', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:58:36', '2014-08-09 14:58:36', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:58:36', '2014-08-09 14:58:36', 229906743) 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-08-09 14:58:36', '2014-08-09 14:58:36', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:58:36', '2014-08-09 14:58:36', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:58:36', '2014-08-09 14:58:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:58:36', '2014-08-09 14:58:36', 298486374)  (103.8ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (144.9ms) 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)   (114.0ms) DROP TABLE "extface_drivers"  (115.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (105.9ms) 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(*)  (99.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.0ms) DROP TABLE "extface_serial_configs"  (106.9ms) 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)   (106.3ms) DROP TABLE "shops"  (115.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) 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-08-09 14:59:07', '2014-08-09 14:59:07', 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-08-09 14:59:07', '2014-08-09 14:59:07', 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-08-09 14:59:07', '2014-08-09 14:59:07', 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-08-09 14:59:07', '2014-08-09 14:59:07', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:59:07', '2014-08-09 14:59:07', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:59:07', '2014-08-09 14:59:07', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:59:07', '2014-08-09 14:59:07', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:59:07', '2014-08-09 14:59:07', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:59:07', '2014-08-09 14:59:07', 229906743) 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-08-09 14:59:07', '2014-08-09 14:59:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:59:07', '2014-08-09 14:59:07', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:07', '2014-08-09 14:59:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:07', '2014-08-09 14:59:07', 298486374)  (112.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (145.0ms) DROP TABLE "extface_devices"  (106.7ms) 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.1ms) DROP TABLE "extface_drivers"  (115.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (173.4ms) 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.3ms) select sqlite_version(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.5ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.4ms) DROP TABLE "shops"  (123.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-09 14:59:27', '2014-08-09 14:59:27', 980190962, 258259918) 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-08-09 14:59:27', '2014-08-09 14:59:27', 298486374, 599072141) Fixture Delete (0.2ms) 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-08-09 14:59:27', '2014-08-09 14:59:27', 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-08-09 14:59:27', '2014-08-09 14:59:27', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:59:27', '2014-08-09 14:59:27', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:59:27', '2014-08-09 14:59:27', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:59:27', '2014-08-09 14:59:27', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:59:27', '2014-08-09 14:59:27', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:59:27', '2014-08-09 14:59:27', 229906743) 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-08-09 14:59:27', '2014-08-09 14:59:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:59:27', '2014-08-09 14:59:27', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:27', '2014-08-09 14:59:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:27', '2014-08-09 14:59:27', 298486374)  (119.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (190.5ms) 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)   (107.8ms) DROP TABLE "extface_drivers"  (106.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.1ms) 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(*)  (105.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (115.8ms) DROP TABLE "extface_serial_configs"  (114.9ms) 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)   (115.4ms) DROP TABLE "shops"  (115.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-09 14:59:53', '2014-08-09 14:59:53', 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-08-09 14:59:53', '2014-08-09 14:59:53', 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-08-09 14:59:53', '2014-08-09 14:59:53', 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-08-09 14:59:53', '2014-08-09 14:59:53', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 14:59:53', '2014-08-09 14:59:53', 229906743, 'Shop', 980190962, 229906743) 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-08-09 14:59:53', '2014-08-09 14:59:53', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 14:59:53', '2014-08-09 14:59:53', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 14:59:53', '2014-08-09 14:59:53', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 14:59:53', '2014-08-09 14:59:53', 229906743) 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-08-09 14:59:53', '2014-08-09 14:59:53', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 14:59:53', '2014-08-09 14:59:53', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:53', '2014-08-09 14:59:53', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 14:59:53', '2014-08-09 14:59:53', 298486374)  (127.0ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (118.9ms) 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.5ms) 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)   (106.1ms) 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(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.1ms) DROP TABLE "extface_serial_configs"  (106.8ms) 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)   (98.2ms) DROP TABLE "shops"  (107.2ms) 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-08-09 15:00:22', '2014-08-09 15:00:22', 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-08-09 15:00:22', '2014-08-09 15:00:22', 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-08-09 15:00:22', '2014-08-09 15:00:22', 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-08-09 15:00:22', '2014-08-09 15:00:22', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 15:00:22', '2014-08-09 15:00:22', 229906743, 'Shop', 980190962, 229906743) 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-08-09 15:00:22', '2014-08-09 15:00:22', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 15:00:22', '2014-08-09 15:00:22', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 15:00:22', '2014-08-09 15:00:22', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 15:00:22', '2014-08-09 15:00:22', 229906743) 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-08-09 15:00:22', '2014-08-09 15:00:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 15:00:22', '2014-08-09 15:00:22', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:00:22', '2014-08-09 15:00:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:00:22', '2014-08-09 15:00:22', 298486374)  (118.5ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (134.7ms) 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.1ms) 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)   (106.0ms) 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.2ms) select sqlite_version(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.7ms) DROP TABLE "shops"  (115.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.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-08-09 15:00:46', '2014-08-09 15:00:46', 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-08-09 15:00:46', '2014-08-09 15:00:46', 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-08-09 15:00:46', '2014-08-09 15:00:46', 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-08-09 15:00:46', '2014-08-09 15:00:46', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 15:00:46', '2014-08-09 15:00:46', 229906743, 'Shop', 980190962, 229906743) 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-08-09 15:00:46', '2014-08-09 15:00:46', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 15:00:46', '2014-08-09 15:00:46', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 15:00:46', '2014-08-09 15:00:46', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 15:00:46', '2014-08-09 15:00:46', 229906743) 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-08-09 15:00:46', '2014-08-09 15:00:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 15:00:46', '2014-08-09 15:00:46', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:00:46', '2014-08-09 15:00:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:00:46', '2014-08-09 15:00:46', 298486374)  (112.0ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.6ms) DROP TABLE "extface_devices"  (147.7ms) 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.0ms) 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"  (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.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.3ms) DROP TABLE "shops"  (116.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.3ms) 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-08-09 15:01:18', '2014-08-09 15:01:18', 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-08-09 15:01:18', '2014-08-09 15:01:18', 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-08-09 15:01:18', '2014-08-09 15:01:18', 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-08-09 15:01:18', '2014-08-09 15:01:18', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 15:01:18', '2014-08-09 15:01:18', 229906743, 'Shop', 980190962, 229906743) 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-08-09 15:01:18', '2014-08-09 15:01:18', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 15:01:18', '2014-08-09 15:01:18', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 15:01:18', '2014-08-09 15:01:18', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 15:01:18', '2014-08-09 15:01:18', 229906743) 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-08-09 15:01:18', '2014-08-09 15:01:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 15:01:18', '2014-08-09 15:01:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:01:18', '2014-08-09 15:01:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:01:18', '2014-08-09 15:01:18', 298486374)  (106.8ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.2ms) DROP TABLE "extface_devices"  (115.2ms) 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.0ms) 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)   (105.9ms) 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.3ms) select sqlite_version(*)  (107.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.5ms) DROP TABLE "shops"  (115.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.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-08-09 15:02:26', '2014-08-09 15:02:26', 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-08-09 15:02:26', '2014-08-09 15:02:26', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-09 15:02:26', '2014-08-09 15:02:26', 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-08-09 15:02:26', '2014-08-09 15:02:26', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 15:02:26', '2014-08-09 15:02:26', 229906743, 'Shop', 980190962, 229906743) 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-08-09 15:02:26', '2014-08-09 15:02:26', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 15:02:26', '2014-08-09 15:02:26', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 15:02:26', '2014-08-09 15:02:26', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 15:02:26', '2014-08-09 15:02:26', 229906743) 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-08-09 15:02:26', '2014-08-09 15:02:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 15:02:26', '2014-08-09 15:02:26', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:02:26', '2014-08-09 15:02:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 15:02:26', '2014-08-09 15:02:26', 298486374)  (112.0ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_hanlde ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (191.7ms) DROP TABLE "extface_devices"  (107.2ms) 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"  (123.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (122.6ms) DROP TABLE "extface_jobs"  (115.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.2ms) select sqlite_version(*)  (107.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.5ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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.8ms) DROP TABLE "shops"  (107.2ms) 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-08-09 18:09:18', '2014-08-09 18:09:18', 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-08-09 18:09:18', '2014-08-09 18:09:18', 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-08-09 18:09:18', '2014-08-09 18:09:18', 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-08-09 18:09:18', '2014-08-09 18:09:18', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-09 18:09:18', '2014-08-09 18:09:18', 229906743, 'Shop', 980190962, 229906743) 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-08-09 18:09:18', '2014-08-09 18:09:18', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-09 18:09:18', '2014-08-09 18:09:18', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-09 18:09:18', '2014-08-09 18:09:18', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-09 18:09:18', '2014-08-09 18:09:18', 229906743) 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-08-09 18:09:18', '2014-08-09 18:09:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-09 18:09:18', '2014-08-09 18:09:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 18:09:18', '2014-08-09 18:09:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-09 18:09:18', '2014-08-09 18:09:18', 298486374)  (108.0ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (139.3ms) DROP TABLE "extface_devices"  (123.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)   (143.2ms) DROP TABLE "extface_drivers"  (144.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (139.6ms) DROP TABLE "extface_jobs"  (133.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.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (131.1ms) DROP TABLE "extface_serial_configs"  (123.8ms) 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)   (115.2ms) DROP TABLE "shops"  (148.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.3ms) 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-08-10 13:49:50', '2014-08-10 13:49:50', 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-08-10 13:49:50', '2014-08-10 13:49:50', 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-08-10 13:49:50', '2014-08-10 13:49:50', 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-08-10 13:49:50', '2014-08-10 13:49:50', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:49:50', '2014-08-10 13:49:50', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:49:50', '2014-08-10 13:49:50', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:49:50', '2014-08-10 13:49:50', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:49:50', '2014-08-10 13:49:50', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:49:50', '2014-08-10 13:49:50', 229906743) 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-08-10 13:49:51', '2014-08-10 13:49:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:49:51', '2014-08-10 13:49:51', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:49:51', '2014-08-10 13:49:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:49:51', '2014-08-10 13:49:51', 298486374)  (240.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.5ms) 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.4ms) 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.2ms) 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.5ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-10 13:49:51.759782"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-10 13:49:51.759782"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-10 13:49:51.775906"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "9cb2ca6a9bb256c12c7c2b9b48c380bd"], ["updated_at", "2014-08-10 13:49:51.775906"], ["uuid", "9cb2ca6a9bb256c12c7c2b9b48c380bd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 97ms  (0.3ms) 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.3ms) 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.6ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.2ms) rollback transaction  (0.2ms) 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.3ms) 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 88ms  (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 22ms  (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 4ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.2ms) 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.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 22ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.2ms) 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#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "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]]  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.3ms) 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.2ms) 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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-08-10 13:49:51.965190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 9ms  (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.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (152.7ms) 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)   (106.3ms) 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)   (122.7ms) 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")  (115.9ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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)   (114.5ms) DROP TABLE "shops"  (115.4ms) 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-08-10 13:50:13', '2014-08-10 13:50:13', 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-08-10 13:50:13', '2014-08-10 13:50:13', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 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-08-10 13:50:13', '2014-08-10 13:50:13', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 229906743, 'Shop', 980190962, 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:50:13', '2014-08-10 13:50:13', 229906743) 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-08-10 13:50:13', '2014-08-10 13:50:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:50:13', '2014-08-10 13:50:13', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:50:13', '2014-08-10 13:50:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:50:13', '2014-08-10 13:50:13', 298486374)  (113.5ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (122.5ms) DROP TABLE "extface_devices"  (107.6ms) 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)   (122.9ms) DROP TABLE "extface_drivers"  (115.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (114.3ms) DROP TABLE "extface_jobs"  (108.4ms) 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(*)  (97.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.7ms) DROP TABLE "extface_serial_configs"  (115.3ms) 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)   (114.6ms) DROP TABLE "shops"  (115.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.2ms) 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-08-10 13:50:33', '2014-08-10 13:50:33', 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-08-10 13:50:33', '2014-08-10 13:50:33', 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-08-10 13:50:33', '2014-08-10 13:50:33', 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-08-10 13:50:33', '2014-08-10 13:50:33', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:50:33', '2014-08-10 13:50:33', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:50:33', '2014-08-10 13:50:33', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:50:33', '2014-08-10 13:50:33', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:50:33', '2014-08-10 13:50:33', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:50:33', '2014-08-10 13:50:33', 229906743) 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-08-10 13:50:33', '2014-08-10 13:50:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:50:33', '2014-08-10 13:50:33', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:50:33', '2014-08-10 13:50:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:50:33', '2014-08-10 13:50:33', 298486374)  (104.8ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.6ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (131.5ms) DROP TABLE "extface_devices"  (108.2ms) 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.1ms) 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)   (114.4ms) DROP TABLE "extface_jobs"  (123.4ms) 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.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) 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)   (130.9ms) DROP TABLE "shops"  (123.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) 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-08-10 13:51:18', '2014-08-10 13:51:18', 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-08-10 13:51:18', '2014-08-10 13:51:18', 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-08-10 13:51:18', '2014-08-10 13:51:18', 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-08-10 13:51:18', '2014-08-10 13:51:18', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:51:18', '2014-08-10 13:51:18', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:51:18', '2014-08-10 13:51:18', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:51:18', '2014-08-10 13:51:18', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:51:18', '2014-08-10 13:51:18', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:51:18', '2014-08-10 13:51:18', 229906743) 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-08-10 13:51:18', '2014-08-10 13:51:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:51:18', '2014-08-10 13:51:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:51:18', '2014-08-10 13:51:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:51:18', '2014-08-10 13:51:18', 298486374)  (110.2ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-10 13:51:18.722192"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-10 13:51:18.722192"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-10 13:51:18.732571"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "5a809c4668f3ba043703adaf7959aba4"], ["updated_at", "2014-08-10 13:51:18.732571"], ["uuid", "5a809c4668f3ba043703adaf7959aba4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 35ms  (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.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.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.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.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 12ms  (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.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 5ms  (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.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.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.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 6ms  (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.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-08-10 13:51:18.789572"]]  (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.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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"  (129.2ms) DROP TABLE "extface_devices"  (123.3ms) 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)   (122.5ms) DROP TABLE "extface_drivers"  (131.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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(*)  (114.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (116.6ms) 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)   (114.5ms) 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.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-08-10 13:52:16', '2014-08-10 13:52:16', 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-08-10 13:52:16', '2014-08-10 13:52:16', 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-08-10 13:52:16', '2014-08-10 13:52:16', 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-08-10 13:52:16', '2014-08-10 13:52:16', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:52:16', '2014-08-10 13:52:16', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:52:16', '2014-08-10 13:52:16', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:52:16', '2014-08-10 13:52:16', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:52:16', '2014-08-10 13:52:16', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:52:16', '2014-08-10 13:52:16', 229906743) 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-08-10 13:52:16', '2014-08-10 13:52:16', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:52:16', '2014-08-10 13:52:16', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:52:16', '2014-08-10 13:52:16', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:52:16', '2014-08-10 13:52:16', 298486374)  (119.7ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) 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-08-10 13:52:16.578655"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-10 13:52:16.578655"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-10 13:52:16.589773"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "89785c1d9aa2ed3263b7020317bb26f5"], ["updated_at", "2014-08-10 13:52:16.589773"], ["uuid", "89785c1d9aa2ed3263b7020317bb26f5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 39ms  (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.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.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.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 13ms  (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.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.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.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.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-08-10 13:52:16.649452"]]  (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  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (128.8ms) DROP TABLE "extface_devices"  (106.9ms) 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"  (90.7ms) 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"  (115.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(*)  (114.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (132.4ms) DROP TABLE "extface_serial_configs"  (131.6ms) 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.1ms) DROP TABLE "shops"  (115.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-10 13:52:26', '2014-08-10 13:52:26', 980190962, 258259918) 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-08-10 13:52:26', '2014-08-10 13:52:26', 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-08-10 13:52:26', '2014-08-10 13:52:26', 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-08-10 13:52:26', '2014-08-10 13:52:26', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:52:26', '2014-08-10 13:52:26', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:52:26', '2014-08-10 13:52:26', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:52:26', '2014-08-10 13:52:26', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:52:26', '2014-08-10 13:52:26', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:52:26', '2014-08-10 13:52:26', 229906743) 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-08-10 13:52:26', '2014-08-10 13:52:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:52:26', '2014-08-10 13:52:26', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:52:26', '2014-08-10 13:52:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:52:26', '2014-08-10 13:52:26', 298486374)  (134.5ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.3ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.4ms) DROP TABLE "extface_devices"  (108.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)   (114.6ms) 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)   (122.6ms) DROP TABLE "extface_jobs"  (123.5ms) 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.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (122.6ms) DROP TABLE "extface_serial_configs"  (90.6ms) 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)   (106.5ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-10 13:53:21', '2014-08-10 13:53:21', 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-08-10 13:53:21', '2014-08-10 13:53:21', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 13:53:21', '2014-08-10 13:53:21', 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-08-10 13:53:21', '2014-08-10 13:53:21', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:53:21', '2014-08-10 13:53:21', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:53:21', '2014-08-10 13:53:21', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:53:21', '2014-08-10 13:53:21', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:53:21', '2014-08-10 13:53:21', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:53:21', '2014-08-10 13:53:21', 229906743) 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-08-10 13:53:21', '2014-08-10 13:53:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:53:21', '2014-08-10 13:53:21', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:53:21', '2014-08-10 13:53:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:53:21', '2014-08-10 13:53:21', 298486374)  (112.0ms) commit transaction  (0.3ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.6ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (140.4ms) DROP TABLE "extface_devices"  (123.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)   (122.8ms) DROP TABLE "extface_drivers"  (123.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (114.4ms) 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.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.7ms) 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.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-08-10 13:53:37', '2014-08-10 13:53:37', 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-08-10 13:53:37', '2014-08-10 13:53:37', 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-08-10 13:53:37', '2014-08-10 13:53:37', 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-08-10 13:53:37', '2014-08-10 13:53:37', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:53:37', '2014-08-10 13:53:37', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:53:37', '2014-08-10 13:53:37', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:53:37', '2014-08-10 13:53:37', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:53:37', '2014-08-10 13:53:37', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:53:37', '2014-08-10 13:53:37', 229906743) 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-08-10 13:53:37', '2014-08-10 13:53:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:53:37', '2014-08-10 13:53:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:53:37', '2014-08-10 13:53:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:53:37', '2014-08-10 13:53:37', 298486374)  (115.0ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (153.4ms) DROP TABLE "extface_devices"  (106.9ms) 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.5ms) 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.0ms) DROP TABLE "extface_jobs"  (115.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")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (124.0ms) DROP TABLE "shops"  (90.8ms) 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-08-10 13:54:15', '2014-08-10 13:54:15', 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-08-10 13:54:15', '2014-08-10 13:54:15', 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-08-10 13:54:15', '2014-08-10 13:54:15', 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-08-10 13:54:15', '2014-08-10 13:54:15', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:54:15', '2014-08-10 13:54:15', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:54:15', '2014-08-10 13:54:15', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:54:15', '2014-08-10 13:54:15', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:54:15', '2014-08-10 13:54:15', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:54:15', '2014-08-10 13:54:15', 229906743) 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-08-10 13:54:15', '2014-08-10 13:54:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:54:15', '2014-08-10 13:54:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:54:15', '2014-08-10 13:54:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:54:15', '2014-08-10 13:54:15', 298486374)  (108.0ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (188.7ms) 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)   (106.2ms) DROP TABLE "extface_drivers"  (140.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (105.9ms) DROP TABLE "extface_jobs"  (108.5ms) 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")  (114.5ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (123.0ms) DROP TABLE "shops"  (115.4ms) 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.3ms) 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-08-10 13:54:45', '2014-08-10 13:54:45', 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-08-10 13:54:45', '2014-08-10 13:54:45', 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-08-10 13:54:45', '2014-08-10 13:54:45', 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-08-10 13:54:45', '2014-08-10 13:54:45', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:54:45', '2014-08-10 13:54:45', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:54:45', '2014-08-10 13:54:45', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:54:45', '2014-08-10 13:54:45', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:54:45', '2014-08-10 13:54:45', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:54:45', '2014-08-10 13:54:45', 229906743) 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-08-10 13:54:45', '2014-08-10 13:54:45', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:54:45', '2014-08-10 13:54:45', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:54:45', '2014-08-10 13:54:45', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:54:45', '2014-08-10 13:54:45', 298486374)  (119.7ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (181.0ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (123.9ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (115.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.2ms) select sqlite_version(*)  (106.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.5ms) 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.2ms) 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-08-10 13:55:08', '2014-08-10 13:55:08', 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-08-10 13:55:08', '2014-08-10 13:55:08', 298486374, 599072141) Fixture Delete (0.2ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:55:08', '2014-08-10 13:55:08', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:55:08', '2014-08-10 13:55:08', 229906743) 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-08-10 13:55:08', '2014-08-10 13:55:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:55:08', '2014-08-10 13:55:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:55:08', '2014-08-10 13:55:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:55:08', '2014-08-10 13:55:08', 298486374)  (98.7ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (155.0ms) 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.1ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.6ms) DROP TABLE "shops"  (131.9ms) 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-08-10 13:55:43', '2014-08-10 13:55: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-08-10 13:55:43', '2014-08-10 13:55: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-08-10 13:55:43', '2014-08-10 13:55: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-08-10 13:55:43', '2014-08-10 13:55:43', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:55:43', '2014-08-10 13:55:43', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:55:43', '2014-08-10 13:55:43', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:55:43', '2014-08-10 13:55:43', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:55:43', '2014-08-10 13:55:43', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:55:43', '2014-08-10 13:55:43', 229906743) 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-08-10 13:55:43', '2014-08-10 13:55:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:55:43', '2014-08-10 13:55:43', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:55:43', '2014-08-10 13:55:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:55:43', '2014-08-10 13:55:43', 298486374)  (131.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (145.7ms) 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.0ms) 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)   (106.2ms) 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.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (156.4ms) DROP TABLE "extface_serial_configs"  (138.9ms) 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)   (132.5ms) DROP TABLE "shops"  (115.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.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-10 13:57:06', '2014-08-10 13:57:06', 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-08-10 13:57:06', '2014-08-10 13:57:06', 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-08-10 13:57:06', '2014-08-10 13:57:06', 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-08-10 13:57:06', '2014-08-10 13:57:06', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:57:06', '2014-08-10 13:57:06', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:57:06', '2014-08-10 13:57:06', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:57:06', '2014-08-10 13:57:06', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:57:06', '2014-08-10 13:57:06', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:57:06', '2014-08-10 13:57:06', 229906743) 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-08-10 13:57:06', '2014-08-10 13:57:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:57:06', '2014-08-10 13:57:06', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:57:06', '2014-08-10 13:57:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:57:06', '2014-08-10 13:57:06', 298486374)  (124.7ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (131.1ms) DROP TABLE "extface_devices"  (132.2ms) 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)   (122.6ms) DROP TABLE "extface_drivers"  (115.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (107.5ms) 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.3ms) select sqlite_version(*)  (105.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.4ms) DROP TABLE "extface_serial_configs"  (98.6ms) 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)   (114.6ms) DROP TABLE "shops"  (131.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-10 13:58:21', '2014-08-10 13:58:21', 980190962, 258259918) 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-08-10 13:58:21', '2014-08-10 13:58:21', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:58:21', '2014-08-10 13:58:21', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:58:21', '2014-08-10 13:58:21', 229906743) 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-08-10 13:58:21', '2014-08-10 13:58:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:58:21', '2014-08-10 13:58:21', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:58:21', '2014-08-10 13:58:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:58:21', '2014-08-10 13:58:21', 298486374)  (115.7ms) commit transaction  (0.3ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.7ms) DROP TABLE "extface_devices"  (108.6ms) 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.0ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (148.2ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.2ms) DROP TABLE "extface_serial_configs"  (181.2ms) 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)   (114.5ms) 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.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-10 13:59:29', '2014-08-10 13:59:29', 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-08-10 13:59:29', '2014-08-10 13:59:29', 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-08-10 13:59:29', '2014-08-10 13:59:29', 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-08-10 13:59:29', '2014-08-10 13:59:29', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 13:59:29', '2014-08-10 13:59:29', 229906743, 'Shop', 980190962, 229906743) 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-08-10 13:59:29', '2014-08-10 13:59:29', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 13:59:29', '2014-08-10 13:59:29', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 13:59:29', '2014-08-10 13:59:29', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 13:59:29', '2014-08-10 13:59:29', 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:59:29', '2014-08-10 13:59:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 13:59:29', '2014-08-10 13:59:29', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:59:29', '2014-08-10 13:59:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 13:59:29', '2014-08-10 13:59:29', 298486374)  (111.1ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (124.6ms) DROP TABLE "extface_devices"  (115.3ms) 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.1ms) 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)   (114.2ms) DROP TABLE "extface_jobs"  (90.8ms) 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(*)  (97.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (99.7ms) 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)   (114.6ms) DROP TABLE "shops"  (131.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-10 14:00:07', '2014-08-10 14:00:07', 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-08-10 14:00:07', '2014-08-10 14:00:07', 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-08-10 14:00:07', '2014-08-10 14:00:07', 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-08-10 14:00:07', '2014-08-10 14:00:07', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:00:07', '2014-08-10 14:00:07', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:00:07', '2014-08-10 14:00:07', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:00:07', '2014-08-10 14:00:07', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:00:07', '2014-08-10 14:00:07', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:00:07', '2014-08-10 14:00:07', 229906743) 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-08-10 14:00:07', '2014-08-10 14:00:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:00:07', '2014-08-10 14:00:07', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:00:07', '2014-08-10 14:00:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:00:07', '2014-08-10 14:00:07', 298486374)  (126.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (158.4ms) DROP TABLE "extface_devices"  (123.3ms) 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)   (254.3ms) DROP TABLE "extface_drivers"  (108.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.5ms) DROP TABLE "extface_jobs"  (115.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.3ms) select sqlite_version(*)  (122.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.9ms) DROP TABLE "extface_serial_configs"  (107.4ms) 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)   (115.3ms) DROP TABLE "shops"  (148.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-10 14:02:42', '2014-08-10 14:02:42', 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-08-10 14:02:42', '2014-08-10 14:02:42', 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-08-10 14:02:42', '2014-08-10 14:02:42', 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-08-10 14:02:42', '2014-08-10 14:02:42', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:02:42', '2014-08-10 14:02:42', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:02:42', '2014-08-10 14:02:42', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:02:42', '2014-08-10 14:02:42', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:02:42', '2014-08-10 14:02:42', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:02:42', '2014-08-10 14:02:42', 229906743) 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-08-10 14:02:42', '2014-08-10 14:02:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:02:42', '2014-08-10 14:02:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:02:42', '2014-08-10 14:02:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:02:42', '2014-08-10 14:02:42', 298486374)  (164.0ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (139.2ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (131.0ms) DROP TABLE "extface_drivers"  (115.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.3ms) DROP TABLE "extface_serial_configs"  (108.1ms) 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)   (106.4ms) DROP TABLE "shops"  (107.4ms) 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.3ms) 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-08-10 14:04:42', '2014-08-10 14:04:42', 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-08-10 14:04:42', '2014-08-10 14:04:42', 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-08-10 14:04:42', '2014-08-10 14:04:42', 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-08-10 14:04:42', '2014-08-10 14:04:42', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:04:42', '2014-08-10 14:04:42', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:04:42', '2014-08-10 14:04:42', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:04:42', '2014-08-10 14:04:42', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:04:42', '2014-08-10 14:04:42', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:04:42', '2014-08-10 14:04:42', 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_jobs" Fixture Insert (0.2ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:04:42', '2014-08-10 14:04:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:04:42', '2014-08-10 14:04:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:04:42', '2014-08-10 14:04:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:04:42', '2014-08-10 14:04:42', 298486374)  (115.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (210.4ms) DROP TABLE "extface_devices"  (108.3ms) 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.0ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (105.9ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (114.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.5ms) DROP TABLE "shops"  (115.5ms) 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-08-10 14:05:48', '2014-08-10 14:05:48', 980190962, 258259918) 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-08-10 14:05:48', '2014-08-10 14:05:48', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:05:48', '2014-08-10 14:05:48', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:05:48', '2014-08-10 14:05:48', 229906743) 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-08-10 14:05:48', '2014-08-10 14:05:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:05:48', '2014-08-10 14:05:48', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:05:48', '2014-08-10 14:05:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:05:48', '2014-08-10 14:05:48', 298486374)  (108.2ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (161.9ms) DROP TABLE "extface_devices"  (123.3ms) 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)   (130.7ms) 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)   (106.1ms) 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.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.2ms) DROP TABLE "extface_serial_configs"  (106.9ms) 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)   (106.3ms) DROP TABLE "shops"  (115.5ms) 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-08-10 14:06:03', '2014-08-10 14:06:03', 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-08-10 14:06:03', '2014-08-10 14:06:03', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 14:06:03', '2014-08-10 14:06:03', 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-08-10 14:06:03', '2014-08-10 14:06:03', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:06:03', '2014-08-10 14:06:03', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:06:03', '2014-08-10 14:06:03', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:06:03', '2014-08-10 14:06:03', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:06:03', '2014-08-10 14:06:03', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:06:03', '2014-08-10 14:06:03', 229906743) 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-08-10 14:06:03', '2014-08-10 14:06:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:06:03', '2014-08-10 14:06:03', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:06:03', '2014-08-10 14:06:03', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:06:03', '2014-08-10 14:06:03', 298486374)  (111.8ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (140.2ms) 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.3ms) 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)   (122.7ms) 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.2ms) select sqlite_version(*)  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (116.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)   (114.6ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-10 14:06:36', '2014-08-10 14:06:36', 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-08-10 14:06:36', '2014-08-10 14:06:36', 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-08-10 14:06:36', '2014-08-10 14:06:36', 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-08-10 14:06:36', '2014-08-10 14:06:36', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:06:36', '2014-08-10 14:06:36', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:06:36', '2014-08-10 14:06:36', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:06:36', '2014-08-10 14:06:36', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:06:36', '2014-08-10 14:06:36', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:06:36', '2014-08-10 14:06:36', 229906743) 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-08-10 14:06:36', '2014-08-10 14:06:36', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:06:36', '2014-08-10 14:06:36', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:06:36', '2014-08-10 14:06:36', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:06:36', '2014-08-10 14:06:36', 298486374)  (113.8ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (150.7ms) DROP TABLE "extface_devices"  (106.7ms) 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.7ms) DROP TABLE "extface_drivers"  (115.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.6ms) DROP TABLE "extface_jobs"  (125.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.2ms) select sqlite_version(*)  (114.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.1ms) DROP TABLE "extface_serial_configs"  (107.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)   (106.4ms) DROP TABLE "shops"  (115.5ms) 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.3ms) 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-08-10 14:07:04', '2014-08-10 14:07: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-08-10 14:07:04', '2014-08-10 14:07:04', 298486374, 599072141) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-08-10 14:07:04', '2014-08-10 14:07: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-08-10 14:07:04', '2014-08-10 14:07:04', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:07:04', '2014-08-10 14:07:04', 229906743, 'Shop', 980190962, 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-08-10 14:07:04', '2014-08-10 14:07:04', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:07:04', '2014-08-10 14:07:04', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:07:04', '2014-08-10 14:07:04', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:07:04', '2014-08-10 14:07:04', 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_jobs" Fixture Insert (0.2ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:07:04', '2014-08-10 14:07:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:07:04', '2014-08-10 14:07:04', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:04', '2014-08-10 14:07:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:04', '2014-08-10 14:07:04', 298486374)  (117.3ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (138.1ms) DROP TABLE "extface_devices"  (107.0ms) 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.1ms) DROP TABLE "extface_drivers"  (108.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.1ms) 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.3ms) select sqlite_version(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (123.3ms) 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)   (114.5ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-10 14:07:18', '2014-08-10 14:07:18', 980190962, 258259918) Fixture Insert (10.6ms) 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-08-10 14:07:18', '2014-08-10 14:07:18', 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-08-10 14:07:18', '2014-08-10 14:07:18', 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-08-10 14:07:18', '2014-08-10 14:07:18', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:07:18', '2014-08-10 14:07:18', 229906743, 'Shop', 980190962, 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-08-10 14:07:18', '2014-08-10 14:07:18', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:07:18', '2014-08-10 14:07:18', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:07:18', '2014-08-10 14:07:18', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:07:18', '2014-08-10 14:07:18', 229906743) 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-08-10 14:07:18', '2014-08-10 14:07:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:07:18', '2014-08-10 14:07:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:18', '2014-08-10 14:07:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:18', '2014-08-10 14:07:18', 298486374)  (115.3ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (164.9ms) DROP TABLE "extface_devices"  (108.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.0ms) 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)   (106.0ms) DROP TABLE "extface_jobs"  (123.6ms) 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")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (114.6ms) DROP TABLE "shops"  (106.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-08-10 14:07:32', '2014-08-10 14:07: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-08-10 14:07:32', '2014-08-10 14:07: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-08-10 14:07:32', '2014-08-10 14:07: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-08-10 14:07:32', '2014-08-10 14:07:32', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:07:32', '2014-08-10 14:07:32', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:07:32', '2014-08-10 14:07:32', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:07:32', '2014-08-10 14:07:32', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:07:32', '2014-08-10 14:07:32', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:07:32', '2014-08-10 14:07:32', 229906743) 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-08-10 14:07:32', '2014-08-10 14:07:32', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:07:32', '2014-08-10 14:07:32', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:32', '2014-08-10 14:07:32', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:32', '2014-08-10 14:07:32', 298486374)  (88.7ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.6ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (149.7ms) DROP TABLE "extface_devices"  (106.9ms) 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.5ms) 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.0ms) DROP TABLE "extface_jobs"  (106.8ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (123.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"  (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.2ms) 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-08-10 14:07:46', '2014-08-10 14:07:46', 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-08-10 14:07:46', '2014-08-10 14:07:46', 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-08-10 14:07:46', '2014-08-10 14:07:46', 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-08-10 14:07:46', '2014-08-10 14:07:46', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:07:46', '2014-08-10 14:07:46', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:07:46', '2014-08-10 14:07:46', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:07:46', '2014-08-10 14:07:46', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:07:46', '2014-08-10 14:07:46', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:07:46', '2014-08-10 14:07:46', 229906743) 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-08-10 14:07:46', '2014-08-10 14:07:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:07:46', '2014-08-10 14:07:46', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:46', '2014-08-10 14:07:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:07:46', '2014-08-10 14:07:46', 298486374)  (110.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (145.2ms) DROP TABLE "extface_devices"  (107.0ms) 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"  (292.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (102.1ms) DROP TABLE "extface_jobs"  (123.5ms) 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(*)  (97.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (116.6ms) 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)   (114.7ms) DROP TABLE "shops"  (115.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.2ms) 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-08-10 14:08:47', '2014-08-10 14:08:47', 980190962, 258259918) Fixture Insert (0.3ms) 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-08-10 14:08:47', '2014-08-10 14:08:47', 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-08-10 14:08:47', '2014-08-10 14:08:47', 980190962, 'Shop', 980190962, 258259918) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-08-10 14:08:47', '2014-08-10 14:08:47', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:08:47', '2014-08-10 14:08:47', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:08:47', '2014-08-10 14:08:47', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:08:47', '2014-08-10 14:08:47', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:08:47', '2014-08-10 14:08:47', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:08:47', '2014-08-10 14:08:47', 229906743) 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-08-10 14:08:47', '2014-08-10 14:08:47', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:08:47', '2014-08-10 14:08:47', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:08:47', '2014-08-10 14:08:47', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:08:47', '2014-08-10 14:08:47', 298486374)  (105.2ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (105.7ms) 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.3ms) DROP TABLE "extface_drivers"  (131.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) DROP TABLE "extface_jobs"  (123.4ms) 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(*)  (106.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.5ms) DROP TABLE "shops"  (115.4ms) 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.3ms) 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-08-10 14:11:35', '2014-08-10 14:11:35', 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-08-10 14:11:35', '2014-08-10 14:11:35', 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-08-10 14:11:35', '2014-08-10 14:11:35', 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-08-10 14:11:35', '2014-08-10 14:11:35', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:11:35', '2014-08-10 14:11:35', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:11:35', '2014-08-10 14:11:35', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:11:35', '2014-08-10 14:11:35', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:11:35', '2014-08-10 14:11:35', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:11:35', '2014-08-10 14:11:35', 229906743) 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-08-10 14:11:35', '2014-08-10 14:11:35', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:11:35', '2014-08-10 14:11:35', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:11:35', '2014-08-10 14:11:35', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:11:35', '2014-08-10 14:11:35', 298486374)  (124.2ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (131.3ms) DROP TABLE "extface_devices"  (123.3ms) 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.3ms) 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)   (97.9ms) DROP TABLE "extface_jobs"  (106.8ms) 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(*)  (115.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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-08-10 14:13:20', '2014-08-10 14:13:20', 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-08-10 14:13:20', '2014-08-10 14:13:20', 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-08-10 14:13:20', '2014-08-10 14:13:20', 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-08-10 14:13:20', '2014-08-10 14:13:20', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:13:20', '2014-08-10 14:13:20', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:13:20', '2014-08-10 14:13:20', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:13:20', '2014-08-10 14:13:20', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:13:20', '2014-08-10 14:13:20', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:13:20', '2014-08-10 14:13:20', 229906743) 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-08-10 14:13:20', '2014-08-10 14:13:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:13:20', '2014-08-10 14:13:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:13:20', '2014-08-10 14:13:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:13:20', '2014-08-10 14:13:20', 298486374)  (116.1ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (153.0ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (107.3ms) 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)   (106.0ms) 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.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.5ms) DROP TABLE "extface_serial_configs"  (131.6ms) 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.0ms) DROP TABLE "shops"  (123.4ms) 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 (11.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-08-10 14:14:05', '2014-08-10 14:14:05', 980190962, 258259918) 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-08-10 14:14:05', '2014-08-10 14:14:05', 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-08-10 14:14:05', '2014-08-10 14:14:05', 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-08-10 14:14:05', '2014-08-10 14:14:05', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:14:05', '2014-08-10 14:14:05', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:14:05', '2014-08-10 14:14:05', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:14:05', '2014-08-10 14:14:05', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:14:05', '2014-08-10 14:14:05', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:14:05', '2014-08-10 14:14:05', 229906743) 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-08-10 14:14:05', '2014-08-10 14:14:05', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:14:05', '2014-08-10 14:14:05', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:14:05', '2014-08-10 14:14:05', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:14:05', '2014-08-10 14:14:05', 298486374)  (111.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (130.8ms) DROP TABLE "extface_devices"  (108.2ms) 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"  (106.9ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (122.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (106.3ms) DROP TABLE "shops"  (115.2ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-10 14:14:26', '2014-08-10 14:14:26', 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-08-10 14:14:26', '2014-08-10 14:14:26', 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-08-10 14:14:26', '2014-08-10 14:14:26', 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-08-10 14:14:26', '2014-08-10 14:14:26', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:14:26', '2014-08-10 14:14:26', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:14:26', '2014-08-10 14:14:26', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:14:26', '2014-08-10 14:14:26', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:14:26', '2014-08-10 14:14:26', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:14:26', '2014-08-10 14:14:26', 229906743) 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-08-10 14:14:26', '2014-08-10 14:14:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:14:26', '2014-08-10 14:14:26', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:14:26', '2014-08-10 14:14:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:14:26', '2014-08-10 14:14:26', 298486374)  (99.0ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (150.5ms) 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)   (106.1ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (108.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.2ms) select sqlite_version(*)  (114.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (131.0ms) 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)   (114.7ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) 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-08-10 14:21:47', '2014-08-10 14:21:47', 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-08-10 14:21:47', '2014-08-10 14:21:47', 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-08-10 14:21:47', '2014-08-10 14:21:47', 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-08-10 14:21:47', '2014-08-10 14:21:47', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-10 14:21:47', '2014-08-10 14:21:47', 229906743, 'Shop', 980190962, 229906743) 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-08-10 14:21:47', '2014-08-10 14:21:47', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-10 14:21:47', '2014-08-10 14:21:47', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-10 14:21:47', '2014-08-10 14:21:47', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-10 14:21:47', '2014-08-10 14:21:47', 229906743) 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-08-10 14:21:47', '2014-08-10 14:21:47', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-10 14:21:47', '2014-08-10 14:21:47', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:21:47', '2014-08-10 14:21:47', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-10 14:21:47', '2014-08-10 14:21:47', 298486374)  (112.0ms) commit transaction  (0.3ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (102.7ms) DROP TABLE "extface_devices"  (74.2ms) 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)   (74.2ms) DROP TABLE "extface_drivers"  (74.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (73.9ms) DROP TABLE "extface_jobs"  (99.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.1ms) select sqlite_version(*)  (91.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.8ms) DROP TABLE "extface_serial_configs"  (115.6ms) 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)   (115.2ms) DROP TABLE "shops"  (115.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-08-13 16:52:15', '2014-08-13 16:52:15', 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-08-13 16:52:15', '2014-08-13 16:52:15', 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-08-13 16:52:15', '2014-08-13 16:52:15', 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-08-13 16:52:15', '2014-08-13 16:52:15', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-13 16:52:15', '2014-08-13 16:52:15', 229906743, 'Shop', 980190962, 229906743) 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-08-13 16:52:15', '2014-08-13 16:52:15', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-13 16:52:15', '2014-08-13 16:52:15', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-13 16:52:15', '2014-08-13 16:52:15', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-13 16:52:15', '2014-08-13 16:52:15', 229906743) 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-08-13 16:52:15', '2014-08-13 16:52:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-13 16:52:15', '2014-08-13 16:52:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:52:15', '2014-08-13 16:52:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:52:15', '2014-08-13 16:52:15', 298486374)  (101.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.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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-13 16:52:16.250547"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-13 16:52:16.250547"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-13 16:52:16.262364"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "70225f5ebc45b8248c76a468150669d9"], ["updated_at", "2014-08-13 16:52:16.262364"], ["uuid", "70225f5ebc45b8248c76a468150669d9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 75ms  (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 4ms  (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.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 51ms  (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 17ms  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Completed 500 Internal Server Error in 4ms  (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.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 25ms  (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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-08-13 16:52:16.397161"]]  (0.1ms) 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  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (79.9ms) DROP TABLE "extface_devices"  (82.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)   (82.2ms) DROP TABLE "extface_drivers"  (90.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (90.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(*)  (91.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.1ms) DROP TABLE "extface_serial_configs"  (82.6ms) 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)   (82.5ms) DROP TABLE "shops"  (115.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (142.0ms) DROP TABLE "extface_devices"  (107.2ms) 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)   (90.4ms) DROP TABLE "extface_drivers"  (107.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (108.3ms) DROP TABLE "extface_jobs"  (107.4ms) 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(*)  (106.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.4ms) DROP TABLE "extface_serial_configs"  (82.6ms) 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)   (82.2ms) DROP TABLE "shops"  (90.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) 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-08-13 16:54:26', '2014-08-13 16:54:26', 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-08-13 16:54:26', '2014-08-13 16:54:26', 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-08-13 16:54:26', '2014-08-13 16:54:26', 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-08-13 16:54:26', '2014-08-13 16:54:26', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-13 16:54:26', '2014-08-13 16:54:26', 229906743, 'Shop', 980190962, 229906743) 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-08-13 16:54:26', '2014-08-13 16:54:26', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-13 16:54:26', '2014-08-13 16:54:26', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-13 16:54:26', '2014-08-13 16:54:26', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-13 16:54:26', '2014-08-13 16:54:26', 229906743) 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-08-13 16:54:26', '2014-08-13 16:54:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-13 16:54:26', '2014-08-13 16:54:26', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:54:26', '2014-08-13 16:54:26', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:54:26', '2014-08-13 16:54:26', 298486374)  (97.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (129.5ms) DROP TABLE "extface_devices"  (107.2ms) 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)   (108.3ms) DROP TABLE "extface_drivers"  (82.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.9ms) 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(*)  (106.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.1ms) DROP TABLE "extface_serial_configs"  (82.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)   (82.4ms) DROP TABLE "shops"  (99.2ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-08-13 16:55:01', '2014-08-13 16:55:01', 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-08-13 16:55:01', '2014-08-13 16:55:01', 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-08-13 16:55:01', '2014-08-13 16:55:01', 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-08-13 16:55:01', '2014-08-13 16:55:01', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-13 16:55:01', '2014-08-13 16:55:01', 229906743, 'Shop', 980190962, 229906743) 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-08-13 16:55:01', '2014-08-13 16:55:01', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-13 16:55:01', '2014-08-13 16:55:01', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-13 16:55:01', '2014-08-13 16:55:01', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-13 16:55:01', '2014-08-13 16:55:01', 229906743) 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-08-13 16:55:01', '2014-08-13 16:55:01', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-13 16:55:01', '2014-08-13 16:55:01', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:55:01', '2014-08-13 16:55:01', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-13 16:55:01', '2014-08-13 16:55:01', 298486374)  (92.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-13 16:55:01.352608"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-13 16:55:01.352608"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-13 16:55:01.362848"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "790aa5126599342ec62c74ad32bdcb40"], ["updated_at", "2014-08-13 16:55:01.362848"], ["uuid", "790aa5126599342ec62c74ad32bdcb40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 37ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (5.0ms) Completed 200 OK in 295ms (Views: 292.2ms | ActiveRecord: 1.3ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 60ms (Views: 55.0ms | ActiveRecord: 2.8ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 51ms (Views: 48.1ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.2ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-13 16:55:01.829433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 526ms ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (131.5ms) DROP TABLE "extface_devices"  (115.3ms) 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)   (107.8ms) 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)   (105.8ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.3ms) 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)   (114.2ms) DROP TABLE "shops"  (115.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.3ms) 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-08-14 09:50:15', '2014-08-14 09:50:15', 980190962, 258259918) 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-08-14 09:50:15', '2014-08-14 09:50:15', 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-08-14 09:50:15', '2014-08-14 09:50:15', 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-08-14 09:50:15', '2014-08-14 09:50:15', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 09:50:15', '2014-08-14 09:50:15', 229906743, 'Shop', 980190962, 229906743) 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-08-14 09:50:15', '2014-08-14 09:50:15', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 09:50:15', '2014-08-14 09:50:15', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 09:50:15', '2014-08-14 09:50:15', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 09:50:15', '2014-08-14 09:50:15', 229906743) 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-08-14 09:50:15', '2014-08-14 09:50:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 09:50:15', '2014-08-14 09:50:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 09:50:15', '2014-08-14 09:50:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 09:50:15', '2014-08-14 09:50:15', 298486374)  (137.6ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) 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-08-14 09:50:15.836737"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 09:50:15.836737"]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 09:50:15.850954"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "f6ff836a62ce87f328e629271a24dd46"], ["updated_at", "2014-08-14 09:50:15.850954"], ["uuid", "f6ff836a62ce87f328e629271a24dd46"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 92ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.2ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.7ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (6.9ms) Completed 200 OK in 245ms (Views: 242.0ms | ActiveRecord: 1.6ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.2ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 3.9ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.1ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 2.2ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 09:50:16.269658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 2ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (131.1ms) 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)   (115.2ms) DROP TABLE "extface_drivers"  (108.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (123.7ms) DROP TABLE "extface_jobs"  (107.5ms) 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.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (131.6ms) DROP TABLE "extface_serial_configs"  (131.8ms) 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)   (115.1ms) DROP TABLE "shops"  (115.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) 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-08-14 15:43:31', '2014-08-14 15:43:31', 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-08-14 15:43:31', '2014-08-14 15:43:31', 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-08-14 15:43:31', '2014-08-14 15:43:31', 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-08-14 15:43:31', '2014-08-14 15:43:31', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:43:31', '2014-08-14 15:43:31', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:43:31', '2014-08-14 15:43:31', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:43:31', '2014-08-14 15:43:31', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:43:31', '2014-08-14 15:43:31', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:43:31', '2014-08-14 15:43:31', 229906743) 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-08-14 15:43:31', '2014-08-14 15:43:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:43:31', '2014-08-14 15:43:31', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:43:31', '2014-08-14 15:43:31', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:43:31', '2014-08-14 15:43:31', 298486374)  (115.9ms) commit transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:43:31.710482"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:43:31.710482"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:43:31.719599"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "8da9b25a8a33229137032d00ba8f2d82"], ["updated_at", "2014-08-14 15:43:31.719599"], ["uuid", "8da9b25a8a33229137032d00ba8f2d82"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 28ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 48ms (Views: 45.5ms | ActiveRecord: 1.1ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 29ms (Views: 25.4ms | ActiveRecord: 2.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.1ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 1.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:43:31.896925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Extface::Driver::Datecs::Fp550Test: test_test_response_frame ------------------------------------------------------------ Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction Completed in 241ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (153.9ms) 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)   (108.4ms) DROP TABLE "extface_drivers"  (90.9ms) 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"  (123.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.1ms) select sqlite_version(*)  (106.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.8ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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.7ms) DROP TABLE "shops"  (115.8ms) 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.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-08-14 15:43:41', '2014-08-14 15:43:41', 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-08-14 15:43:41', '2014-08-14 15:43:41', 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-08-14 15:43:41', '2014-08-14 15:43:41', 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-08-14 15:43:41', '2014-08-14 15:43:41', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:43:41', '2014-08-14 15:43:41', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:43:41', '2014-08-14 15:43:41', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:43:41', '2014-08-14 15:43:41', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:43:41', '2014-08-14 15:43:41', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:43:41', '2014-08-14 15:43:41', 229906743) 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-08-14 15:43:41', '2014-08-14 15:43:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:43:41', '2014-08-14 15:43:41', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:43:41', '2014-08-14 15:43:41', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:43:41', '2014-08-14 15:43:41', 298486374)  (114.5ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ Extface::Driver::Datecs::Fp550Test: test_test_response_frame ------------------------------------------------------------ Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:43:42.126264"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:43:42.126264"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:43:42.131470"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "3c6a0118c406239919812b8c163f2093"], ["updated_at", "2014-08-14 15:43:42.131470"], ["uuid", "3c6a0118c406239919812b8c163f2093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 23ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (4.2ms) Completed 200 OK in 45ms (Views: 42.6ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 2.7ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 31.2ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.5ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 1.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:43:42.298668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 207ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.9ms) DROP TABLE "extface_devices"  (108.7ms) 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)   (115.2ms) DROP TABLE "extface_drivers"  (124.0ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.8ms) DROP TABLE "extface_jobs"  (115.6ms) 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.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (115.4ms) DROP TABLE "extface_serial_configs"  (115.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)   (115.2ms) DROP TABLE "shops"  (124.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) 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-08-14 15:44:02', '2014-08-14 15:44:02', 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-08-14 15:44:02', '2014-08-14 15:44:02', 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-08-14 15:44:02', '2014-08-14 15:44:02', 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-08-14 15:44:02', '2014-08-14 15:44:02', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:44:02', '2014-08-14 15:44:02', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:44:02', '2014-08-14 15:44:02', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:44:02', '2014-08-14 15:44:02', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:44:02', '2014-08-14 15:44:02', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:44:02', '2014-08-14 15:44:02', 229906743) 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-08-14 15:44:02', '2014-08-14 15:44:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:44:02', '2014-08-14 15:44:02', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:44:02', '2014-08-14 15:44:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:44:02', '2014-08-14 15:44:02', 298486374)  (124.1ms) commit transaction  (0.2ms) 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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.4ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 15:44:02.538580"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:44:02.538580"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:44:02.546827"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "61142da3fd807a1e02b94afd5f2ce95b"], ["updated_at", "2014-08-14 15:44:02.546827"], ["uuid", "61142da3fd807a1e02b94afd5f2ce95b"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 27ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.1ms) Completed 200 OK in 46ms (Views: 43.8ms | ActiveRecord: 1.0ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 2.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.3ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 52ms (Views: 48.9ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:44:02.723247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Extface::Driver::Datecs::Fp550Test: test_test_response_frame ------------------------------------------------------------ Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 3ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (388.6ms) DROP TABLE "extface_devices"  (123.3ms) 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)   (105.9ms) DROP TABLE "extface_drivers"  (108.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.3ms) select sqlite_version(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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)   (106.2ms) DROP TABLE "shops"  (107.1ms) 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-08-14 15:45:17', '2014-08-14 15:45:17', 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-08-14 15:45:17', '2014-08-14 15:45:17', 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-08-14 15:45:17', '2014-08-14 15:45:17', 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-08-14 15:45:17', '2014-08-14 15:45:17', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:45:17', '2014-08-14 15:45:17', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:45:17', '2014-08-14 15:45:17', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:45:17', '2014-08-14 15:45:17', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:45:17', '2014-08-14 15:45:17', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:45:17', '2014-08-14 15:45:17', 229906743) 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-08-14 15:45:17', '2014-08-14 15:45:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:45:17', '2014-08-14 15:45:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:45:17', '2014-08-14 15:45:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:45:17', '2014-08-14 15:45:17', 298486374)  (123.3ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 15:45:17.839968"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:45:17.839968"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:45:17.851369"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "99621f1930d3533a78112ea290373724"], ["updated_at", "2014-08-14 15:45:17.851369"], ["uuid", "99621f1930d3533a78112ea290373724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 41ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.9ms) Completed 200 OK in 53ms (Views: 50.2ms | ActiveRecord: 1.3ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 2.5ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 1.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 15:45:18.031012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Extface::Driver::Datecs::Fp550Test: test_test_response_frame ------------------------------------------------------------ Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction Completed in 19ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (191.0ms) DROP TABLE "extface_devices"  (108.6ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (106.6ms) 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.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.7ms) DROP TABLE "extface_serial_configs"  (115.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)   (115.5ms) DROP TABLE "shops"  (156.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-14 15:46:19', '2014-08-14 15:46:19', 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-08-14 15:46:19', '2014-08-14 15:46:19', 298486374, 599072141) Fixture Delete (0.0ms) 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-08-14 15:46:19', '2014-08-14 15:46:19', 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-08-14 15:46:19', '2014-08-14 15:46:19', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:46:19', '2014-08-14 15:46:19', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:46:19', '2014-08-14 15:46:19', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:46:19', '2014-08-14 15:46:19', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:46:19', '2014-08-14 15:46:19', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:46:19', '2014-08-14 15:46:19', 229906743) 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-08-14 15:46:19', '2014-08-14 15:46:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:46:19', '2014-08-14 15:46:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:46:19', '2014-08-14 15:46:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:46:19', '2014-08-14 15:46:19', 298486374)  (133.1ms) commit 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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:46:19.741853"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:46:19.741853"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:46:19.748814"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "135a633e571173f3a472602eca490dc0"], ["updated_at", "2014-08-14 15:46:19.748814"], ["uuid", "135a633e571173f3a472602eca490dc0"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.0ms) Completed 200 OK in 44ms (Views: 41.7ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 30ms (Views: 25.8ms | ActiveRecord: 2.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.2ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 61ms (Views: 57.0ms | ActiveRecord: 2.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 15:46:19.933160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ Extface::Driver::Datecs::Fp550Test: test_test_response_frame ------------------------------------------------------------ Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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.1ms) rollback transaction Completed in 6ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (138.6ms) 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.5ms) 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)   (106.0ms) DROP TABLE "extface_jobs"  (106.8ms) 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(*)  (114.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.1ms) DROP TABLE "extface_serial_configs"  (116.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)   (114.7ms) DROP TABLE "shops"  (131.8ms) 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.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-08-14 15:49:49', '2014-08-14 15:49:49', 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-08-14 15:49:49', '2014-08-14 15:49:49', 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-08-14 15:49:49', '2014-08-14 15:49:49', 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-08-14 15:49:49', '2014-08-14 15:49:49', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 15:49:49', '2014-08-14 15:49:49', 229906743, 'Shop', 980190962, 229906743) 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-08-14 15:49:49', '2014-08-14 15:49:49', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 15:49:49', '2014-08-14 15:49:49', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 15:49:49', '2014-08-14 15:49:49', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 15:49:49', '2014-08-14 15:49:49', 229906743) 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-08-14 15:49:49', '2014-08-14 15:49:49', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 15:49:49', '2014-08-14 15:49:49', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:49:49', '2014-08-14 15:49:49', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 15:49:49', '2014-08-14 15:49:49', 298486374)  (132.5ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_test_frame --------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 15:49:50.213578"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 15:49:50.213578"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 15:49:50.220465"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "ec9b0abce5f4bce1c813f2deb1f274d3"], ["updated_at", "2014-08-14 15:49:50.220465"], ["uuid", "ec9b0abce5f4bce1c813f2deb1f274d3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 29ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 45ms (Views: 42.8ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 2.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 1.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 15:49:50.383991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 3ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (148.5ms) DROP TABLE "extface_devices"  (115.0ms) 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)   (115.7ms) 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)   (106.3ms) DROP TABLE "extface_jobs"  (106.8ms) 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.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.3ms) DROP TABLE "extface_serial_configs"  (107.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)   (105.8ms) DROP TABLE "shops"  (124.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-08-14 18:48:54', '2014-08-14 18:48: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-08-14 18:48:54', '2014-08-14 18:48: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-08-14 18:48:54', '2014-08-14 18:48: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-08-14 18:48:54', '2014-08-14 18:48:54', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 18:48:54', '2014-08-14 18:48:54', 229906743, 'Shop', 980190962, 229906743) 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-08-14 18:48:54', '2014-08-14 18:48:54', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 18:48:54', '2014-08-14 18:48:54', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 18:48:54', '2014-08-14 18:48:54', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 18:48:54', '2014-08-14 18:48:54', 229906743) 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-08-14 18:48:54', '2014-08-14 18:48:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 18:48:54', '2014-08-14 18:48:54', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:48:54', '2014-08-14 18:48:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:48:54', '2014-08-14 18:48:54', 298486374)  (130.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 18:48:54.982813"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 18:48:54.982813"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 18:48:54.989224"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "9912bb5fbdffcbe458e9ecc15fb887f6"], ["updated_at", "2014-08-14 18:48:54.989224"], ["uuid", "9912bb5fbdffcbe458e9ecc15fb887f6"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.5ms) Completed 200 OK in 44ms (Views: 42.2ms | ActiveRecord: 0.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 2.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.7ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 1.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 18:48:55.143801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction Completed in 197ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (152.6ms) 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)   (148.9ms) DROP TABLE "extface_drivers"  (140.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.2ms) 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.2ms) select sqlite_version(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.5ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (114.4ms) DROP TABLE "shops"  (115.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.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-08-14 18:50:51', '2014-08-14 18:50:51', 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-08-14 18:50:51', '2014-08-14 18:50:51', 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-08-14 18:50:51', '2014-08-14 18:50:51', 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-08-14 18:50:51', '2014-08-14 18:50:51', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 18:50:51', '2014-08-14 18:50:51', 229906743, 'Shop', 980190962, 229906743) 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-08-14 18:50:51', '2014-08-14 18:50:51', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 18:50:51', '2014-08-14 18:50:51', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 18:50:51', '2014-08-14 18:50:51', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 18:50:51', '2014-08-14 18:50:51', 229906743) 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-08-14 18:50:51', '2014-08-14 18:50:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 18:50:51', '2014-08-14 18:50:51', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:50:51', '2014-08-14 18:50:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:50:51', '2014-08-14 18:50:51', 298486374)  (186.2ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 18:50:51.338675"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 18:50:51.338675"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 18:50:51.350246"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "bf223e88a0cd066798c10f99020bd78b"], ["updated_at", "2014-08-14 18:50:51.350246"], ["uuid", "bf223e88a0cd066798c10f99020bd78b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 42ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.7ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (4.4ms) Completed 200 OK in 53ms (Views: 50.8ms | ActiveRecord: 1.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 18:50:51.527822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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  (0.0ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction Completed in 16ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (129.5ms) DROP TABLE "extface_devices"  (107.0ms) 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)   (107.7ms) DROP TABLE "extface_drivers"  (214.8ms) 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"  (115.2ms) 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(*)  (130.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.3ms) DROP TABLE "extface_serial_configs"  (123.4ms) 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)   (114.4ms) DROP TABLE "shops"  (115.5ms) 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-08-14 18:52:14', '2014-08-14 18:52:14', 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-08-14 18:52:14', '2014-08-14 18:52:14', 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-08-14 18:52:14', '2014-08-14 18:52:14', 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-08-14 18:52:14', '2014-08-14 18:52:14', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 18:52:14', '2014-08-14 18:52:14', 229906743, 'Shop', 980190962, 229906743) 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-08-14 18:52:14', '2014-08-14 18:52:14', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 18:52:14', '2014-08-14 18:52:14', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 18:52:14', '2014-08-14 18:52:14', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 18:52:14', '2014-08-14 18:52:14', 229906743) 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-08-14 18:52:14', '2014-08-14 18:52:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 18:52:14', '2014-08-14 18:52:14', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:52:14', '2014-08-14 18:52:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:52:14', '2014-08-14 18:52:14', 298486374)  (170.7ms) commit transaction  (0.2ms) 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 18:52:14.465724"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 18:52:14.465724"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 18:52:14.475387"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "55d5bc157cdc54f1106c1d85eb93d090"], ["updated_at", "2014-08-14 18:52:14.475387"], ["uuid", "55d5bc157cdc54f1106c1d85eb93d090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 35ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (4.8ms) Completed 200 OK in 48ms (Views: 46.0ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 44ms (Views: 40.9ms | ActiveRecord: 1.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 18:52:14.644028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction Completed in 255ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (221.1ms) 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.2ms) 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)   (106.1ms) DROP TABLE "extface_jobs"  (172.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.3ms) select sqlite_version(*)  (130.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.6ms) DROP TABLE "extface_serial_configs"  (115.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)   (122.3ms) DROP TABLE "shops"  (132.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) 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-08-14 18:53:39', '2014-08-14 18:53:39', 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-08-14 18:53:39', '2014-08-14 18:53:39', 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-08-14 18:53:39', '2014-08-14 18:53:39', 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-08-14 18:53:39', '2014-08-14 18:53:39', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 18:53:39', '2014-08-14 18:53:39', 229906743, 'Shop', 980190962, 229906743) 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-08-14 18:53:39', '2014-08-14 18:53:39', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 18:53:39', '2014-08-14 18:53:39', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 18:53:39', '2014-08-14 18:53:39', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 18:53:39', '2014-08-14 18:53:39', 229906743) 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-08-14 18:53:39', '2014-08-14 18:53:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 18:53:39', '2014-08-14 18:53:39', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:53:39', '2014-08-14 18:53:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:53:39', '2014-08-14 18:53:39', 298486374)  (120.4ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 18:53:39.275956"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 18:53:39.275956"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 18:53:39.282446"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "bbdeff7b8fd0f2d4262ee2f3d50be067"], ["updated_at", "2014-08-14 18:53:39.282446"], ["uuid", "bbdeff7b8fd0f2d4262ee2f3d50be067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.4ms) Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 0.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 2.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 44ms (Views: 40.8ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 18:53:39.435674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.0ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction Completed in 9ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (158.6ms) DROP TABLE "extface_devices"  (168.0ms) 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)   (117.0ms) DROP TABLE "extface_drivers"  (241.4ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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(*)  (114.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (130.9ms) DROP TABLE "shops"  (115.4ms) 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-08-14 18:54:42', '2014-08-14 18:54:42', 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-08-14 18:54:42', '2014-08-14 18:54:42', 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-08-14 18:54:42', '2014-08-14 18:54:42', 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-08-14 18:54:42', '2014-08-14 18:54:42', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 18:54:42', '2014-08-14 18:54:42', 229906743, 'Shop', 980190962, 229906743) 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-08-14 18:54:42', '2014-08-14 18:54:42', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 18:54:42', '2014-08-14 18:54:42', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 18:54:42', '2014-08-14 18:54:42', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 18:54:42', '2014-08-14 18:54:42', 229906743) 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-08-14 18:54:42', '2014-08-14 18:54:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 18:54:42', '2014-08-14 18:54:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:54:42', '2014-08-14 18:54:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 18:54:42', '2014-08-14 18:54:42', 298486374)  (114.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 18:54:42.853210"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 18:54:42.853210"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 18:54:42.864324"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "52661c90e49e8c8d3a7b34b2b605a820"], ["updated_at", "2014-08-14 18:54:42.864324"], ["uuid", "52661c90e49e8c8d3a7b34b2b605a820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 40ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.6ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.7ms) Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 1.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (23.8ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 45ms (Views: 19.0ms | ActiveRecord: 25.3ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 18:54:43.038098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.5ms) rollback transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 7ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (140.7ms) DROP TABLE "extface_devices"  (123.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)   (287.6ms) 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)   (106.2ms) 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.4ms) select sqlite_version(*)  (107.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.2ms) DROP TABLE "extface_serial_configs"  (123.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)   (127.4ms) DROP TABLE "shops"  (176.9ms) 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-08-14 19:02:32', '2014-08-14 19:02: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-08-14 19:02:32', '2014-08-14 19:02: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-08-14 19:02:32', '2014-08-14 19:02: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-08-14 19:02:32', '2014-08-14 19:02:32', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:02:32', '2014-08-14 19:02:32', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:02:32', '2014-08-14 19:02:32', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:02:32', '2014-08-14 19:02:32', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:02:32', '2014-08-14 19:02:32', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:02:32', '2014-08-14 19:02:32', 229906743) 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-08-14 19:02:32', '2014-08-14 19:02:32', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:02:32', '2014-08-14 19:02:32', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:02:32', '2014-08-14 19:02:32', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:02:32', '2014-08-14 19:02:32', 298486374)  (119.4ms) commit transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:02:32.949023"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:02:32.949023"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:02:32.958070"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "e0a43d6b4bf7368fedba1cf8b214251b"], ["updated_at", "2014-08-14 19:02:32.958070"], ["uuid", "e0a43d6b4bf7368fedba1cf8b214251b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 32ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.4ms) Completed 200 OK in 45ms (Views: 43.0ms | ActiveRecord: 1.0ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 20.8ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 46ms (Views: 42.5ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:02:33.121319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 4ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (146.6ms) 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.5ms) 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.4ms) DROP TABLE "extface_jobs"  (107.2ms) 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")  (544.3ms) DROP TABLE "extface_serial_configs"  (105.9ms) 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)   (115.0ms) DROP TABLE "shops"  (115.5ms) 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-08-14 19:07:18', '2014-08-14 19:07:18', 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-08-14 19:07:18', '2014-08-14 19:07:18', 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-08-14 19:07:18', '2014-08-14 19:07:18', 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-08-14 19:07:18', '2014-08-14 19:07:18', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:07:18', '2014-08-14 19:07:18', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:07:18', '2014-08-14 19:07:18', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:07:18', '2014-08-14 19:07:18', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:07:18', '2014-08-14 19:07:18', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:07:18', '2014-08-14 19:07:18', 229906743) 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-08-14 19:07:18', '2014-08-14 19:07:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:07:18', '2014-08-14 19:07:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:07:18', '2014-08-14 19:07:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:07:18', '2014-08-14 19:07:18', 298486374)  (113.6ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:07:18.620669"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:07:18.620669"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:07:18.627851"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "9a7a45dbe6b6d5b92e56c6b446a6b3d3"], ["updated_at", "2014-08-14 19:07:18.627851"], ["uuid", "9a7a45dbe6b6d5b92e56c6b446a6b3d3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 28ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.3ms) Completed 200 OK in 44ms (Views: 41.2ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.8ms | ActiveRecord: 2.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 49ms (Views: 45.7ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:07:18.793117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.0ms) 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 Completed in 8ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.4ms) DROP TABLE "extface_devices"  (115.0ms) 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)   (122.6ms) DROP TABLE "extface_drivers"  (116.7ms) 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"  (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.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.6ms) DROP TABLE "extface_serial_configs"  (123.3ms) 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)   (197.0ms) DROP TABLE "shops"  (107.4ms) 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-08-14 19:07:56', '2014-08-14 19:07:56', 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-08-14 19:07:56', '2014-08-14 19:07:56', 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-08-14 19:07:56', '2014-08-14 19:07:56', 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-08-14 19:07:56', '2014-08-14 19:07:56', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:07:56', '2014-08-14 19:07:56', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:07:56', '2014-08-14 19:07:56', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:07:56', '2014-08-14 19:07:56', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:07:56', '2014-08-14 19:07:56', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:07:56', '2014-08-14 19:07:56', 229906743) 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-08-14 19:07:56', '2014-08-14 19:07:56', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:07:56', '2014-08-14 19:07:56', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:07:56', '2014-08-14 19:07:56', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:07:56', '2014-08-14 19:07:56', 298486374)  (104.6ms) commit transaction  (0.2ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:07:57.011679"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:07:57.011679"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:07:57.019941"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "336f8f8913f0d4499ec28f45ecd7b5fd"], ["updated_at", "2014-08-14 19:07:57.019941"], ["uuid", "336f8f8913f0d4499ec28f45ecd7b5fd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 29ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.3ms) Completed 200 OK in 43ms (Views: 41.3ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (25.4ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 45ms (Views: 42.1ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:07:57.180031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 6ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (104.6ms) DROP TABLE "extface_devices"  (115.0ms) 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.5ms) DROP TABLE "extface_drivers"  (108.5ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (114.4ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.4ms) 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)   (122.8ms) 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.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-08-14 19:09:08', '2014-08-14 19:09:08', 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-08-14 19:09:08', '2014-08-14 19:09:08', 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-08-14 19:09:08', '2014-08-14 19:09:08', 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-08-14 19:09:08', '2014-08-14 19:09:08', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:09:08', '2014-08-14 19:09:08', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:09:08', '2014-08-14 19:09:08', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:09:08', '2014-08-14 19:09:08', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:09:08', '2014-08-14 19:09:08', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:09:08', '2014-08-14 19:09:08', 229906743) 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-08-14 19:09:08', '2014-08-14 19:09:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:09:08', '2014-08-14 19:09:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:08', '2014-08-14 19:09:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:08', '2014-08-14 19:09:08', 298486374)  (112.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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:09:08.322972"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:09:08.322972"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:09:08.329123"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "708f71dabc04d1f878974eec8114ccd8"], ["updated_at", "2014-08-14 19:09:08.329123"], ["uuid", "708f71dabc04d1f878974eec8114ccd8"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 23ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.5ms) Completed 200 OK in 41ms (Views: 38.6ms | ActiveRecord: 1.1ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 2.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (23.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 6.2ms | ActiveRecord: 24.4ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:09:08.485789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction Completed in 239ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.0ms) DROP TABLE "extface_devices"  (131.6ms) 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)   (139.8ms) DROP TABLE "extface_drivers"  (115.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (105.9ms) DROP TABLE "extface_jobs"  (115.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.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (147.3ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (114.8ms) DROP TABLE "shops"  (123.5ms) 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-08-14 19:09:23', '2014-08-14 19:09:23', 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-08-14 19:09:23', '2014-08-14 19:09:23', 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-08-14 19:09:23', '2014-08-14 19:09:23', 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-08-14 19:09:23', '2014-08-14 19:09:23', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:09:23', '2014-08-14 19:09:23', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:09:23', '2014-08-14 19:09:23', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:09:23', '2014-08-14 19:09:23', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:09:23', '2014-08-14 19:09:23', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:09:23', '2014-08-14 19:09:23', 229906743) 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-08-14 19:09:23', '2014-08-14 19:09:23', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:09:23', '2014-08-14 19:09:23', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:23', '2014-08-14 19:09:23', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:23', '2014-08-14 19:09:23', 298486374)  (118.8ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:09:23.926342"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:09:23.926342"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:09:23.937346"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "725a0e361e15b29d2a341d9d5b0238cf"], ["updated_at", "2014-08-14 19:09:23.937346"], ["uuid", "725a0e361e15b29d2a341d9d5b0238cf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 40ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.7ms) Completed 200 OK in 51ms (Views: 47.1ms | ActiveRecord: 1.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 47ms (Views: 43.9ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:09:24.112596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 4ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.2ms) DROP TABLE "extface_devices"  (108.9ms) 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.5ms) DROP TABLE "extface_drivers"  (526.7ms) 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"  (115.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.1ms) select sqlite_version(*)  (107.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.1ms) DROP TABLE "extface_serial_configs"  (115.4ms) 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)   (123.2ms) DROP TABLE "shops"  (107.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-14 19:09:54', '2014-08-14 19:09: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-08-14 19:09:54', '2014-08-14 19:09: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-08-14 19:09:54', '2014-08-14 19:09: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-08-14 19:09:54', '2014-08-14 19:09:54', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:09:54', '2014-08-14 19:09:54', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:09:54', '2014-08-14 19:09:54', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:09:54', '2014-08-14 19:09:54', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:09:54', '2014-08-14 19:09:54', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:09:54', '2014-08-14 19:09:54', 229906743) 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-08-14 19:09:54', '2014-08-14 19:09:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:09:54', '2014-08-14 19:09:54', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:54', '2014-08-14 19:09:54', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:09:54', '2014-08-14 19:09:54', 298486374)  (178.1ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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.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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:09:54.649881"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:09:54.649881"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:09:54.655096"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "7d8d9d781ed0b54286e37a48ded54bf2"], ["updated_at", "2014-08-14 19:09:54.655096"], ["uuid", "7d8d9d781ed0b54286e37a48ded54bf2"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 20ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.3ms) Completed 200 OK in 37ms (Views: 35.2ms | ActiveRecord: 0.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.8ms) Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 1.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:09:54.803806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 186ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.4ms) 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)   (106.0ms) DROP TABLE "extface_drivers"  (106.9ms) 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"  (108.4ms) 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.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (197.2ms) DROP TABLE "extface_serial_configs"  (123.2ms) 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)   (106.3ms) DROP TABLE "shops"  (90.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-08-14 19:10:33', '2014-08-14 19:10:33', 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-08-14 19:10:33', '2014-08-14 19:10:33', 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-08-14 19:10:33', '2014-08-14 19:10:33', 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-08-14 19:10:33', '2014-08-14 19:10:33', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:10:33', '2014-08-14 19:10:33', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:10:33', '2014-08-14 19:10:33', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:10:33', '2014-08-14 19:10:33', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:10:33', '2014-08-14 19:10:33', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:10:33', '2014-08-14 19:10:33', 229906743) 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-08-14 19:10:33', '2014-08-14 19:10:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:10:33', '2014-08-14 19:10:33', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:10:33', '2014-08-14 19:10:33', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:10:33', '2014-08-14 19:10:33', 298486374)  (126.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:10:33.347369"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:10:33.347369"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:10:33.354305"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "1120f3b201df2e87e4d68c0dd5f8a71d"], ["updated_at", "2014-08-14 19:10:33.354305"], ["uuid", "1120f3b201df2e87e4d68c0dd5f8a71d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 32ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.2ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.5ms) Completed 200 OK in 43ms (Views: 40.8ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 2.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.7ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:10:33.515374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction Completed in 212ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (150.8ms) 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.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)   (114.1ms) 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.2ms) select sqlite_version(*)  (107.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.3ms) DROP TABLE "extface_serial_configs"  (123.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)   (114.4ms) DROP TABLE "shops"  (115.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-08-14 19:11:21', '2014-08-14 19:11:21', 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-08-14 19:11:21', '2014-08-14 19:11:21', 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-08-14 19:11:21', '2014-08-14 19:11:21', 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-08-14 19:11:21', '2014-08-14 19:11:21', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:11:21', '2014-08-14 19:11:21', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:11:21', '2014-08-14 19:11:21', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:11:21', '2014-08-14 19:11:21', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:11:21', '2014-08-14 19:11:21', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:11:21', '2014-08-14 19:11:21', 229906743) 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-08-14 19:11:21', '2014-08-14 19:11:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:11:21', '2014-08-14 19:11:21', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:11:21', '2014-08-14 19:11:21', 980190962) Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:11:21', '2014-08-14 19:11:21', 298486374)  (162.5ms) commit transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:11:21.699628"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:11:21.699628"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:11:21.710393"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "8169dde55a7524e860963c65e9ed7ab4"], ["updated_at", "2014-08-14 19:11:21.710393"], ["uuid", "8169dde55a7524e860963c65e9ed7ab4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 39ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 50ms (Views: 47.6ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 1.8ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-08-14 19:11:21.888628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction Completed in 3ms ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (139.6ms) 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)   (106.2ms) 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)   (106.2ms) DROP TABLE "extface_jobs"  (115.2ms) 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(*)  (114.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (180.8ms) DROP TABLE "extface_serial_configs"  (116.3ms) 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.5ms) DROP TABLE "shops"  (123.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) 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-08-14 19:11:56', '2014-08-14 19:11:56', 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-08-14 19:11:56', '2014-08-14 19:11:56', 298486374, 599072141) Fixture Delete (0.0ms) 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-08-14 19:11:56', '2014-08-14 19:11:56', 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-08-14 19:11:56', '2014-08-14 19:11:56', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:11:56', '2014-08-14 19:11:56', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:11:56', '2014-08-14 19:11:56', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:11:56', '2014-08-14 19:11:56', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:11:56', '2014-08-14 19:11:56', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:11:56', '2014-08-14 19:11:56', 229906743) 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-08-14 19:11:56', '2014-08-14 19:11:56', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:11:56', '2014-08-14 19:11:56', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.0ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:11:56', '2014-08-14 19:11:56', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:11:56', '2014-08-14 19:11:56', 298486374)  (113.3ms) commit transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:11:56.233555"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:11:56.233555"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:11:56.239501"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "3df6dc0a67d0dbd37762bc6fbb84f6f0"], ["updated_at", "2014-08-14 19:11:56.239501"], ["uuid", "3df6dc0a67d0dbd37762bc6fbb84f6f0"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (2.0ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 1.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:11:56.397968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 243ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (156.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.3ms) DROP TABLE "extface_drivers"  (198.0ms) 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"  (116.6ms) 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(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.4ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (114.4ms) 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-08-14 19:12:08', '2014-08-14 19:12:08', 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-08-14 19:12:08', '2014-08-14 19:12:08', 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-08-14 19:12:08', '2014-08-14 19:12:08', 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-08-14 19:12:08', '2014-08-14 19:12:08', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:12:08', '2014-08-14 19:12:08', 229906743, 'Shop', 980190962, 229906743) Fixture Delete (0.2ms) DELETE FROM "extface_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-08-14 19:12:08', '2014-08-14 19:12:08', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:12:08', '2014-08-14 19:12:08', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:12:08', '2014-08-14 19:12:08', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:12:08', '2014-08-14 19:12:08', 229906743) 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-08-14 19:12:08', '2014-08-14 19:12:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:12:08', '2014-08-14 19:12:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:08', '2014-08-14 19:12:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:08', '2014-08-14 19:12:08', 298486374)  (206.0ms) commit transaction  (0.2ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:12:08.838449"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:12:08.838449"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:12:08.848589"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "6f50618ce818d08ad7e97e2c56e62f15"], ["updated_at", "2014-08-14 19:12:08.848589"], ["uuid", "6f50618ce818d08ad7e97e2c56e62f15"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 36ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.2ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.4ms) Completed 200 OK in 48ms (Views: 45.4ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 2.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 44ms (Views: 41.4ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:12:09.016537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 4ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (101.7ms) DROP TABLE "extface_devices"  (108.6ms) 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)   (105.9ms) DROP TABLE "extface_drivers"  (107.7ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (171.6ms) DROP TABLE "extface_jobs"  (107.5ms) 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(*)  (122.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (115.4ms) DROP TABLE "extface_serial_configs"  (115.6ms) 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.8ms) 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-08-14 19:12:21', '2014-08-14 19:12:21', 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-08-14 19:12:21', '2014-08-14 19:12:21', 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-08-14 19:12:21', '2014-08-14 19:12:21', 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-08-14 19:12:21', '2014-08-14 19:12:21', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:12:21', '2014-08-14 19:12:21', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:12:21', '2014-08-14 19:12:21', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:12:21', '2014-08-14 19:12:21', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:12:21', '2014-08-14 19:12:21', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:12:21', '2014-08-14 19:12:21', 229906743) 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-08-14 19:12:21', '2014-08-14 19:12:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:12:21', '2014-08-14 19:12:21', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:21', '2014-08-14 19:12:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:21', '2014-08-14 19:12:21', 298486374)  (113.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:12:21.357530"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:12:21.357530"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:12:21.367993"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "67948b7ff04f197353daaa0187d95aa8"], ["updated_at", "2014-08-14 19:12:21.367993"], ["uuid", "67948b7ff04f197353daaa0187d95aa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 37ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.5ms) Completed 200 OK in 50ms (Views: 47.3ms | ActiveRecord: 1.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 27ms (Views: 22.2ms | ActiveRecord: 2.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 46ms (Views: 42.8ms | ActiveRecord: 1.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:12:21.542970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 4ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (123.3ms) 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)   (114.6ms) DROP TABLE "extface_drivers"  (140.1ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (130.9ms) DROP TABLE "extface_jobs"  (98.8ms) 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(*)  (107.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.1ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (114.5ms) DROP TABLE "shops"  (115.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.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-08-14 19:12:44', '2014-08-14 19:12: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-08-14 19:12:44', '2014-08-14 19:12: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-08-14 19:12:44', '2014-08-14 19:12: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-08-14 19:12:44', '2014-08-14 19:12:44', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:12:44', '2014-08-14 19:12:44', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:12:44', '2014-08-14 19:12:44', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:12:44', '2014-08-14 19:12:44', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:12:44', '2014-08-14 19:12:44', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:12:44', '2014-08-14 19:12:44', 229906743) 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-08-14 19:12:44', '2014-08-14 19:12:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:12:44', '2014-08-14 19:12:44', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:44', '2014-08-14 19:12:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:12:44', '2014-08-14 19:12:44', 298486374)  (117.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:12:44.618988"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:12:44.618988"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:12:44.624501"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "99d185cc0330751a192f2c4948033231"], ["updated_at", "2014-08-14 19:12:44.624501"], ["uuid", "99d185cc0330751a192f2c4948033231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.2ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.3ms) Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 2.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 46ms (Views: 43.2ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:12:44.787246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 5ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (185.0ms) DROP TABLE "extface_devices"  (108.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)   (114.4ms) DROP TABLE "extface_drivers"  (139.9ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.0ms) 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.3ms) select sqlite_version(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.3ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (106.2ms) DROP TABLE "shops"  (107.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-08-14 19:13:48', '2014-08-14 19:13:48', 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-08-14 19:13:48', '2014-08-14 19:13:48', 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-08-14 19:13:48', '2014-08-14 19:13:48', 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-08-14 19:13:48', '2014-08-14 19:13:48', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:13:48', '2014-08-14 19:13:48', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:13:48', '2014-08-14 19:13:48', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:13:48', '2014-08-14 19:13:48', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:13:48', '2014-08-14 19:13:48', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:13:48', '2014-08-14 19:13:48', 229906743) 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-08-14 19:13:48', '2014-08-14 19:13:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:13:48', '2014-08-14 19:13:48', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:13:48', '2014-08-14 19:13:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:13:48', '2014-08-14 19:13:48', 298486374)  (110.6ms) commit transaction  (0.2ms) 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]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:13:49.264500"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:13:49.264500"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:13:49.272124"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "4b9a1cf7c78f833cda3a2e8848528e12"], ["updated_at", "2014-08-14 19:13:49.272124"], ["uuid", "4b9a1cf7c78f833cda3a2e8848528e12"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 29ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.8ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (7.0ms) Completed 200 OK in 58ms (Views: 55.7ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 39ms (Views: 34.0ms | ActiveRecord: 3.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 32.8ms | ActiveRecord: 0.8ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:13:49.474799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 328ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.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)   (106.2ms) 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)   (131.1ms) DROP TABLE "extface_jobs"  (147.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.3ms) select sqlite_version(*)  (105.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.7ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (115.9ms) DROP TABLE "shops"  (115.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-08-14 19:14:10', '2014-08-14 19:14:10', 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-08-14 19:14:10', '2014-08-14 19:14:10', 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-08-14 19:14:10', '2014-08-14 19:14:10', 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-08-14 19:14:10', '2014-08-14 19:14:10', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:14:10', '2014-08-14 19:14:10', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:14:10', '2014-08-14 19:14:10', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:14:10', '2014-08-14 19:14:10', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:14:10', '2014-08-14 19:14:10', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:14:10', '2014-08-14 19:14:10', 229906743) 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-08-14 19:14:10', '2014-08-14 19:14:10', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:14:10', '2014-08-14 19:14:10', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:10', '2014-08-14 19:14:10', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:10', '2014-08-14 19:14:10', 298486374)  (114.2ms) commit 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:14:10.514843"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:14:10.514843"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:14:10.521967"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "cacf8e86cf9e3efd7bc1bb2da86cef56"], ["updated_at", "2014-08-14 19:14:10.521967"], ["uuid", "cacf8e86cf9e3efd7bc1bb2da86cef56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 41ms (Views: 38.8ms | ActiveRecord: 0.9ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 2.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 43ms (Views: 40.7ms | ActiveRecord: 1.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:14:10.675749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction Completed in 221ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (107.1ms) DROP TABLE "extface_devices"  (107.0ms) 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.3ms) 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.0ms) DROP TABLE "extface_jobs"  (108.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.2ms) select sqlite_version(*)  (105.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.3ms) DROP TABLE "extface_serial_configs"  (107.1ms) 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.7ms) DROP TABLE "shops"  (115.4ms) 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-08-14 19:14:29', '2014-08-14 19:14:29', 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-08-14 19:14:29', '2014-08-14 19:14:29', 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-08-14 19:14:29', '2014-08-14 19:14:29', 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-08-14 19:14:29', '2014-08-14 19:14:29', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:14:29', '2014-08-14 19:14:29', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:14:29', '2014-08-14 19:14:29', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:14:29', '2014-08-14 19:14:29', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:14:29', '2014-08-14 19:14:29', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:14:29', '2014-08-14 19:14:29', 229906743) 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-08-14 19:14:29', '2014-08-14 19:14:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:14:29', '2014-08-14 19:14:29', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:29', '2014-08-14 19:14:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:29', '2014-08-14 19:14:29', 298486374)  (118.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:14:30.093994"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:14:30.093994"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:14:30.104488"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "c9250d64de19f96f5d646c9e69c99952"], ["updated_at", "2014-08-14 19:14:30.104488"], ["uuid", "c9250d64de19f96f5d646c9e69c99952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 38ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.7ms) Completed 200 OK in 51ms (Views: 48.2ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 3.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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.8ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (25.1ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 53ms (Views: 49.3ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:14:30.308224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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.1ms) rollback transaction Completed in 7ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (147.0ms) DROP TABLE "extface_devices"  (107.2ms) 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.7ms) DROP TABLE "extface_drivers"  (106.8ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.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.2ms) select sqlite_version(*)  (114.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (172.0ms) DROP TABLE "extface_serial_configs"  (115.2ms) 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)   (180.3ms) DROP TABLE "shops"  (124.4ms) 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-08-14 19:14:54', '2014-08-14 19:14: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-08-14 19:14:54', '2014-08-14 19:14: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-08-14 19:14:54', '2014-08-14 19:14: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-08-14 19:14:54', '2014-08-14 19:14:54', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:14:54', '2014-08-14 19:14:54', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:14:54', '2014-08-14 19:14:54', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:14:54', '2014-08-14 19:14:54', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:14:54', '2014-08-14 19:14:54', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:14:54', '2014-08-14 19:14:54', 229906743) 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-08-14 19:14:54', '2014-08-14 19:14:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:14:54', '2014-08-14 19:14:54', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:54', '2014-08-14 19:14:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:14:54', '2014-08-14 19:14:54', 298486374)  (110.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.0ms) 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]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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.2ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:14:55.014770"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:14:55.014770"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:14:55.020631"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "96cfec9fb79e52d1f2ded368ab1c1647"], ["updated_at", "2014-08-14 19:14:55.020631"], ["uuid", "96cfec9fb79e52d1f2ded368ab1c1647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.6ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.7ms) Completed 200 OK in 41ms (Views: 39.1ms | ActiveRecord: 0.8ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.6ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 1.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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:14:55.179694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 198ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (143.5ms) DROP TABLE "extface_devices"  (115.2ms) 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)   (97.8ms) 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.3ms) select sqlite_version(*)  (106.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (188.5ms) DROP TABLE "extface_serial_configs"  (124.8ms) 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.7ms) DROP TABLE "shops"  (115.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.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-08-14 19:15:07', '2014-08-14 19:15:07', 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-08-14 19:15:07', '2014-08-14 19:15:07', 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-08-14 19:15:07', '2014-08-14 19:15:07', 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-08-14 19:15:07', '2014-08-14 19:15:07', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:15:07', '2014-08-14 19:15:07', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:15:07', '2014-08-14 19:15:07', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:15:07', '2014-08-14 19:15:07', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:15:07', '2014-08-14 19:15:07', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:15:07', '2014-08-14 19:15:07', 229906743) 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-08-14 19:15:07', '2014-08-14 19:15:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:15:07', '2014-08-14 19:15:07', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:15:07', '2014-08-14 19:15:07', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:15:07', '2014-08-14 19:15:07', 298486374)  (117.8ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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 --------------------------------------------------------- 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:15:07.298380"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:15:07.298380"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:15:07.304522"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "e2982ae482c6c270ed66107bda00d554"], ["updated_at", "2014-08-14 19:15:07.304522"], ["uuid", "e2982ae482c6c270ed66107bda00d554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 24ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.8ms) Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 1.0ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 26ms (Views: 22.1ms | ActiveRecord: 2.3ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:15:07.464799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 202ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (132.0ms) DROP TABLE "extface_devices"  (116.7ms) 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.0ms) 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)   (106.3ms) 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(*)  (251.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (108.9ms) DROP TABLE "extface_serial_configs"  (107.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)   (114.4ms) DROP TABLE "shops"  (115.4ms) 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-08-14 19:15:42', '2014-08-14 19:15:42', 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-08-14 19:15:42', '2014-08-14 19:15:42', 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-08-14 19:15:42', '2014-08-14 19:15:42', 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-08-14 19:15:42', '2014-08-14 19:15:42', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:15:42', '2014-08-14 19:15:42', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:15:42', '2014-08-14 19:15:42', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:15:42', '2014-08-14 19:15:42', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:15:42', '2014-08-14 19:15:42', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:15:42', '2014-08-14 19:15:42', 229906743) 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-08-14 19:15:42', '2014-08-14 19:15:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:15:42', '2014-08-14 19:15:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:15:42', '2014-08-14 19:15:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:15:42', '2014-08-14 19:15:42', 298486374)  (112.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.2ms) 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::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:15:42.466049"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:15:42.466049"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:15:42.471988"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "c89af4ce692f83999c9c83198ebd2e7a"], ["updated_at", "2014-08-14 19:15:42.471988"], ["uuid", "c89af4ce692f83999c9c83198ebd2e7a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.9ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 2.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (24.0ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 6.4ms | ActiveRecord: 24.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 1.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:15:42.624355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 241ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (140.6ms) DROP TABLE "extface_devices"  (116.3ms) 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)   (147.0ms) DROP TABLE "extface_drivers"  (115.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)   (106.6ms) DROP TABLE "extface_jobs"  (107.5ms) 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(*)  (130.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.2ms) DROP TABLE "extface_serial_configs"  (115.1ms) 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)   (124.1ms) DROP TABLE "shops"  (107.2ms) 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-08-14 19:16:00', '2014-08-14 19:16:00', 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-08-14 19:16:00', '2014-08-14 19:16:00', 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-08-14 19:16:00', '2014-08-14 19:16:00', 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-08-14 19:16:00', '2014-08-14 19:16:00', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:16:00', '2014-08-14 19:16:00', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:16:00', '2014-08-14 19:16:00', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:16:00', '2014-08-14 19:16:00', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:16:00', '2014-08-14 19:16:00', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:16:00', '2014-08-14 19:16:00', 229906743) 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-08-14 19:16:00', '2014-08-14 19:16:00', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:16:00', '2014-08-14 19:16:00', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:16:00', '2014-08-14 19:16:00', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:16:00', '2014-08-14 19:16:00', 298486374)  (106.7ms) commit transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:16:00.895021"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:16:00.895021"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:16:00.900921"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "857d403a1181469cc33a4b5f207267f1"], ["updated_at", "2014-08-14 19:16:00.900921"], ["uuid", "857d403a1181469cc33a4b5f207267f1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.4ms) Completed 200 OK in 39ms (Views: 36.9ms | ActiveRecord: 0.9ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.6ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:16:01.058016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction Completed in 192ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (157.4ms) DROP TABLE "extface_devices"  (106.9ms) 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)   (107.4ms) 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)   (130.2ms) DROP TABLE "extface_jobs"  (123.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.3ms) select sqlite_version(*)  (106.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.7ms) DROP TABLE "extface_serial_configs"  (107.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)   (114.4ms) DROP TABLE "shops"  (115.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-08-14 19:16:31', '2014-08-14 19:16:31', 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-08-14 19:16:31', '2014-08-14 19:16:31', 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-08-14 19:16:31', '2014-08-14 19:16:31', 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-08-14 19:16:31', '2014-08-14 19:16:31', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:16:31', '2014-08-14 19:16:31', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:16:31', '2014-08-14 19:16:31', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:16:31', '2014-08-14 19:16:31', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:16:31', '2014-08-14 19:16:31', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:16:31', '2014-08-14 19:16:31', 229906743) 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-08-14 19:16:31', '2014-08-14 19:16:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:16:31', '2014-08-14 19:16:31', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:16:31', '2014-08-14 19:16:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:16:31', '2014-08-14 19:16:31', 298486374)  (115.0ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.5ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:16:31.518024"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:16:31.518024"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:16:31.528814"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "931ac419c0f40ed80f83059bc3529fb3"], ["updated_at", "2014-08-14 19:16:31.528814"], ["uuid", "931ac419c0f40ed80f83059bc3529fb3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 39ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.2ms) 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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.6ms) Completed 200 OK in 50ms (Views: 47.1ms | ActiveRecord: 1.1ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 26ms (Views: 21.8ms | ActiveRecord: 2.3ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.5ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 45ms (Views: 42.1ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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-08-14 19:16:31.700797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Completed in 3ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (137.0ms) DROP TABLE "extface_devices"  (106.9ms) 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.0ms) 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)   (114.3ms) DROP TABLE "extface_jobs"  (115.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(*)  (107.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (128.2ms) DROP TABLE "extface_serial_configs"  (175.4ms) 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)   (115.0ms) DROP TABLE "shops"  (115.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) 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-08-14 19:17:12', '2014-08-14 19:17:12', 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-08-14 19:17:12', '2014-08-14 19:17:12', 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-08-14 19:17:12', '2014-08-14 19:17:12', 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-08-14 19:17:12', '2014-08-14 19:17:12', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:17:12', '2014-08-14 19:17:12', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:17:12', '2014-08-14 19:17:12', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:17:12', '2014-08-14 19:17:12', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:17:12', '2014-08-14 19:17:12', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:17:12', '2014-08-14 19:17:12', 229906743) 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-08-14 19:17:12', '2014-08-14 19:17:12', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:17:12', '2014-08-14 19:17:12', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:17:12', '2014-08-14 19:17:12', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:17:12', '2014-08-14 19:17:12', 298486374)  (155.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Extface::Job Load (0.1ms) 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.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.3ms) INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-08-14 19:17:13.234589"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:17:13.234589"]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:17:13.244921"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "59a789891982028dfcc09772f54c91c1"], ["updated_at", "2014-08-14 19:17:13.244921"], ["uuid", "59a789891982028dfcc09772f54c91c1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 37ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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.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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.5ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.9ms) Completed 200 OK in 49ms (Views: 46.5ms | ActiveRecord: 1.0ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 2.1ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:17:13.416433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction Completed in 260ms ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (158.0ms) DROP TABLE "extface_devices"  (115.0ms) 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)   (107.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)   (105.8ms) DROP TABLE "extface_jobs"  (90.6ms) 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.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (114.7ms) 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)   (131.4ms) DROP TABLE "shops"  (115.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.4ms) 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-08-14 19:22:39', '2014-08-14 19:22:39', 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-08-14 19:22:39', '2014-08-14 19:22:39', 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-08-14 19:22:39', '2014-08-14 19:22:39', 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-08-14 19:22:39', '2014-08-14 19:22:39', 298486374, 'Shop', 980190962, 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datect_fp550', 'Datect FP550', '2014-08-14 19:22:39', '2014-08-14 19:22:39', 229906743, 'Shop', 980190962, 229906743) 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-08-14 19:22:39', '2014-08-14 19:22:39', 258259918) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-08-14 19:22:39', '2014-08-14 19:22:39', 412842077) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-08-14 19:22:39', '2014-08-14 19:22:39', 599072141) Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2014-08-14 19:22:39', '2014-08-14 19:22:39', 229906743) 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-08-14 19:22:39', '2014-08-14 19:22:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-08-14 19:22:39', '2014-08-14 19:22:39', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:22:39', '2014-08-14 19:22:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-08-14 19:22:39', '2014-08-14 19:22:39', 298486374)  (182.5ms) 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Processing by Extface::JobsController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} 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  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:22:39.648596"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-08-14 19:22:39.648596"]] SQL (0.1ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-08-14 19:22:39.655904"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "1f2780eacc867c19354e99eee84ca5d9"], ["updated_at", "2014-08-14 19:22:39.655904"], ["uuid", "1f2780eacc867c19354e99eee84ca5d9"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190963 Completed 302 Found in 27ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (3.2ms) Completed 200 OK in 44ms (Views: 42.0ms | ActiveRecord: 1.0ms)  (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.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC 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"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 599072141]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 2.2ms)  (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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.6ms)  (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.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Extface::Driver Load (0.0ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 258259918]]  (0.2ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]  (0.0ms) SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/driver/_control_print.html.erb (1.9ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? ORDER BY "extface_jobs"."id" DESC LIMIT 10 [["device_id", 980190962]] Completed 200 OK in 47ms (Views: 44.2ms | ActiveRecord: 1.7ms)  (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]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 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-08-14 19:22:39.819316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Redirected to http://test.host/shops/298486374/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_build_packet ----------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_handle ----------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::Driver::Datecs::Fp550Test: test_response_frame ------------------------------------------------------- Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 229906743]] Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 229906743]]  (0.1ms) rollback transaction Completed in 229ms