test/dummy/log/test.log in extface-0.5.9 vs test/dummy/log/test.log in extface-0.6.0

- old
+ new

@@ -15033,5 +15033,747 @@ Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (123.8ms) 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, "encoding" varchar(255))  +  (64.8ms) DROP TABLE "extface_drivers" +  (90.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  +  (64.8ms) DROP TABLE "extface_jobs" +  (73.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, "started_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (73.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") +  (65.0ms) DROP TABLE "extface_serial_configs" +  (73.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)  +  (64.6ms) DROP TABLE "shops" +  (73.5ms) 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, '2017-03-29 00:49:39', '2017-03-29 00:49: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, '2017-03-29 00:49:39', '2017-03-29 00:49: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', '2017-03-29 00:49:39', '2017-03-29 00:49: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', '2017-03-29 00:49:39', '2017-03-29 00:49: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 ('datecs_fp550', 'Datect FP550', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 229906743, 'Shop', 980190962, 229906743) + Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 40760454, 'Shop', 980190962, 40760454) + Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('posiflex_aura80', 'Posiflex Aura80', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 1033518405, 'Shop', 980190962, 1033518405) + 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', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 258259918) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 412842077) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 599072141) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 229906743) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Dp25', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 372698694) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 40760454) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Posiflex::Aura80', '2017-03-29 00:49:39', '2017-03-29 00:49:39', 1033518405) + 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, '2017-03-29 00:49:39', '2017-03-29 00:49:39', 980190962) + Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2017-03-29 00:49:39', '2017-03-29 00:49:39', 298486374) + Fixture Delete (0.1ms) DELETE FROM "shops" + Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2017-03-29 00:49:39', '2017-03-29 00:49:39', 980190962) + Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2017-03-29 00:49:39', '2017-03-29 00:49:39', 298486374) +  (85.2ms) commit transaction +  (0.1ms) begin transaction +--------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_autocut +--------------------------------------------------- + Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_handle +-------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_paper_out +----------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_status +-------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (0.1ms) rollback transaction +  (0.2ms) 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]] + 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::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.2ms) 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.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.2ms) 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", "2017-03-29 00:49:44.524731"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2017-03-29 00:49:44.524731"]] + SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2017-03-29 00:49:44.530944"], ["driver_id", 1033518406], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "4b6f34b8ccdb2a9d29c39e5451a5e63a"], ["updated_at", "2017-03-29 00:49:44.530944"], ["uuid", "4b6f34b8ccdb2a9d29c39e5451a5e63a"]] +  (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/1033518406 +Completed 302 Found in 83ms (ActiveRecord: 1.1ms) +  (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.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]] +  (8.8ms) RELEASE SAVEPOINT active_record_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 +Redirected to http://test.host/shops/298486374/shop_extface/devices +Completed 302 Found in 14ms (ActiveRecord: 9.6ms) +  (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_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.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.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* 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/AptanaWorkspace/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.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Rendered /home/alex/AptanaWorkspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) + Rendered /home/alex/AptanaWorkspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.7ms) +Completed 200 OK in 111ms (Views: 108.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.1ms) SELECT "shops".* FROM "shops" ORDER 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.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", 40760454]] + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 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.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.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 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER 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", 1033518405]] + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* 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.0ms | ActiveRecord: 4.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.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/AptanaWorkspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) +Completed 200 OK in 11ms (Views: 9.6ms | 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.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER 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" 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.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 + Rendered /home/alex/AptanaWorkspace/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 31ms (Views: 27.0ms | ActiveRecord: 2.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.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.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", "2017-03-29 00:49:44.791781"]] +  (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 9ms (ActiveRecord: 1.2ms) + Shop Load (0.1ms) SELECT "shops".* 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_fsend +---------------------------------------------- + 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]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 229906743]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 229906743]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 229906743]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_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.1ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------------------------------- +Extface::Driver::DaisyFx1200Test: test_autofix_unclosed_doc +----------------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] +  (0.4ms) rollback transaction + Extface::Job Load (0.5ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]] + Extface::Job Load (0.4ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]] +Completed 200 OK in 10006ms (ActiveRecord: 3.1ms) + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (88.6ms) DROP TABLE "extface_devices" +  (65.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, "encoding" varchar(255))  +  (64.8ms) DROP TABLE "extface_drivers" +  (65.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)  +  (64.6ms) DROP TABLE "extface_jobs" +  (73.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, "started_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (73.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id") +  (64.8ms) DROP TABLE "extface_serial_configs" +  (73.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)  +  (65.1ms) DROP TABLE "shops" +  (73.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.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, '2017-03-29 00:51:03', '2017-03-29 00:51: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, '2017-03-29 00:51:03', '2017-03-29 00:51:03', 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', '2017-03-29 00:51:03', '2017-03-29 00:51: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', '2017-03-29 00:51:03', '2017-03-29 00:51: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 ('datecs_fp550', 'Datect FP550', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 229906743, 'Shop', 980190962, 229906743) + Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_dp25', 'Datect DP25', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 372698694, 'Shop', 980190962, 372698694) + Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 40760454, 'Shop', 980190962, 40760454) + Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('posiflex_aura80', 'Posiflex Aura80', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 1033518405, 'Shop', 980190962, 1033518405) + 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', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 258259918) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 412842077) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 599072141) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 229906743) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Dp25', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 372698694) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 40760454) + Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Posiflex::Aura80', '2017-03-29 00:51:03', '2017-03-29 00:51:03', 1033518405) + 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, '2017-03-29 00:51:03', '2017-03-29 00:51:03', 980190962) + Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2017-03-29 00:51:03', '2017-03-29 00:51:03', 298486374) + Fixture Delete (0.1ms) DELETE FROM "shops" + Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2017-03-29 00:51:03', '2017-03-29 00:51:03', 980190962) + Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2017-03-29 00:51:03', '2017-03-29 00:51:03', 298486374) +  (75.4ms) 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_fsend +---------------------------------------------- + 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]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 229906743]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 229906743]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 229906743]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_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::Driver::Posiflex::Aura80Test: test_autocut +--------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_handle +-------------------------------------------------- + Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_paper_out +----------------------------------------------------- + Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +Extface::Driver::Posiflex::Aura80Test: test_status +-------------------------------------------------- + Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 1033518405]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 1033518405]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] + Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 1033518405]] + Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 1033518405]] +  (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.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", "2017-03-29 00:51:10.512273"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2017-03-29 00:51:10.512273"]] + SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2017-03-29 00:51:10.529270"], ["driver_id", 1033518406], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "ca0a34e4a458647979cf54b23b75d3ac"], ["updated_at", "2017-03-29 00:51:10.529270"], ["uuid", "ca0a34e4a458647979cf54b23b75d3ac"]] +  (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/1033518406 +Completed 302 Found in 37ms (ActiveRecord: 1.3ms) +  (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.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 + Shop Load (0.1ms) SELECT "shops".* 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.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#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.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/AptanaWorkspace/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/AptanaWorkspace/extface/app/views/extface/driver/generic_pos/_settings.html.erb (0.4ms) + Rendered /home/alex/AptanaWorkspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.6ms) +Completed 200 OK in 51ms (Views: 47.0ms | 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.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", 40760454]] + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER 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.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.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 372698694]] + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER 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 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 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", 1033518405]] + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* 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 46ms (Views: 39.4ms | ActiveRecord: 4.9ms) +  (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.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* 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/AptanaWorkspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) +Completed 200 OK in 11ms (Views: 9.1ms | 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.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.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 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.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.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.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1 + Rendered /home/alex/AptanaWorkspace/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 29ms (Views: 25.2ms | ActiveRecord: 2.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.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.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", "2017-03-29 00:51:10.721393"]] +  (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/980190962 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) + Shop Load (0.1ms) SELECT "shops".* 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::Dp25Test: test_build_packet +---------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 372698694]] + Extface::Device Load (0.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 372698694]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------- +Extface::Driver::Datecs::Dp25Test: test_fsend +--------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 372698694]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 372698694]] + 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::Dp25Test: test_handle +---------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 372698694]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 372698694]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------ +Extface::Driver::Datecs::Dp25Test: test_response_frame +------------------------------------------------------ + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 372698694]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 372698694]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------------------------------- +Extface::Driver::DaisyFx1200Test: test_autofix_unclosed_doc +----------------------------------------------------------- + Extface::Driver Load (0.1ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]] + Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]] + Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] +  (0.2ms) rollback transaction + Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]] + Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL AND "extface_jobs"."started_at" IS NOT NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]